summaryrefslogtreecommitdiff
path: root/srcs/key_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/key_manager.c')
-rw-r--r--srcs/key_manager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/srcs/key_manager.c b/srcs/key_manager.c
index ac42db2..f4c049c 100644
--- a/srcs/key_manager.c
+++ b/srcs/key_manager.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -67,7 +67,7 @@ static int _serialize(const crypto_element_s *ce, ckmc_raw_buffer_s **pbuf)
size_t total_len = sizeof(size_t) * 3 + ce->dek->size + ce->iv->size + sizeof(bool);
- WAE_SLOGD("(serialization) total(%d) dek(%d) iv(%d) is_migrated(%d)",
+ WAE_SLOGD("(serialization) total(%zu) dek(%zu) iv(%zu) is_migrated(%d)",
total_len, ce->dek->size, ce->iv->size, ce->is_migrated_app);
unsigned char *_buf = (unsigned char *)malloc(total_len);
@@ -97,7 +97,7 @@ static int _serialize(const crypto_element_s *ce, ckmc_raw_buffer_s **pbuf)
pos += sizeof(bool);
if (total_len != pos) {
- WAE_SLOGE("(serialization) total len(%d) and actualy written byte(%d) "
+ WAE_SLOGE("(serialization) total len(%zu) and actualy written byte(%zu) "
"isn't matched!", total_len, pos);
ckmc_buffer_free(buf);
return WAE_ERROR_UNKNOWN;
@@ -126,7 +126,7 @@ static int _deserialize(const ckmc_raw_buffer_s *buf, crypto_element_s **pce)
pos += sizeof(size_t);
if (buf->size != total_len) {
- WAE_SLOGE("(deserialization) total len(%d) and actualy written byte(%d) "
+ WAE_SLOGE("(deserialization) total len(%zu) and actualy written byte(%zu) "
"isn't matched!", total_len, buf->size);
return WAE_ERROR_UNKNOWN;
}
@@ -162,7 +162,7 @@ static int _deserialize(const ckmc_raw_buffer_s *buf, crypto_element_s **pce)
memcpy(&is_migrated_app, buf->data + pos, sizeof(bool));
pos += sizeof(bool);
- WAE_SLOGD("(deserialization) total(%d) dek(%d) iv(%d) is_migrated(%d)",
+ WAE_SLOGD("(deserialization) total(%zu) dek(%zu) iv(%zu) is_migrated(%d)",
total_len, dek_size, iv_size, is_migrated_app);
if (pos != buf->size) {