From fbe902ebaad8a81f4f7290aa41a5ae411343de9c Mon Sep 17 00:00:00 2001 From: lsh123 Date: Thu, 2 Mar 2023 18:10:25 -0500 Subject: [PATCH] xmlsec-mscng: fix block ciphers key size (issue #555) --- src/mscng/ciphers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mscng/ciphers.c b/src/mscng/ciphers.c index 1c3f2dd0a..dec755856 100644 --- a/src/mscng/ciphers.c +++ b/src/mscng/ciphers.c @@ -290,6 +290,7 @@ xmlSecMSCngBlockCipherSetKey(xmlSecTransformPtr transform, xmlSecKeyPtr key) { xmlSecInvalidKeyDataSizeError(bufDataSize, ctx->keySize, xmlSecTransformGetName(transform)); goto done; } + bufDataSize = ctx->keySize; /* allocate the key object */ dwKeyObjectLength = dwBytesWritten = 0;