diff options
author | Pete Bentley <prb@google.com> | 2019-08-08 14:53:19 +0000 |
---|---|---|
committer | Pete Bentley <prb@google.com> | 2019-08-08 14:53:19 +0000 |
commit | 228bd6249d17f351ea66508b3ec3112ed1cbdf30 (patch) | |
tree | b178584cd6074879284532ebf5f91db100ff119c /src/include/openssl/aes.h | |
parent | f8d8b73da16aa9f2fdda401a46b4f86a83016712 (diff) | |
download | boringssl-228bd6249d17f351ea66508b3ec3112ed1cbdf30.tar.gz |
Revert "external/boringssl: Sync to 81080a729af568f7b5fde92b9170cc17065027c9."
This reverts commit f8d8b73da16aa9f2fdda401a46b4f86a83016712.
Reason for revert: Breaks buildsdk_tools_cross_win
Change-Id: I3bac24f78d165dfa7f89b878cc2277281fd8f1ab
Diffstat (limited to 'src/include/openssl/aes.h')
-rw-r--r-- | src/include/openssl/aes.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/include/openssl/aes.h b/src/include/openssl/aes.h index e5606253..3606bfc4 100644 --- a/src/include/openssl/aes.h +++ b/src/include/openssl/aes.h @@ -6,7 +6,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -163,31 +163,6 @@ OPENSSL_EXPORT int AES_unwrap_key(const AES_KEY *key, const uint8_t *iv, size_t in_len); -// AES key wrap with padding. -// -// These functions implement AES Key Wrap with Padding mode, as defined in RFC -// 5649. They should never be used except to interoperate with existing systems -// that use this mode. - -// AES_wrap_key_padded performs a padded AES key wrap on |in| which must be -// between 1 and 2^32-1 bytes. |key| must have been configured for encryption. -// On success it writes at most |max_out| bytes of ciphertext to |out|, sets -// |*out_len| to the number of bytes written, and returns one. On failure it -// returns zero. To ensure success, set |max_out| to at least |in_len| + 15. -OPENSSL_EXPORT int AES_wrap_key_padded(const AES_KEY *key, uint8_t *out, - size_t *out_len, size_t max_out, - const uint8_t *in, size_t in_len); - -// AES_unwrap_key_padded performs a padded AES key unwrap on |in| which must be -// a multiple of 8 bytes. |key| must have been configured for decryption. On -// success it writes at most |max_out| bytes to |out|, sets |*out_len| to the -// number of bytes written, and returns one. On failure it returns zero. Setting -// |max_out| to |in_len| is a sensible estimate. -OPENSSL_EXPORT int AES_unwrap_key_padded(const AES_KEY *key, uint8_t *out, - size_t *out_len, size_t max_out, - const uint8_t *in, size_t in_len); - - #if defined(__cplusplus) } // extern C #endif |