On Wed, 31 Dec 2014, Andrew Cagney wrote:

Just a post note.

While adding (WIP) GCM, I needed to get logging working.  The sequence
below seems to work:

#if 0
   NSS_NoDB_Init(".");

   log_to_stderr = TRUE;
   base_debugging = DBG_ALL;
   reset_debugging();
   pluto_init_log();

   if (!test_aes_gcm()) {
       printf("aes-gcm failed\n");
   }
   exit(0);
#endif

With some chair shuffling, this could be turned into a separate
program, or something run as an option.

I would prefer a pluto option over a separate program. The latter will
take some work because we need to create a library for the shared
code with pluto and this new binary. It also complicates the code,
especially around logging.

Something like --test-vectors or --crypto-tests ?

Paul
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to