Object C Encryption CFB Mode

I know that in Objective-C, I can encrypt using AES128 through my own libraries (CommonCrypter.h). In Java, I encrypt using AES128 ISO-8859-1 in CFB mode. In Objective-C, encoding is done through NSISOLATIN1STRINGENCODING, but there is no problem in the equivalent CFB mode. Only available modes are available: EBC padding, KCCOPTIONECBMODE and KCCOPTIONPKCS7PADDING.

I need to encrypt using AES128 with CFB mode. Does anyone have an idea about this? Thanks for the ton in advance.

+4
source share
1 answer

CBC can be built using ECB, conceptually this:

Key K; InitializationVector IV; OutputDataStream OS; Block X; set X = IV; for each Block B of data D: Block E = ECB(K, B ^ X); set X = E write E to OS 
+3
source

All Articles