Lines Matching refs:xcbc
15 XCBC Support, start an XCBC state
20 /** Initialize XCBC-MAC state
21 @param xcbc [out] XCBC state to initialize
27 int xcbc_init(xcbc_state *xcbc, int cipher, const unsigned char *key, unsigned long keylen)
32 LTC_ARGCHK(xcbc != NULL);
59 xcbc->K[y][x] = y + 1;
61 cipher_descriptor[cipher].ecb_encrypt(xcbc->K[y], xcbc->K[y], skey);
65 err = cipher_descriptor[cipher].setup(xcbc->K[0], cipher_descriptor[cipher].block_length, 0, &xcbc->key);
68 zeromem(xcbc->IV, cipher_descriptor[cipher].block_length);
69 xcbc->blocksize = cipher_descriptor[cipher].block_length;
70 xcbc->cipher = cipher;
71 xcbc->buflen = 0;
83 /* $Source: /cvs/libtom/libtomcrypt/src/mac/xcbc/xcbc_init.c,v $ */