diff options
author | tb <> | 2019-03-17 18:07:41 +0000 |
---|---|---|
committer | tb <> | 2019-03-17 18:07:41 +0000 |
commit | fb0b540c39c782c9152081c2021f54363e04307c (patch) | |
tree | dd2e39bee98dd971a0881b58b8d9c80b4aed5bb3 /src/lib/libcrypto/evp/c_all.c | |
parent | 373c84ef2291a7b228066cf92fe5b23e39cd35aa (diff) | |
download | openbsd-fb0b540c39c782c9152081c2021f54363e04307c.tar.gz openbsd-fb0b540c39c782c9152081c2021f54363e04307c.tar.bz2 openbsd-fb0b540c39c782c9152081c2021f54363e04307c.zip |
Provide EVP_aes_{128,192,256}_wrap(). This is a compatible
implementation based on the one in OpenSSL 1.0.2r which is
still freely licensed.
The functions are undocumented in OpenSSL. To use them, one
needs to set the undocumented EVP_CIPHER_CTX_FLAG_WRAP_ALLOW
flag on the EVP_CIPHER_CTX.
resolves #505
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/c_all.c')
-rw-r--r-- | src/lib/libcrypto/evp/c_all.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/c_all.c b/src/lib/libcrypto/evp/c_all.c index cce3640866..9e9d39d5ab 100644 --- a/src/lib/libcrypto/evp/c_all.c +++ b/src/lib/libcrypto/evp/c_all.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: c_all.c,v 1.25 2019/03/17 17:42:37 tb Exp $ */ | 1 | /* $OpenBSD: c_all.c,v 1.26 2019/03/17 18:07:41 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 | * |
@@ -159,6 +159,7 @@ OpenSSL_add_all_ciphers_internal(void) | |||
159 | EVP_add_cipher(EVP_aes_128_ofb()); | 159 | EVP_add_cipher(EVP_aes_128_ofb()); |
160 | EVP_add_cipher(EVP_aes_128_ctr()); | 160 | EVP_add_cipher(EVP_aes_128_ctr()); |
161 | EVP_add_cipher(EVP_aes_128_gcm()); | 161 | EVP_add_cipher(EVP_aes_128_gcm()); |
162 | EVP_add_cipher(EVP_aes_128_wrap()); | ||
162 | EVP_add_cipher(EVP_aes_128_xts()); | 163 | EVP_add_cipher(EVP_aes_128_xts()); |
163 | EVP_add_cipher_alias(SN_aes_128_cbc, "AES128"); | 164 | EVP_add_cipher_alias(SN_aes_128_cbc, "AES128"); |
164 | EVP_add_cipher_alias(SN_aes_128_cbc, "aes128"); | 165 | EVP_add_cipher_alias(SN_aes_128_cbc, "aes128"); |
@@ -171,6 +172,7 @@ OpenSSL_add_all_ciphers_internal(void) | |||
171 | EVP_add_cipher(EVP_aes_192_ofb()); | 172 | EVP_add_cipher(EVP_aes_192_ofb()); |
172 | EVP_add_cipher(EVP_aes_192_ctr()); | 173 | EVP_add_cipher(EVP_aes_192_ctr()); |
173 | EVP_add_cipher(EVP_aes_192_gcm()); | 174 | EVP_add_cipher(EVP_aes_192_gcm()); |
175 | EVP_add_cipher(EVP_aes_192_wrap()); | ||
174 | EVP_add_cipher_alias(SN_aes_192_cbc, "AES192"); | 176 | EVP_add_cipher_alias(SN_aes_192_cbc, "AES192"); |
175 | EVP_add_cipher_alias(SN_aes_192_cbc, "aes192"); | 177 | EVP_add_cipher_alias(SN_aes_192_cbc, "aes192"); |
176 | EVP_add_cipher(EVP_aes_256_ecb()); | 178 | EVP_add_cipher(EVP_aes_256_ecb()); |
@@ -182,6 +184,7 @@ OpenSSL_add_all_ciphers_internal(void) | |||
182 | EVP_add_cipher(EVP_aes_256_ofb()); | 184 | EVP_add_cipher(EVP_aes_256_ofb()); |
183 | EVP_add_cipher(EVP_aes_256_ctr()); | 185 | EVP_add_cipher(EVP_aes_256_ctr()); |
184 | EVP_add_cipher(EVP_aes_256_gcm()); | 186 | EVP_add_cipher(EVP_aes_256_gcm()); |
187 | EVP_add_cipher(EVP_aes_256_wrap()); | ||
185 | EVP_add_cipher(EVP_aes_256_xts()); | 188 | EVP_add_cipher(EVP_aes_256_xts()); |
186 | EVP_add_cipher_alias(SN_aes_256_cbc, "AES256"); | 189 | EVP_add_cipher_alias(SN_aes_256_cbc, "AES256"); |
187 | EVP_add_cipher_alias(SN_aes_256_cbc, "aes256"); | 190 | EVP_add_cipher_alias(SN_aes_256_cbc, "aes256"); |