[Swan-dev] where to put crypto test vectors?

D. Hugh Redelmeier hugh at mimosa.com
Fri Dec 19 21:51:52 EET 2014


| From: Paul Wouters <paul at nohats.ca>
| 
| On Fri, 19 Dec 2014, Andrew Cagney wrote:
| 
| > I've some code that uses test-vectors to check:
| >
| >   struct encrypt_desc.do_crypt
| >
| > I'm wondering if anyone has a preference for where they should live?
| > Separate file; next to the crypto code; ...
| 
| I would prefer a separate file,

Henry wrote some of the library routines files such that they could be
compiled as self tests (selected by a -D flag on the compile).  This
seemed nice to me.

I don't know if that would work in this case.

I guess it depends one how the test driving code is organized.


More information about the Swan-dev mailing list