[openssl-users] DES3 CFB1 mode
Marcus Vinicius do Nascimento
m.vinicius at samsung.com
Tue Jun 16 19:19:11 UTC 2015
I've been trying to use DES_EDE3_CFB1 encryption in openssl version 1.0.1f
but I couldn't make it work correctly.
My understanding is that EVP_CipherUpdate is expecting the input data length
(inl) in bytes, not bits as expected.
I tried digging a little the GitHub repository but I'm not sure if it has
already been fixed in newer versions.
According to the link below, AES seems to be handling CFB1 as an exception
in crypto/evp/e_aes.c file. However I couldn't find similar exception for
Anyone here could ever encode data with bit length which is not a multiple
Example from FIPS tests:
KEY1 = 04f16e92fd3b463e
KEY2 = 04f16e92fd3b463e
KEY3 = 04f16e92fd3b463e
IV = c7203aec8a805910
PLAINTEXT = 011
CIPHERTEXT = 110
Thanks very much,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the openssl-users