libgcrypt/cipher (ChangeLog cipher.c)

cvs user mo cvs@cvs.gnupg.org
Tue, 04 Mar 2003 19:07:52 +0100


    Date: Tuesday, March 4, 2003 @ 19:07:42
  Author: mo
    Path: /cvs/gnupg/libgcrypt/cipher

Modified: ChangeLog cipher.c

2003-03-02  Moritz Schulte  <moritz@g10code.com>

	* cipher.c (struct gcry_cipher_handle): New member: algo_index.
	(gcry_cipher_open): Allocate memory for two cipher contexts.
	Initialize algo_index.
	(cipher_setkey): Duplicate context into reserved memory.
	(cipher_reset): New function, which resets the context and clear
	the IV.
	(gcry_cipher_ctl): Call cipher_reset.


-----------+
 ChangeLog |   15 +++++++++++++++
 cipher.c  |   39 +++++++++++++++++++++++++++++++++------
 2 files changed, 48 insertions(+), 6 deletions(-)