diff options
Diffstat (limited to 'src/regress/lib/libcrypto/aead/aeadtest.c')
| -rw-r--r-- | src/regress/lib/libcrypto/aead/aeadtest.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/aead/aeadtest.c b/src/regress/lib/libcrypto/aead/aeadtest.c index 4d96ed6de4..4322194f82 100644 --- a/src/regress/lib/libcrypto/aead/aeadtest.c +++ b/src/regress/lib/libcrypto/aead/aeadtest.c | |||
| @@ -73,7 +73,7 @@ | |||
| 73 | * TAG: 1d45758621762e061368e68868e2f929 | 73 | * TAG: 1d45758621762e061368e68868e2f929 |
| 74 | */ | 74 | */ |
| 75 | 75 | ||
| 76 | #define BUF_MAX 512 | 76 | #define BUF_MAX 1024 |
| 77 | 77 | ||
| 78 | /* These are the different types of line that are found in the input file. */ | 78 | /* These are the different types of line that are found in the input file. */ |
| 79 | enum { | 79 | enum { |
| @@ -112,7 +112,8 @@ hex_digit(char h) | |||
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | int | 114 | int |
| 115 | aead_from_name(const EVP_AEAD **aead, const char *name){ | 115 | aead_from_name(const EVP_AEAD **aead, const char *name) |
| 116 | { | ||
| 116 | *aead = NULL; | 117 | *aead = NULL; |
| 117 | 118 | ||
| 118 | if (strcmp(name, "aes-128-gcm") == 0) { | 119 | if (strcmp(name, "aes-128-gcm") == 0) { |
| @@ -127,6 +128,12 @@ aead_from_name(const EVP_AEAD **aead, const char *name){ | |||
| 127 | #else | 128 | #else |
| 128 | fprintf(stderr, "No AES support.\n"); | 129 | fprintf(stderr, "No AES support.\n"); |
| 129 | #endif | 130 | #endif |
| 131 | } else if (strcmp(name, "chacha20-poly1305") == 0) { | ||
| 132 | #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) | ||
| 133 | *aead = EVP_aead_chacha20_poly1305(); | ||
| 134 | #else | ||
| 135 | fprintf(stderr, "No chacha20-poly1305 support.\n"); | ||
| 136 | #endif | ||
| 130 | } else { | 137 | } else { |
| 131 | fprintf(stderr, "Unknown AEAD: %s\n", name); | 138 | fprintf(stderr, "Unknown AEAD: %s\n", name); |
| 132 | return -1; | 139 | return -1; |
