Serialize AES key size as int 31/299731/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 9 Oct 2023 07:42:02 +0000 (09:42 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 10 Oct 2023 06:24:27 +0000 (06:24 +0000)
It was converted to size_t at some point which led to errors on 64-bit
architectures.

Change-Id: Id905e9b06219642355050cfdb5a69d2cb2162ee7

src/manager/client-async/client-manager-async-impl.cpp
src/manager/client-async/client-manager-async-impl.h

index 92a18e4..d85332a 100644 (file)
@@ -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)
 {
index 3caf47c..0c55ad6 100644 (file)
@@ -120,7 +120,7 @@ public:
 
        void createKeyAES(
                const ObserverPtr &observer,
-               const size_t  size,
+               const int  size,
                const Alias  &keyAlias,
                const Policy &policyKey);