Searched defs:xcbc (Results 1 - 5 of 5) sorted by relevance
/external/dropbear/libtomcrypt/src/mac/xcbc/ |
H A D | xcbc_done.c | 21 @param xcbc XCBC state to terminate 26 int xcbc_done(xcbc_state *xcbc, unsigned char *out, unsigned long *outlen) argument 29 LTC_ARGCHK(xcbc != NULL); 33 if ((err = cipher_is_valid(xcbc->cipher)) != CRYPT_OK) { 37 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher].block_length) || (xcbc->blocksize < 0) || 38 (xcbc->buflen > xcbc->blocksize) || (xcbc [all...] |
H A D | xcbc_process.c | 21 @param xcbc The XCBC-MAC state 26 int xcbc_process(xcbc_state *xcbc, const unsigned char *in, unsigned long inlen) argument 33 LTC_ARGCHK(xcbc != NULL); 37 if ((err = cipher_is_valid(xcbc->cipher)) != CRYPT_OK) { 41 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher].block_length) || (xcbc->blocksize < 0) || 42 (xcbc->buflen > xcbc->blocksize) || (xcbc [all...] |
H A D | xcbc_init.c | 21 @param xcbc [out] XCBC state to initialize 27 int xcbc_init(xcbc_state *xcbc, int cipher, const unsigned char *key, unsigned long keylen) argument 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 [all...] |
H A D | xcbc_memory.c | 35 xcbc_state *xcbc; local 48 xcbc = XCALLOC(1, sizeof(*xcbc)); 49 if (xcbc == NULL) { 53 if ((err = xcbc_init(xcbc, cipher, key, keylen)) != CRYPT_OK) { 57 if ((err = xcbc_process(xcbc, in, inlen)) != CRYPT_OK) { 61 err = xcbc_done(xcbc, out, outlen); 63 XFREE(xcbc); 69 /* $Source: /cvs/libtom/libtomcrypt/src/mac/xcbc/xcbc_memory.c,v $ */
|
H A D | xcbc_memory_multi.c | 39 xcbc_state *xcbc; local 49 /* allocate ram for xcbc state */ 50 xcbc = XMALLOC(sizeof(xcbc_state)); 51 if (xcbc == NULL) { 55 /* xcbc process the message */ 56 if ((err = xcbc_init(xcbc, cipher, key, keylen)) != CRYPT_OK) { 64 if ((err = xcbc_process(xcbc, curptr, curlen)) != CRYPT_OK) { 74 if ((err = xcbc_done(xcbc, out, outlen)) != CRYPT_OK) { 79 zeromem(xcbc, sizeof(xcbc_state)); 81 XFREE(xcbc); [all...] |
Completed in 65 milliseconds