Date: Sun, 19 Oct 2003 15:12:24 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/crypto/rijndael Makefile test00.c Message-ID: <200310192212.h9JMCOud080964@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310192212.h9JMCOud080964>