diff options
author | 2002-07-16 21:20:00 +0000 | |
---|---|---|
committer | 2002-07-16 21:20:00 +0000 | |
commit | 9b28da8672f302fd552be2fcf85ccb0fdb7391b3 (patch) | |
tree | ffa2439a129e987157d18291dd0ea46ba1c8fec6 /lib/libcrypto | |
parent | correct lseek arguments; from Moritz Jodeit <moritz@jodeit.org> via PR/2822. (diff) | |
download | wireguard-openbsd-9b28da8672f302fd552be2fcf85ccb0fdb7391b3.tar.xz wireguard-openbsd-9b28da8672f302fd552be2fcf85ccb0fdb7391b3.zip |
correct memset arguments; from Moritz Jodeit <moritz@jodeit.org> via PR/2822.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/engine/hw_4758_cca.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/engine/hw_4758_cca.c b/lib/libcrypto/engine/hw_4758_cca.c index 77d3d2ffdfd..0ca2f920dc3 100644 --- a/lib/libcrypto/engine/hw_4758_cca.c +++ b/lib/libcrypto/engine/hw_4758_cca.c @@ -698,7 +698,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } @@ -821,7 +821,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } |