Searched refs:pmac (Results 1 - 25 of 57) sorted by relevance

123

/external/dropbear/libtomcrypt/src/mac/pmac/
H A Dpmac_process.c23 @param pmac The PMAC state
28 int pmac_process(pmac_state *pmac, const unsigned char *in, unsigned long inlen) argument
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) ||
41 (pmac->block_len > (int)sizeof(pmac->block)) || (pmac
[all...]
H A Dpmac_shift_xor.c22 @param pmac The PMAC state.
24 void pmac_shift_xor(pmac_state *pmac) argument
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];
42 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_shift_xo
[all...]
H A Dpmac_init.c40 @param pmac The PMAC state to initialize
46 int pmac_init(pmac_state *pmac, int cipher, const unsigned char *key, unsigned long keylen) argument
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)) {
78 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &pmac->key)) != CRYPT_OK) {
83 L = XMALLOC(pmac->block_len);
89 zeromem(L, pmac
[all...]
H A Dpmac_memory.c37 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) {
56 if ((err = pmac_done(pmac, out, outlen)) != CRYPT_OK) {
63 zeromem(pmac, sizeof(pmac_state));
66 XFREE(pmac);
72 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_memor
[all...]
H A Dpmac_memory_multi.c39 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) {
63 if ((err = pmac_process(pmac, curptr, curlen)) != CRYPT_OK) {
73 if ((err = pmac_done(pmac, out, outlen)) != CRYPT_OK) {
78 zeromem(pmac, sizeof(pmac_state));
80 XFREE(pmac);
87 /* $Source: /cvs/libtom/libtomcrypt/src/mac/pmac/pmac_memory_mult
[all...]
H A Dpmac_file.c39 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 $ */
/external/chromium_org/third_party/openssl/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha1.c247 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
[all...]
/external/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha1.c247 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
[all...]
/external/dropbear/libtomcrypt/
H A 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.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 \
/external/dropbear/libtomcrypt/src/headers/
H A 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/chromium/sdch/open-vcdiff/
H A Dconfig.sub1155 pmac | pmac-mpw)
/external/chromium/third_party/libevent/
H A Dconfig.sub1187 pmac | pmac-mpw)
/external/chromium_org/sdch/open-vcdiff/
H A Dconfig.sub1218 pmac | pmac-mpw)
/external/chromium_org/third_party/icu/source/
H A Dconfig.sub1187 pmac | pmac-mpw)
/external/chromium_org/third_party/libevent/
H A Dconfig.sub1187 pmac | pmac-mpw)
/external/chromium_org/third_party/libxml/src/
H A Dconfig.sub1227 pmac | pmac-mpw)
/external/chromium_org/third_party/libxslt/
H A Dconfig.sub1155 pmac | pmac-mpw)
/external/chromium_org/third_party/sqlite/src/
H A Dconfig.sub1173 pmac | pmac-mpw)
/external/chromium_org/third_party/tcmalloc/vendor/
H A Dconfig.sub1187 pmac | pmac-mpw)
/external/chromium_org/third_party/yasm/source/patched-yasm/config/
H A Dconfig.sub1073 pmac | pmac-mpw)
/external/dropbear/
H A Dconfig.sub1151 pmac | pmac-mpw)
/external/e2fsprogs/config/
H A Dconfig.sub1211 pmac | pmac-mpw)
/external/elfutils/config/
H A Dconfig.sub1187 pmac | pmac-mpw)
/external/grub/
H A Dconfig.sub1110 pmac | pmac-mpw)
/external/libffi/
H A Dconfig.sub1155 pmac | pmac-mpw)

Completed in 2119 milliseconds

123