diff options
| author | fgsch <> | 2002-07-16 21:20:00 +0000 |
|---|---|---|
| committer | fgsch <> | 2002-07-16 21:20:00 +0000 |
| commit | a70f9ebd49728bbc787195f91f8867fab990b289 (patch) | |
| tree | 865a813ac56d3fa88754a92e800ccfb4f1ea457a | |
| parent | f21a9804c85ee03bb06d3253d77c1206d6aeb941 (diff) | |
| download | openbsd-a70f9ebd49728bbc787195f91f8867fab990b289.tar.gz openbsd-a70f9ebd49728bbc787195f91f8867fab990b289.tar.bz2 openbsd-a70f9ebd49728bbc787195f91f8867fab990b289.zip | |
correct memset arguments; from Moritz Jodeit <moritz@jodeit.org> via PR/2822.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/engine/hw_4758_cca.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/engine/hw_4758_cca.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/engine/hw_4758_cca.c b/src/lib/libcrypto/engine/hw_4758_cca.c index 77d3d2ffdf..0ca2f920dc 100644 --- a/src/lib/libcrypto/engine/hw_4758_cca.c +++ b/src/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, | |||
| 698 | 698 | ||
| 699 | if (type == NID_sha1 || type == NID_md5) | 699 | if (type == NID_sha1 || type == NID_md5) |
| 700 | { | 700 | { |
| 701 | memset(hashBuffer, keyLength+1, 0); | 701 | memset(hashBuffer, 0, keyLength+1); |
| 702 | OPENSSL_free(hashBuffer); | 702 | OPENSSL_free(hashBuffer); |
| 703 | } | 703 | } |
| 704 | 704 | ||
| @@ -821,7 +821,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, | |||
| 821 | 821 | ||
| 822 | if (type == NID_sha1 || type == NID_md5) | 822 | if (type == NID_sha1 || type == NID_md5) |
| 823 | { | 823 | { |
| 824 | memset(hashBuffer, keyLength+1, 0); | 824 | memset(hashBuffer, 0, keyLength+1); |
| 825 | OPENSSL_free(hashBuffer); | 825 | OPENSSL_free(hashBuffer); |
| 826 | } | 826 | } |
| 827 | 827 | ||
diff --git a/src/lib/libssl/src/crypto/engine/hw_4758_cca.c b/src/lib/libssl/src/crypto/engine/hw_4758_cca.c index 77d3d2ffdf..0ca2f920dc 100644 --- a/src/lib/libssl/src/crypto/engine/hw_4758_cca.c +++ b/src/lib/libssl/src/crypto/engine/hw_4758_cca.c | |||
| @@ -698,7 +698,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, | |||
| 698 | 698 | ||
| 699 | if (type == NID_sha1 || type == NID_md5) | 699 | if (type == NID_sha1 || type == NID_md5) |
| 700 | { | 700 | { |
| 701 | memset(hashBuffer, keyLength+1, 0); | 701 | memset(hashBuffer, 0, keyLength+1); |
| 702 | OPENSSL_free(hashBuffer); | 702 | OPENSSL_free(hashBuffer); |
| 703 | } | 703 | } |
| 704 | 704 | ||
| @@ -821,7 +821,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, | |||
| 821 | 821 | ||
| 822 | if (type == NID_sha1 || type == NID_md5) | 822 | if (type == NID_sha1 || type == NID_md5) |
| 823 | { | 823 | { |
| 824 | memset(hashBuffer, keyLength+1, 0); | 824 | memset(hashBuffer, 0, keyLength+1); |
| 825 | OPENSSL_free(hashBuffer); | 825 | OPENSSL_free(hashBuffer); |
| 826 | } | 826 | } |
| 827 | 827 | ||
