summaryrefslogtreecommitdiff
path: root/crypto/modes/siv128.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-09-04 19:27:08 +1000
committerPauli <paul.dale@oracle.com>2019-09-04 19:41:22 +1000
commit7f588d20cd9ed2bb0ee2577a4523453964f532b0 (patch)
tree02b81ea1b5152c87e1b0ebe802dc2581df6fcfa5 /crypto/modes/siv128.c
parent550f974a09942ace37cf3cf14021ea5e51e6dd11 (diff)
downloadopenssl-new-7f588d20cd9ed2bb0ee2577a4523453964f532b0.tar.gz
OSSL_PARAM_construct_utf8_string computes the string length.
If the passed string length is zero, the function computes the string length from the passed string. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9760)
Diffstat (limited to 'crypto/modes/siv128.c')
-rw-r--r--crypto/modes/siv128.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/modes/siv128.c b/crypto/modes/siv128.c
index de6a3b853f..1d91ee78ee 100644
--- a/crypto/modes/siv128.c
+++ b/crypto/modes/siv128.c
@@ -173,8 +173,7 @@ int CRYPTO_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen,
const char *cbc_name = EVP_CIPHER_name(cbc);
params[0] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_CIPHER,
- (char *)cbc_name,
- strlen(cbc_name) + 1);
+ (char *)cbc_name, 0);
params[1] = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY,
(void *)key, klen);
params[2] = OSSL_PARAM_construct_end();