diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_saos.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_saos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_saos.c b/src/lib/libcrypto/rsa/rsa_saos.c index e1fbdcb5df..93492ac503 100644 --- a/src/lib/libcrypto/rsa/rsa_saos.c +++ b/src/lib/libcrypto/rsa/rsa_saos.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_saos.c,v 1.23 2017/05/02 03:59:45 deraadt Exp $ */ | 1 | /* $OpenBSD: rsa_saos.c,v 1.24 2018/09/05 00:55:33 djm Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -130,7 +130,7 @@ RSA_verify_ASN1_OCTET_STRING(int dtype, const unsigned char *m, | |||
130 | goto err; | 130 | goto err; |
131 | 131 | ||
132 | if ((unsigned int)sig->length != m_len || | 132 | if ((unsigned int)sig->length != m_len || |
133 | memcmp(m, sig->data, m_len) != 0) { | 133 | timingsafe_bcmp(m, sig->data, m_len) != 0) { |
134 | RSAerror(RSA_R_BAD_SIGNATURE); | 134 | RSAerror(RSA_R_BAD_SIGNATURE); |
135 | } else | 135 | } else |
136 | ret = 1; | 136 | ret = 1; |