fix the bugs for unit-test
[platform/core/security/key-manager.git] / src / manager / service / key-provider.cpp
index 66a5dae..d379e5c 100644 (file)
@@ -583,9 +583,9 @@ RawBuffer KeyProvider::reencrypt(
        const Password &oldPass,
        const Password &newPass)
 {
-       if (domainKEKInWrapForm.size() != sizeof(WrappedKeyAndInfo)) {
+       if (domainKEKInWrapForm.size() != sizeof(WrappedKeyAndInfoDKEK)) {
                LogError("input size:" << domainKEKInWrapForm.size()
-                                << " Expected: " << sizeof(WrappedKeyAndInfo));
+                                << " Expected: " << sizeof(WrappedKeyAndInfoDKEK));
                ThrowErr(Exc::InternalError,
                                 "buffer doesn't have proper size to store "
                                 "WrappedKeyAndInfo in KeyProvider::reencrypt");