/external/dropbear/libtomcrypt/src/mac/pmac/ |
D | pmac_init.c | 46 int pmac_init(pmac_state *pmac, int cipher, const unsigned char *key, unsigned long keylen) in pmac_init() argument 51 LTC_ARGCHK(pmac != NULL); in pmac_init() 60 pmac->block_len = cipher_descriptor[cipher].block_length; in pmac_init() 62 if (polys[poly].len == pmac->block_len) { in pmac_init() 66 if (polys[poly].len != pmac->block_len) { in pmac_init() 71 if (pmac->block_len % sizeof(LTC_FAST_TYPE)) { in pmac_init() 78 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &pmac->key)) != CRYPT_OK) { in pmac_init() 83 L = XMALLOC(pmac->block_len); in pmac_init() 89 zeromem(L, pmac->block_len); in pmac_init() 90 if ((err = cipher_descriptor[cipher].ecb_encrypt(L, L, &pmac->key)) != CRYPT_OK) { in pmac_init() [all …]
|
D | pmac_process.c | 28 int pmac_process(pmac_state *pmac, const unsigned char *in, unsigned long inlen) in pmac_process() argument 34 LTC_ARGCHK(pmac != NULL); in pmac_process() 36 if ((err = cipher_is_valid(pmac->cipher_idx)) != CRYPT_OK) { in pmac_process() 40 if ((pmac->buflen > (int)sizeof(pmac->block)) || (pmac->buflen < 0) || in pmac_process() 41 (pmac->block_len > (int)sizeof(pmac->block)) || (pmac->buflen > pmac->block_len)) { in pmac_process() 46 if (pmac->buflen == 0 && inlen > 16) { in pmac_process() 49 pmac_shift_xor(pmac); in pmac_process() 51 … *((LTC_FAST_TYPE*)(&Z[y])) = *((LTC_FAST_TYPE*)(&in[y])) ^ *((LTC_FAST_TYPE*)(&pmac->Li[y])); in pmac_process() 53 … if ((err = cipher_descriptor[pmac->cipher_idx].ecb_encrypt(Z, Z, &pmac->key)) != CRYPT_OK) { in pmac_process() 57 *((LTC_FAST_TYPE*)(&pmac->checksum[y])) ^= *((LTC_FAST_TYPE*)(&Z[y])); in pmac_process() [all …]
|
D | pmac_shift_xor.c | 24 void pmac_shift_xor(pmac_state *pmac) in pmac_shift_xor() argument 27 y = pmac_ntz(pmac->block_index++); in pmac_shift_xor() 29 for (x = 0; x < pmac->block_len; x += sizeof(LTC_FAST_TYPE)) { in pmac_shift_xor() 30 *((LTC_FAST_TYPE*)((unsigned char *)pmac->Li + x)) ^= in pmac_shift_xor() 31 *((LTC_FAST_TYPE*)((unsigned char *)pmac->Ls[y] + x)); in pmac_shift_xor() 34 for (x = 0; x < pmac->block_len; x++) { in pmac_shift_xor() 35 pmac->Li[x] ^= pmac->Ls[y][x]; in pmac_shift_xor()
|
D | pmac_memory.c | 37 pmac_state *pmac; in pmac_memory() local 45 pmac = XMALLOC(sizeof(pmac_state)); in pmac_memory() 46 if (pmac == NULL) { in pmac_memory() 50 if ((err = pmac_init(pmac, cipher, key, keylen)) != CRYPT_OK) { in pmac_memory() 53 if ((err = pmac_process(pmac, in, inlen)) != CRYPT_OK) { in pmac_memory() 56 if ((err = pmac_done(pmac, out, outlen)) != CRYPT_OK) { in pmac_memory() 63 zeromem(pmac, sizeof(pmac_state)); in pmac_memory() 66 XFREE(pmac); in pmac_memory()
|
D | pmac_memory_multi.c | 39 pmac_state *pmac; in pmac_memory_multi() local 50 pmac = XMALLOC(sizeof(pmac_state)); in pmac_memory_multi() 51 if (pmac == NULL) { in pmac_memory_multi() 55 if ((err = pmac_init(pmac, cipher, key, keylen)) != CRYPT_OK) { in pmac_memory_multi() 63 if ((err = pmac_process(pmac, curptr, curlen)) != CRYPT_OK) { in pmac_memory_multi() 73 if ((err = pmac_done(pmac, out, outlen)) != CRYPT_OK) { in pmac_memory_multi() 78 zeromem(pmac, sizeof(pmac_state)); in pmac_memory_multi() 80 XFREE(pmac); in pmac_memory_multi()
|
D | pmac_file.c | 39 pmac_state pmac; in pmac_file() 54 if ((err = pmac_init(&pmac, cipher, key, keylen)) != CRYPT_OK) { in pmac_file() 61 if ((err = pmac_process(&pmac, buf, x)) != CRYPT_OK) { in pmac_file() 68 if ((err = pmac_done(&pmac, out, outlen)) != CRYPT_OK) { in pmac_file()
|
/external/dropbear/libtomcrypt/ |
D | 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… 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 \
|
D | 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… 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 \
|
D | 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_… 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 \
|
D | 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… 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 \
|
D | 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… 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 \
|
D | 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… 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 \
|
/external/dropbear/libtomcrypt/src/headers/ |
D | 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);
|
/external/qemu-pc-bios/bochs/ |
D | config.sub | 1020 pmac | pmac-mpw)
|
/external/llvm/projects/sample/autoconf/ |
D | config.sub | 1061 pmac | pmac-mpw)
|
/external/elfutils/config/ |
D | config.sub | 1051 pmac | pmac-mpw)
|
/external/srtp/ |
D | config.sub | 1102 pmac | pmac-mpw)
|
/external/chromium/sdch/open-vcdiff/ |
D | config.sub | 1155 pmac | pmac-mpw)
|
/external/grub/ |
D | config.sub | 1110 pmac | pmac-mpw)
|
/external/strace/ |
D | config.sub | 1110 pmac | pmac-mpw)
|
/external/protobuf/ |
D | config.sub | 1155 pmac | pmac-mpw)
|
/external/libffi/ |
D | config.sub | 1155 pmac | pmac-mpw)
|
/external/libpcap/ |
D | config.sub | 1085 pmac | pmac-mpw)
|
/external/tcpdump/ |
D | config.sub | 1085 pmac | pmac-mpw)
|
/external/expat/conftools/ |
D | config.sub | 1148 pmac | pmac-mpw)
|