summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/aes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/aes/aes.c')
-rw-r--r--src/lib/libcrypto/aes/aes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/aes/aes.c b/src/lib/libcrypto/aes/aes.c
index 50e4ce13cc..e630c3f81a 100644
--- a/src/lib/libcrypto/aes/aes.c
+++ b/src/lib/libcrypto/aes/aes.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: aes.c,v 1.8 2025/05/25 06:27:02 jsing Exp $ */ 1/* $OpenBSD: aes.c,v 1.9 2025/06/03 08:42:15 kenjiro Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2002-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2002-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -341,7 +341,7 @@ AES_unwrap_key(AES_KEY *key, const unsigned char *iv, unsigned char *out,
341 } 341 }
342 if (!iv) 342 if (!iv)
343 iv = aes_wrap_default_iv; 343 iv = aes_wrap_default_iv;
344 if (memcmp(A, iv, 8)) { 344 if (timingsafe_memcmp(A, iv, 8) != 0) {
345 explicit_bzero(out, inlen); 345 explicit_bzero(out, inlen);
346 return 0; 346 return 0;
347 } 347 }