2003-03-02 Moritz Schulte <moritz@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Tue, 4 Mar 2003 18:07:42 +0000 (18:07 +0000)
committerMoritz Schulte <mo@g10code.com>
Tue, 4 Mar 2003 18:07:42 +0000 (18:07 +0000)
commit89c79b26485dc16365c66396f8f8f18c773f4fc1
treea0c722ff254adf8e61c456d93f60d894c2b80091
parentfbbb5dc27d299fb1862a706864cba149d7d53023
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.
cipher/ChangeLog
cipher/cipher.c