diff options
author | Brian Smith <brian@briansmith.org> | 2015-03-16 14:19:32 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-11 01:39:23 +0300 |
commit | 7d897a1bf2abab32f3e6200ee15930d68ae87ad6 (patch) | |
tree | 30e87ff04d4d8451e484b02c048cf7ccaea98ed1 /include/openssl/cipher.h | |
parent | 48b3150c087bd84f4bdd03c21a1c9a75ca92eec9 (diff) |
Replace RC4 in examples with AES-128-GCM.
Avoiding superflous references to RC4 makes it easier to audit the code
to find unsafe uses of it. It also avoids subtly encouraging users to
choose RC4 instead of a better alternative.
Change-Id: Ia27d7f4cd465e143d30a28b36c7871f7c30411ea
Reviewed-on: https://boringssl-review.googlesource.com/3990
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/cipher.h')
-rw-r--r-- | include/openssl/cipher.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/openssl/cipher.h b/include/openssl/cipher.h index 4bdda14c..61c73082 100644 --- a/include/openssl/cipher.h +++ b/include/openssl/cipher.h @@ -237,7 +237,8 @@ OPENSSL_EXPORT const EVP_CIPHER *EVP_CIPHER_CTX_cipher( const EVP_CIPHER_CTX *ctx); /* EVP_CIPHER_CTX_nid returns a NID identifying the |EVP_CIPHER| underlying - * |ctx| (e.g. |NID_rc4|). It will crash if no cipher has been configured. */ + * |ctx| (e.g. |NID_aes_128_gcm|). It will crash if no cipher has been + * configured. */ OPENSSL_EXPORT int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx); /* EVP_CIPHER_CTX_block_size returns the block size, in bytes, of the cipher @@ -290,7 +291,7 @@ OPENSSL_EXPORT int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, unsigned k /* Cipher accessors. */ /* EVP_CIPHER_nid returns a NID identifing |cipher|. (For example, - * |NID_rc4|.) */ + * |NID_aes_128_gcm|.) */ OPENSSL_EXPORT int EVP_CIPHER_nid(const EVP_CIPHER *cipher); /* EVP_CIPHER_name returns the short name for |cipher| or NULL if no name is |