diff options
| author | tb <> | 2024-05-30 17:01:38 +0000 |
|---|---|---|
| committer | tb <> | 2024-05-30 17:01:38 +0000 |
| commit | aee2754cfbb89d3dff4c3a521fb027d0c6967bc9 (patch) | |
| tree | bb1adc344e2aa0ed348eb1ba9ac830f7c7db45d6 /src | |
| parent | 84c551520085fea849e9a117e49ee5f68945da1c (diff) | |
| download | openbsd-aee2754cfbb89d3dff4c3a521fb027d0c6967bc9.tar.gz openbsd-aee2754cfbb89d3dff4c3a521fb027d0c6967bc9.tar.bz2 openbsd-aee2754cfbb89d3dff4c3a521fb027d0c6967bc9.zip | |
Adjust hmac test for removal of static buffer from HMAC()
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/hmac/hmactest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/hmac/hmactest.c b/src/regress/lib/libcrypto/hmac/hmactest.c index f61a177e1b..99b936f933 100644 --- a/src/regress/lib/libcrypto/hmac/hmactest.c +++ b/src/regress/lib/libcrypto/hmac/hmactest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: hmactest.c,v 1.7 2021/11/18 20:11:55 tb Exp $ */ | 1 | /* $OpenBSD: hmactest.c,v 1.8 2024/05/30 17:01:38 tb 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 | * |
| @@ -153,7 +153,7 @@ main(int argc, char *argv[]) | |||
| 153 | for (i = 0; i < 4; i++) { | 153 | for (i = 0; i < 4; i++) { |
| 154 | p = pt(HMAC(EVP_md5(), | 154 | p = pt(HMAC(EVP_md5(), |
| 155 | test[i].key, test[i].key_len, | 155 | test[i].key, test[i].key_len, |
| 156 | test[i].data, test[i].data_len, NULL, NULL), | 156 | test[i].data, test[i].data_len, buf, NULL), |
| 157 | MD5_DIGEST_LENGTH); | 157 | MD5_DIGEST_LENGTH); |
| 158 | 158 | ||
| 159 | if (strcmp(p, (char *)test[i].digest) != 0) { | 159 | if (strcmp(p, (char *)test[i].digest) != 0) { |
