Re: AES and EVP_CIPHER question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's a simple/stupid test program and its output, running on Ubuntu 20.04 LTS:

OpenSSL 1.1.1f  31 Mar 2020
EVP_CIPHER_CTX_new returns 0x5627171042a0
EVP_CipherInit returns 1
EVP_CipherUpdate returns 1, outlen = 0
buf: 'Mary had a littl'
EVP_CipherFinal returns 0, finallen = 0
buf: 'Mary had a littl'
final: '****************'

Arguably, "outlen" should be the same as "inlen" when calling EVP_CipherUpdate() for ECB.  EVP_CipherFinal() should return 1... not clear what the appropriate value of "outlen" should be in that case, guessing 0?

Attachment: test.c
Description: Binary data


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux