algorithm - How do I implement CBC mode? -
my problem lies around aes encryption algorithm , implementing iv algorithm. have ecb version of aes working , have thoroughly tested it. i'm trying make more secure adding in iv. looking understand better knowing how iv implemented in algorithm.
i understanding iv xor'd plain text before encryption, , iv stored encrypted data decryption. when go decrypt, do same xor computation after decryption process?
i tried above process , test encryption , decryption work same values, when put 2 processes side side values close 1 another, doesn't seem working quite right. not asking code fixed, process laid out me know i'm doing correctly. thanks.
i find wikipedia diagrams useful visualizing happens in cbc-mode:
you need decrypt first block of ciphertext, xor iv first block of plaintext. thereafter, need xor previous block of ciphertext current block of decrypted data.
Comments
Post a Comment