Encryption and Decryption using aes-xxx-cfb1

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

 



I am running FIPS test vectors against AES-CFB. I am getting correct results for aes-cfb128 and aes-cfb8 tests but not getting correct values for aes-cfb1. The details are given below. Am I missing something ? 

===========================
Correct Results for CFB128
===========================

KEY = 10a58869d74be5a374cf867cfb473859
IV = 00000000000000000000000000000000
PLAINTEXT = 00000000000000000000000000000000
CIPHERTEXT = 6d251e6944b051e04eaa6fb4dbf78465

[root at Con]# echo 00000000000000000000000000000000 | xxd -r -p > plaintext
[root at Con]# 
[root at Con]# openssl enc -aes-128-cfb -p -nopad -nosalt -K 10a58869d74be5a374cf867cfb473859 -iv 00000000000000000000000000000000 -in plaintext -out ciphertext
key=10A58869D74BE5A374CF867CFB473859
iv =00000000000000000000000000000000
[root at Con]# xxd -p ciphertext > ciphertextssd
[root at Con]# cat ciphertextssd
6d251e6944b051e04eaa6fb4dbf78465 <================== Correct Result
[root at Controller]# 

============================
In-Correct Results for CFB1
============================

KEY = a2e2fa9baf7d20822ca9f0542f764a41
IV = 00000000000000000000000000000000
PLAINTEXT = 0
CIPHERTEXT = 1

[root at Con]# echo 0 | xxd -r -p > plaintext
[root at Con]# 
[root at Con]# openssl enc -aes-128-cfb1 -p -nopad -nosalt 
-K a2e2fa9baf7d20822ca9f0542f764a41 -iv 00000000000000000000000000000000 -in pla
intext -out ciphertext
key=A2E2FA9BAF7D20822CA9F0542F764A41
iv =00000000000000000000000000000000
[root at Con]# xxd -p ciphertext > ciphertextssd
[root at Cont]# 
[root at Con]# cat ciphertextssd
[root at Con]# <================== No Result whereas it should be 1

Thanks,Haq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20151111/9931c435/attachment-0001.html>


[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