diff options
| author | jsing <> | 2022-08-20 19:25:14 +0000 |
|---|---|---|
| committer | jsing <> | 2022-08-20 19:25:14 +0000 |
| commit | 8ab674e8adf72179cc36cc4916d2250d8e54e8d0 (patch) | |
| tree | 511d075dbdc4091ed50ccf9cde4196669b32bba0 /src/regress/lib/libcrypto/aead/aeadtest.c | |
| parent | a3f8b46f14c6c096b064180856e49b266aea59fd (diff) | |
| download | openbsd-8ab674e8adf72179cc36cc4916d2250d8e54e8d0.tar.gz openbsd-8ab674e8adf72179cc36cc4916d2250d8e54e8d0.tar.bz2 openbsd-8ab674e8adf72179cc36cc4916d2250d8e54e8d0.zip | |
Test EVP_chacha20_poly1305() (linking statically for now)
Diffstat (limited to 'src/regress/lib/libcrypto/aead/aeadtest.c')
| -rw-r--r-- | src/regress/lib/libcrypto/aead/aeadtest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/aead/aeadtest.c b/src/regress/lib/libcrypto/aead/aeadtest.c index 567b49a095..2c798a2918 100644 --- a/src/regress/lib/libcrypto/aead/aeadtest.c +++ b/src/regress/lib/libcrypto/aead/aeadtest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: aeadtest.c,v 1.22 2022/07/30 17:09:45 jsing Exp $ */ | 1 | /* $OpenBSD: aeadtest.c,v 1.23 2022/08/20 19:25:14 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2014, Google Inc. | 4 | * Copyright (c) 2014, Google Inc. |
| @@ -101,6 +101,7 @@ aead_from_name(const EVP_AEAD **aead, const EVP_CIPHER **cipher, | |||
| 101 | *cipher = EVP_aes_256_gcm(); | 101 | *cipher = EVP_aes_256_gcm(); |
| 102 | } else if (strcmp(name, "chacha20-poly1305") == 0) { | 102 | } else if (strcmp(name, "chacha20-poly1305") == 0) { |
| 103 | *aead = EVP_aead_chacha20_poly1305(); | 103 | *aead = EVP_aead_chacha20_poly1305(); |
| 104 | *cipher = EVP_chacha20_poly1305(); | ||
| 104 | } else if (strcmp(name, "xchacha20-poly1305") == 0) { | 105 | } else if (strcmp(name, "xchacha20-poly1305") == 0) { |
| 105 | *aead = EVP_aead_xchacha20_poly1305(); | 106 | *aead = EVP_aead_xchacha20_poly1305(); |
| 106 | } else { | 107 | } else { |
