LogDebug("Imported object ID is (hex): " << rawToHexString(hash));
}
-void TrustZoneContext::importWrappedKey(const RawBuffer &wrappingKey,
+void TrustZoneContext::importWrappedKey(const RawBuffer &wrappingKeyId,
const Pwd &wrappingKeyPwd,
tz_algo_type algo,
const RawBuffer &iv,
// command ID = CMD_IMPORT_WRAPPED_KEY
LogDebug("TrustZoneContext::importWrappedKey encryptedKey size = [" << encryptedKey.size() << "]");
- auto sIn = makeSerializer(wrappingKey,
+ auto sIn = makeSerializer(wrappingKeyId,
wrappingKeyPwd,
algo,
iv,
LogDebug("Imported object ID is (hex): " << rawToHexString(encryptedKeyId));
}
-RawBuffer TrustZoneContext::exportWrappedKey(const RawBuffer &wrappingKey,
+RawBuffer TrustZoneContext::exportWrappedKey(const RawBuffer &wrappingKeyId,
const Pwd &wrappingKeyPwd,
tz_algo_type algo,
const RawBuffer &iv,
// command ID = CMD_EXPORT_WRAPPED_KEY
LogDebug("TrustZoneContext::exportWrappedKey");
- auto sIn = makeSerializer(wrappingKey,
+ auto sIn = makeSerializer(wrappingKeyId,
wrappingKeyPwd,
algo,
iv,
LogDebug("Derived object ID is (hex): " << rawToHexString(secretHash));
}
-void TrustZoneContext::executeKbkdf(const RawBuffer& secret,
+void TrustZoneContext::executeKbkdf(const RawBuffer& secretId,
const RawBuffer& label,
const RawBuffer& context,
const RawBuffer& fixed,
// command ID = CMD_DERIVE
LogDebug("TrustZoneContext::executeKbkdf");
- auto sIn = makeSerializer(secret,
+ auto sIn = makeSerializer(secretId,
label,
context,
fixed,