The attached test program works in 1.0, but fails in master with: a.out: crypto/evp/evp_enc.c:290: is_partially_overlapping: Assertion `!condition' failed.
See also: https://mta.openssl.org/pipermail/openssl-dev/2016-July/007953.html -- Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4628 Please log in as guest with password guest if prompted
#include <stdio.h> #include <stdint.h> #include <openssl/evp.h> #include <openssl/bio.h> int main() { BIO *b; uint8_t key[16] = { 0 }, data[1024] = { 0 }, buf[4096]; int l; b = BIO_new(BIO_f_cipher()); BIO_set_cipher(b, EVP_aes_128_cbc(), key, NULL, 0); BIO_push(b, BIO_new_mem_buf(data, sizeof(data))); l = BIO_read(b, buf, sizeof(buf)); printf("%d %d %d\n", l, buf[0], buf[1]); return 0; }
-- openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev