[DISREGARD] Decrypt 48 bytes with AES-128 CFB and get 42 bytes? #971
darrellroot
started this conversation in
General
Replies: 1 comment 1 reply
-
I'd love to hear more here. In general, I'd expect to decrypt 48 bytes (?) for CFB. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EDIT: This discussion can be disregarded. My application is for SNMPv3 with encryption and per RFC3826 section 3.1.3 SNMPv3-AES uses a special procedure to encrypt/decrypt the last block.
END-EDIT
Here's a test case where I decrypt 48 bytes with AES-128 CFB and get 42 bytes. They are the correct leading 42 bytes, but missing the last 6 bytes. This is with Swift 5.6 in Xcode 13.4.1. Is this a bug? Or is the problem between keyboard and chair on my end? - Darrell
Beta Was this translation helpful? Give feedback.
All reactions