/external/dropbear/libtomcrypt/src/mac/pmac/ |
pmac_process.c | 15 PMAC implementation, process data, by Tom St Denis 22 Process data in a PMAC stream 23 @param pmac The PMAC state 24 @param in The data to send through PMAC 25 @param inlen The length of the data to send through PMAC 28 int pmac_process(pmac_state *pmac, const unsigned char *in, unsigned long inlen) 34 LTC_ARGCHK(pmac != NULL); 36 if ((err = cipher_is_valid(pmac->cipher_idx)) != CRYPT_OK) { 40 if ((pmac->buflen > (int)sizeof(pmac->block)) || (pmac->buflen < 0) | [all...] |
pmac_shift_xor.c | 15 PMAC implementation, internal function, by Tom St Denis 22 @param pmac The PMAC state. 24 void pmac_shift_xor(pmac_state *pmac) 27 y = pmac_ntz(pmac->block_index++); 29 for (x = 0; x < pmac->block_len; x += sizeof(LTC_FAST_TYPE)) { 30 *((LTC_FAST_TYPE*)((unsigned char *)pmac->Li + x)) ^= 31 *((LTC_FAST_TYPE*)((unsigned char *)pmac->Ls[y] + x)); 34 for (x = 0; x < pmac->block_len; x++) { 35 pmac->Li[x] ^= pmac->Ls[y][x] [all...] |
pmac_init.c | 15 PMAC implementation, initialize state, by Tom St Denis 39 Initialize a PMAC state 40 @param pmac The PMAC state to initialize 46 int pmac_init(pmac_state *pmac, int cipher, const unsigned char *key, unsigned long keylen) 51 LTC_ARGCHK(pmac != NULL); 60 pmac->block_len = cipher_descriptor[cipher].block_length; 62 if (polys[poly].len == pmac->block_len) { 66 if (polys[poly].len != pmac->block_len) { 71 if (pmac->block_len % sizeof(LTC_FAST_TYPE)) [all...] |
pmac_memory.c | 15 PMAC implementation, process a block of memory, by Tom St Denis 21 PMAC a block of memory 25 @param in The data you wish to send through PMAC 26 @param inlen The length of data you wish to send through PMAC (octets) 37 pmac_state *pmac; local 44 /* allocate ram for pmac state */ 45 pmac = XMALLOC(sizeof(pmac_state)); 46 if (pmac == NULL) { 50 if ((err = pmac_init(pmac, cipher, key, keylen)) != CRYPT_OK) { 53 if ((err = pmac_process(pmac, in, inlen)) != CRYPT_OK) [all...] |
pmac_memory_multi.c | 16 PMAC implementation, process multiple blocks of memory, by Tom St Denis 22 PMAC multiple blocks of memory 28 @param in The data you wish to send through PMAC 29 @param inlen The length of data you wish to send through PMAC (octets) 30 @param ... tuples of (data,len) pairs to PMAC, terminated with a (NULL,x) (x=don't care) 39 pmac_state *pmac; local 49 /* allocate ram for pmac state */ 50 pmac = XMALLOC(sizeof(pmac_state)); 51 if (pmac == NULL) { 55 if ((err = pmac_init(pmac, cipher, key, keylen)) != CRYPT_OK) [all...] |
pmac_file.c | 15 PMAC implementation, process a file, by Tom St Denis 21 PMAC a file 25 @param filename The name of the file to send through PMAC 39 pmac_state pmac; 54 if ((err = pmac_init(&pmac, cipher, key, keylen)) != CRYPT_OK) { 61 if ((err = pmac_process(&pmac, buf, x)) != CRYPT_OK) { 68 if ((err = pmac_done(&pmac, out, outlen)) != CRYPT_OK) { 82 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_file.c,v $ */
|
pmac_ntz.c | 15 PMAC implementation, internal function, by Tom St Denis 21 Internal PMAC function 37 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_ntz.c,v $ */
|
pmac_test.c | 15 PMAC implementation, self-test, by Tom St Denis 35 /* PMAC-AES-128-0B */ 48 /* PMAC-AES-128-3B */ 61 /* PMAC-AES-128-16B */ 75 /* PMAC-AES-128-20B */ 90 /* PMAC-AES-128-32B */ 106 /* PMAC-AES-128-34B */ 163 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_test.c,v $ */
|
pmac_done.c | 15 PMAC implementation, terminate a session, by Tom St Denis 72 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_done.c,v $ */
|
/external/dropbear/libtomcrypt/notes/ |
pmac_tv.txt | 0 PMAC Tests. In these tests messages of N bytes long (00,01,02,...,NN-1) are OMAC'ed. The initial key is 5 PMAC-aes (16 byte key) 40 PMAC-blowfish (8 byte key) 59 PMAC-xtea (16 byte key) 78 PMAC-rc5 (8 byte key) 97 PMAC-rc6 (16 byte key) 132 PMAC-safer+ (16 byte key) 167 PMAC-twofish (16 byte key) 202 PMAC-safer-k64 (8 byte key) 221 PMAC-safer-sk64 (8 byte key [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/evp/ |
e_aes_cbc_hmac_sha1.c | 247 unsigned char c[32+SHA_DIGEST_LENGTH]; } mac, *pmac; local 250 pmac = (void *)(((size_t)mac.c+31)&((size_t)0-32)); 316 pmac->u[0]=0; 317 pmac->u[1]=0; 318 pmac->u[2]=0; 319 pmac->u[3]=0; 320 pmac->u[4]=0; 335 pmac->u[0] |= key->md.h0 & mask; 336 pmac->u[1] |= key->md.h1 & mask; 337 pmac->u[2] |= key->md.h2 & mask [all...] |
/external/openssl/crypto/evp/ |
e_aes_cbc_hmac_sha1.c | 247 unsigned char c[32+SHA_DIGEST_LENGTH]; } mac, *pmac; local 250 pmac = (void *)(((size_t)mac.c+31)&((size_t)0-32)); 316 pmac->u[0]=0; 317 pmac->u[1]=0; 318 pmac->u[2]=0; 319 pmac->u[3]=0; 320 pmac->u[4]=0; 335 pmac->u[0] |= key->md.h0 & mask; 336 pmac->u[1] |= key->md.h1 & mask; 337 pmac->u[2] |= key->md.h2 & mask [all...] |
/external/dropbear/libtomcrypt/testprof/ |
mac_test.c | 1 /* test pmac/omac/hmac */
|
/external/dropbear/libtomcrypt/ |
Android.mk | 36 src/mac/pmac/pmac_done.c src/mac/pmac/pmac_file.c src/mac/pmac/pmac_init.c src/mac/pmac/pmac_memory.c \ 37 src/mac/pmac/pmac_memory_multi.c src/mac/pmac/pmac_ntz.c src/mac/pmac/pmac_process.c \ 38 src/mac/pmac/pmac_shift_xor.c src/mac/pmac/pmac_test.c src/mac/xcbc/xcbc_done.c \
|
makefile.msvc | 34 src/mac/pmac/pmac_done.obj src/mac/pmac/pmac_file.obj src/mac/pmac/pmac_init.obj src/mac/pmac/pmac_memory.obj \ 35 src/mac/pmac/pmac_memory_multi.obj src/mac/pmac/pmac_ntz.obj src/mac/pmac/pmac_process.obj \ 36 src/mac/pmac/pmac_shift_xor.obj src/mac/pmac/pmac_test.obj src/mac/xcbc/xcbc_done.obj \
|
Makefile.in | 127 src/mac/pmac/pmac_done.o src/mac/pmac/pmac_file.o src/mac/pmac/pmac_init.o src/mac/pmac/pmac_memory.o \ 128 src/mac/pmac/pmac_memory_multi.o src/mac/pmac/pmac_ntz.o src/mac/pmac/pmac_process.o \ 129 src/mac/pmac/pmac_shift_xor.o src/mac/pmac/pmac_test.o src/mac/xcbc/xcbc_done.o \
|
makefile.icc | 124 src/mac/pmac/pmac_done.o src/mac/pmac/pmac_file.o src/mac/pmac/pmac_init.o src/mac/pmac/pmac_memory.o \ 125 src/mac/pmac/pmac_memory_multi.o src/mac/pmac/pmac_ntz.o src/mac/pmac/pmac_process.o \ 126 src/mac/pmac/pmac_shift_xor.o src/mac/pmac/pmac_test.o src/mac/xcbc/xcbc_done.o \
|
makefile.shared | 129 src/mac/pmac/pmac_done.o src/mac/pmac/pmac_file.o src/mac/pmac/pmac_init.o src/mac/pmac/pmac_memory.o \ 130 src/mac/pmac/pmac_memory_multi.o src/mac/pmac/pmac_ntz.o src/mac/pmac/pmac_process.o \ 131 src/mac/pmac/pmac_shift_xor.o src/mac/pmac/pmac_test.o src/mac/xcbc/xcbc_done.o \
|
makefile.unix | 70 src/mac/pmac/pmac_done.o src/mac/pmac/pmac_file.o src/mac/pmac/pmac_init.o src/mac/pmac/pmac_memory.o \ 71 src/mac/pmac/pmac_memory_multi.o src/mac/pmac/pmac_ntz.o src/mac/pmac/pmac_process.o \ 72 src/mac/pmac/pmac_shift_xor.o src/mac/pmac/pmac_test.o src/mac/xcbc/xcbc_done.o \
|
/external/chromium_org/third_party/icu/patches/ |
ios_timezone.patch | 1 --- public/common/unicode/pmac.h 2 +++ public/common/unicode/pmac.h
|
pmac.h.patch | 1 --- common/unicode/pmac.h 2 +++ common/unicode/pmac.h
|
platform.patch | 11 +# include "unicode/pmac.h"
|
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_mac.h | 72 int pmac_init(pmac_state *pmac, int cipher, const unsigned char *key, unsigned long keylen); 73 int pmac_process(pmac_state *pmac, const unsigned char *in, unsigned long inlen); 74 int pmac_done(pmac_state *pmac, unsigned char *out, unsigned long *outlen); 95 void pmac_shift_xor(pmac_state *pmac); 97 #endif /* PMAC */
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
ptypes.h | 26 # include "unicode/pmac.h"
|
/external/chromium_org/third_party/icu/ |
README.chromium | 19 pmac.h generated below. 30 - Rename it to 'plinux.h', 'pfreebsd.h', 'popenbsd.h' and 'pmac.h' 32 - Apply patches/pmach.h.patch on Mac to pmac.h
|