diff options
author | Sverker Eriksson <[email protected]> | 2019-04-05 14:45:10 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-04-05 14:45:10 +0200 |
commit | c7617c8ad57eae996c2fc2c3eaa1f3dc332d51f5 (patch) | |
tree | f12373296279204efa01aacd4f83cd4e0c98cb6c | |
parent | 9acc1eb1c76050ba76732e3904e2030abf80376e (diff) | |
parent | 9f917db614e5bde271f052c5411e59a51feaa4d3 (diff) | |
download | otp-c7617c8ad57eae996c2fc2c3eaa1f3dc332d51f5.tar.gz otp-c7617c8ad57eae996c2fc2c3eaa1f3dc332d51f5.tar.bz2 otp-c7617c8ad57eae996c2fc2c3eaa1f3dc332d51f5.zip |
Merge branch 'sverker/crypto/bcmp-memcmp-fix/OTP-15750'
into sverker/master/crypto/bcmp-memcmp-fix/OTP-15750
-rw-r--r-- | lib/crypto/c_src/otp_test_engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/otp_test_engine.c b/lib/crypto/c_src/otp_test_engine.c index fd26b7cb5d..4a155becf8 100644 --- a/lib/crypto/c_src/otp_test_engine.c +++ b/lib/crypto/c_src/otp_test_engine.c @@ -404,7 +404,7 @@ int test_rsa_sign(int dtype, } */ if ((sizeof(fake_flag) == m_len) - && bcmp(m,fake_flag,m_len) == 0) { + && memcmp(m,fake_flag,m_len) == 0) { int slen; printf("To be faked\r\n"); @@ -432,7 +432,7 @@ int test_rsa_verify(int dtype, printf("test_rsa_verify (dtype=%i) called m_len=%u siglen=%u\r\n", dtype, m_len, siglen); if ((sizeof(fake_flag) == m_len) - && bcmp(m,fake_flag,m_len) == 0) { + && memcmp(m,fake_flag,m_len) == 0) { int size; if ((size = RSA_size(rsa)) < 0) |