I implemented an Ansi 9.19 mac generator in java, but now I don't know how to validate its functionality. I couldn't find any sample of a {plain text,key,mac} on the internet, and I want to know if there is a good way to test my implementation.
Asked
Active
Viewed 827 times
1 Answers
3
Bouncy Castle has an ISO 9797/ANSI 9.19 Mac implementation with a test vector.
Botan also has an implementation and test vectors, which cross-verify with Bouncy Castle (at least the 128 bit key ones anyway).
From the looks, official test vectors appear to be scarce (unless you want to pay for a copy of the standard and chance one being in there), and it's less than clear that the BC/Botan vectors are official, so cross testing with existing implementations might be the best you can manage.

archie
- 1,988
- 17
- 28