[erlang-questions] blowfish cbc mode decrypt
Thu Nov 5 14:26:06 CET 2015
I have a stream of data called EncryptedData (with randomiv header
I want to decrypt using:
crypto:block_decrypt(blowfish_cbc, hexstr2bin(Key), IV, Rest).
EncryptedData is formatted as follows:
<<IvSpec:8/binary, IV:8/binary, Rest/binary>>
IvSpec == <<"RandomIV">>
However the decryption does not works and garbage is generated
(the function ) .
What could be done given the fact that IV is an 8-byte quantity
the Key is formatted according to crypto test suites and is 16 bytes long
Am I missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions