diff options
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r-- | cipher/cipher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c index 6e1173f5..d1550c07 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -744,6 +744,8 @@ cipher_reset (gcry_cipher_hd_t c) case GCRY_CIPHER_MODE_OCB: memset (&c->u_mode.ocb, 0, sizeof c->u_mode.ocb); + /* Setup default taglen. */ + c->u_mode.ocb.taglen = 16; break; default: |