It appears there is a bug in the Crypto++ implementation of MARS. 

Key = 000000000000000000004000000000000000000000000000
Plaintext = 00000000000000000000000000000000
Expected = 1A4D5C52FDDEE81374295341F950055D
Got (Crypto++ 5.2.1) = 8AC102E7CA75CCAB624911E4D6E58B38

This is an official MARS test vector, one of the ones from ecb_vk.txt in the
IBM MARS software distribution. This is on Linux/x86 with 4.0.2. An easy way to
test is to replace one of the vectors in marsval.dat with the above and run the
validation suite.

Regards,
  Jack

Reply via email to