cbc-mac

How can I implement CBC-MAC with DES?

主宰稳场 提交于 2019-12-08 02:39:46
问题 I should implement a MAC-CBC generation method in C# with some information about the cryptography algorithm. Here's what I have: I should use DES. The key is byte[] {11, 11, 11, 11, 11, 11, 11, 11} The data (16 bytes) should be encrypted in 8-byte parts. First 8 bytes is encrypted using Instance Vector = new byte[8] (8 bytes with 0 value). (CBC?) that last 8 bytes of the encrypted value should be converted to Hex string. this is the result I should send. With this information, I have