aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/modes/ccm128.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-02-08 23:08:02 +0000
committerAndy Polyakov <appro@openssl.org>2011-02-08 23:08:02 +0000
commit632d83f0a3fbda2e7f4e556183792597b7db88fc (patch)
tree674c0508ccf1ec7319726883e213cd9e1fcd8719 /crypto/modes/ccm128.c
parentd3fad7cb5144239e4493f0d73148e63522f95dfe (diff)
downloadopenssl-632d83f0a3fbda2e7f4e556183792597b7db88fc.tar.gz
ccm128.c: initialize ctx->block (what I was smoking?).
Diffstat (limited to 'crypto/modes/ccm128.c')
-rw-r--r--crypto/modes/ccm128.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/modes/ccm128.c b/crypto/modes/ccm128.c
index dc42b480bd..ced0a2b5d7 100644
--- a/crypto/modes/ccm128.c
+++ b/crypto/modes/ccm128.c
@@ -68,11 +68,12 @@ typedef struct {
/* First you setup M and L parameters and pass the key schedule */
void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,
- unsigned int M,unsigned int L,void *key)
+ unsigned int M,unsigned int L,void *key,block128_f block)
{
memset(ctx->nonce.c,0,sizeof(ctx->nonce.c));
ctx->nonce.c[0] = ((u8)(L-1)&7) | (u8)(((M-2)/2)&7)<<3;
ctx->blocks = 0;
+ ctx->block = block;
ctx->key = key;
}