update
Change-Id: I1bc32282305af59579b17037c6f878a37c85f556
diff --git a/src/ca-module.cpp b/src/ca-module.cpp
index e378314..e3f3daa 100644
--- a/src/ca-module.cpp
+++ b/src/ca-module.cpp
@@ -379,11 +379,9 @@
// decrypt the parameters
Buffer paramTLVPayload;
try {
- paramTLVPayload = decodeBlockWithAesGcm128(request.getApplicationParameters(),
- requestState->encryptionKey.data(),
- requestState->requestId.data(),
- requestState->requestId.size(),
- requestState->decryptionIv);
+ paramTLVPayload = decodeBlockWithAesGcm128(request.getApplicationParameters(), requestState->encryptionKey.data(),
+ requestState->requestId.data(), requestState->requestId.size(),
+ requestState->decryptionIv, requestState->encryptionIv);
}
catch (const std::exception& e) {
NDN_LOG_ERROR("Interest paramaters decryption failed: " << e.what());