boringssl/crypto/cipher
David Benjamin a6d81018f8 Consistently use RAND_bytes and check for failure.
RAND_pseudo_bytes just calls RAND_bytes now and only returns 0 or 1. Switch all
callers within the library call the new one and use the simpler failure check.
This fixes a few error checks that no longer work (< 0) and some missing ones.

Change-Id: Id51c79deec80075949f73fa1fbd7b76aac5570c6
Reviewed-on: https://boringssl-review.googlesource.com/2621
Reviewed-by: Adam Langley <agl@google.com>
2014-12-16 19:15:59 +00:00
..
aead_test.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
aead.c AEAD interface. 2014-06-20 13:17:34 -07:00
aes_128_gcm_tests.txt AEAD tests. 2014-06-20 13:17:34 -07:00
aes_128_key_wrap_tests.txt Add AES Key Wrap mode. 2014-07-28 21:32:39 +00:00
aes_256_gcm_tests.txt AEAD tests. 2014-06-20 13:17:34 -07:00
aes_256_key_wrap_tests.txt Add AES Key Wrap mode. 2014-07-28 21:32:39 +00:00
chacha20_poly1305_tests.txt ChaCha20-Poly1305 support. 2014-06-20 13:17:35 -07:00
cipher_error.c Readd EVP_CIPHER_CTX_set_key_length. 2014-08-26 21:52:01 +00:00
cipher_test.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
cipher_test.txt Inital import. 2014-06-20 13:17:32 -07:00
cipher.c Don't include strings.h because of Windows. 2014-09-29 17:57:38 -07:00
CMakeLists.txt Add 40-bit RC2 support. 2014-08-25 21:37:20 +00:00
derive_key.c Inital import. 2014-06-20 13:17:32 -07:00
e_aes.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
e_chacha20poly1305.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
e_des.c Inital import. 2014-06-20 13:17:32 -07:00
e_null.c Inital import. 2014-06-20 13:17:32 -07:00
e_rc2.c Shush some dead assignments. 2014-11-06 01:34:33 +00:00
e_rc4.c Don't manually extern OPENSSL_ia32cap_P. 2014-12-02 19:43:01 +00:00
internal.h AEAD interface. 2014-06-20 13:17:34 -07:00
rc4_md5_tests.txt Add stitched RC4-MD5 as an AEAD. 2014-06-30 23:01:17 +00:00