Re: [openssl-users] BIO_seek() on bio_f_cipher with EVP_aes_256_ctr

2016-08-11 Thread William King
"Matched\n"); } Does the BIO_seek() not handle incrementing or decrementing the IV counter? is there a callback that needs to be set to calculate what the IV counter value should be for a given file position for the cipher? William King Senior Engineer Quentus Technologies, INC 1037

Re: [openssl-users] BIO_seek() on bio_f_cipher with EVP_aes_256_ctr

2016-08-11 Thread William King
IO_read(enc, buffer, 128); /* END CODE BLOCK */ What I'm finding is that using fread() of the unencrypted file and comparing that to the BIO_seek() then BIO_read(), the data is not properly decrypted. Comparing fread() of the unencrypted file, to just doing BIO_read()'s does decrypt th

[openssl-users] BIO_seek() on bio_f_cipher with EVP_aes_256_ctr

2016-08-09 Thread William King
What is needed to be able to BIO_seek() on a bio_f_cipher() with a cipher of EVP_aes_256_ctr() without the counter, or IV or another internal state getting corrupted? It seems that doing a seek any direction results in corrupted output. -- William King Senior Engineer Quentus Technologies, INC