Home
last modified time | relevance | path

Searched refs:pmac (Results 1 – 25 of 39) sorted by relevance

12

/external/dropbear/libtomcrypt/src/mac/pmac/
Dpmac_init.c46 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 …]
Dpmac_process.c28 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 …]
Dpmac_shift_xor.c24 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()
Dpmac_memory.c37 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()
Dpmac_memory_multi.c39 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()
Dpmac_file.c39 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/
DAndroid.mk36 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 \
DMakefile.in127 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 \
Dmakefile.msvc34 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 \
Dmakefile.icc124 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 \
Dmakefile.unix70 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 \
Dmakefile.shared129 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/
Dtomcrypt_mac.h72 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/
Dconfig.sub1020 pmac | pmac-mpw)
/external/llvm/projects/sample/autoconf/
Dconfig.sub1061 pmac | pmac-mpw)
/external/elfutils/config/
Dconfig.sub1051 pmac | pmac-mpw)
/external/srtp/
Dconfig.sub1102 pmac | pmac-mpw)
/external/chromium/sdch/open-vcdiff/
Dconfig.sub1155 pmac | pmac-mpw)
/external/grub/
Dconfig.sub1110 pmac | pmac-mpw)
/external/strace/
Dconfig.sub1110 pmac | pmac-mpw)
/external/protobuf/
Dconfig.sub1155 pmac | pmac-mpw)
/external/libffi/
Dconfig.sub1155 pmac | pmac-mpw)
/external/libpcap/
Dconfig.sub1085 pmac | pmac-mpw)
/external/tcpdump/
Dconfig.sub1085 pmac | pmac-mpw)
/external/expat/conftools/
Dconfig.sub1148 pmac | pmac-mpw)

12