From: Krzysztof Jackiewicz Date: Mon, 9 Oct 2023 07:42:02 +0000 (+0200) Subject: Serialize AES key size as int X-Git-Tag: accepted/tizen/unified/20240222.012641~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=530eb80086cde8be5ff3280a740bb59c0bcb4c70;p=platform%2Fcore%2Fsecurity%2Fkey-manager.git Serialize AES key size as int It was converted to size_t at some point which led to errors on 64-bit architectures. Change-Id: Id905e9b06219642355050cfdb5a69d2cb2162ee7 --- diff --git a/src/manager/client-async/client-manager-async-impl.cpp b/src/manager/client-async/client-manager-async-impl.cpp index 92a18e4..d85332a 100644 --- a/src/manager/client-async/client-manager-async-impl.cpp +++ b/src/manager/client-async/client-manager-async-impl.cpp @@ -303,7 +303,7 @@ void ManagerAsync::Impl::createKeyPair(const ObserverPtr &observer, } void ManagerAsync::Impl::createKeyAES(const ObserverPtr &observer, - const size_t size, + const int size, const Alias &keyAlias, const Policy &policyKey) { diff --git a/src/manager/client-async/client-manager-async-impl.h b/src/manager/client-async/client-manager-async-impl.h index 3caf47c..0c55ad6 100644 --- a/src/manager/client-async/client-manager-async-impl.h +++ b/src/manager/client-async/client-manager-async-impl.h @@ -120,7 +120,7 @@ public: void createKeyAES( const ObserverPtr &observer, - const size_t size, + const int size, const Alias &keyAlias, const Policy &policyKey);