cvs commit: src/sys/crypto/rijndael Makefile test00.c

Poul-Henning Kamp phk at FreeBSD.org
Sun Oct 19 15:12:25 PDT 2003


phk         2003/10/19 15:12:24 PDT

  FreeBSD src repository

  Added files:
    sys/crypto/rijndael  Makefile test00.c 
  Log:
  Add a testcase which validates that the same buffer can be passed to
  rijndael_blockDecrypt() as both input and output.
  
  This property is important because inside rijndael we can get away
  with allocating just a 16 byte "work" buffer on the stack (which
  is very cheap), whereas the calling code would need to allocate the
  full sized buffer, and in all likelyhood would have to do so with
  an expensive malloc(9).
  
  Revision  Changes    Path
  1.1       +12 -0     src/sys/crypto/rijndael/Makefile (new)
  1.1       +75 -0     src/sys/crypto/rijndael/test00.c (new)


More information about the cvs-src mailing list