From owner-cvs-src@FreeBSD.ORG Sun Oct 19 15:12:25 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6031B16A4B3; Sun, 19 Oct 2003 15:12:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1FB143F3F; Sun, 19 Oct 2003 15:12:24 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9JMCOXJ080965; Sun, 19 Oct 2003 15:12:24 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9JMCOud080964; Sun, 19 Oct 2003 15:12:24 -0700 (PDT) (envelope-from phk) Message-Id: <200310192212.h9JMCOud080964@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 19 Oct 2003 15:12:24 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/crypto/rijndael Makefile test00.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 22:12:25 -0000 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)