Fix bio_enc_test
authorMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 15:11:55 +0000 (16:11 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 23 Aug 2016 08:24:29 +0000 (09:24 +0100)
commit61884b8140893cb75c62f7303df67291ada360fe
tree109dc8e36b969c5edcb43b3cf673298aa3f0d5be
parent8b7c51a0e4a03895a657cf2eb8d5c2aa1ca3586f
Fix bio_enc_test

There was a block of code at the start that used the Camellia cipher. The
original idea behind this was to fill the buffer with non-zero data so that
oversteps can be detected. However this block failed when using no-camellia.
This has been replaced with a RAND_bytes() call.

I also updated the the CTR test section, since it seems to be using a CBC
cipher instead of a CTR cipher.

Reviewed-by: Andy Polyakov <appro@openssl.org>
test/bio_enc_test.c