Home
last modified time | relevance | path

Searched refs:taglen (Results 1 – 20 of 20) sorted by relevance

/external/dropbear/libtomcrypt/src/encauth/ccm/
Dccm_test.c35 int taglen; in ccm_test()
116 unsigned long taglen, x; in ccm_test()
130 taglen = tests[x].taglen; in ccm_test()
142 tag, &taglen, 0)) != CRYPT_OK) { in ccm_test()
149 if (XMEMCMP(tag, tests[x].tag, tests[x].taglen)) { in ccm_test()
160 tag2, &taglen, 1 )) != CRYPT_OK) { in ccm_test()
167 if (XMEMCMP(tag2, tests[x].tag, tests[x].taglen)) { in ccm_test()
Dccm_memory.c45 unsigned char *tag, unsigned long *taglen, in ccm_memory() argument
63 LTC_ARGCHK(taglen != NULL); in ccm_memory()
80 *taglen &= ~1; in ccm_memory()
81 if (*taglen > 16) { in ccm_memory()
82 *taglen = 16; in ccm_memory()
86 if (*taglen < 4) { in ccm_memory()
99 tag, taglen, in ccm_memory()
144 (((*taglen - 2)>>1)<<3) | in ccm_memory()
329 for (x = 0; x < 16 && x < *taglen; x++) { in ccm_memory()
332 *taglen = x; in ccm_memory()
/external/dropbear/libtomcrypt/src/encauth/eax/
Deax_decrypt_verify_memory.c43 unsigned char *tag, unsigned long taglen, in eax_decrypt_verify_memory() argument
61 buf = XMALLOC(taglen); in eax_decrypt_verify_memory()
81 buflen = taglen; in eax_decrypt_verify_memory()
87 if (buflen >= taglen && XMEMCMP(buf, tag, taglen) == 0) { in eax_decrypt_verify_memory()
94 zeromem(buf, taglen); in eax_decrypt_verify_memory()
Deax_done.c27 int eax_done(eax_state *eax, unsigned char *tag, unsigned long *taglen) in eax_done() argument
35 LTC_ARGCHK(taglen != NULL); in eax_done()
71 for (x = 0; x < len && x < *taglen; x++) { in eax_done()
74 *taglen = x; in eax_done()
Deax_encrypt_authenticate_memory.c42 unsigned char *tag, unsigned long *taglen) in eax_encrypt_authenticate_memory() argument
51 LTC_ARGCHK(taglen != NULL); in eax_encrypt_authenticate_memory()
63 if ((err = eax_done(eax, tag, taglen)) != CRYPT_OK) { in eax_encrypt_authenticate_memory()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_mac.h118 int eax_done(eax_state *eax, unsigned char *tag, unsigned long *taglen);
126 unsigned char *tag, unsigned long *taglen);
134 unsigned char *tag, unsigned long taglen,
164 unsigned char *tag, unsigned long *taglen);
169 const unsigned char *tag, unsigned long taglen, int *stat);
176 unsigned char *tag, unsigned long *taglen);
183 const unsigned char *tag, unsigned long taglen,
192 unsigned char *ct, unsigned char *tag, unsigned long *taglen, int mode);
208 unsigned char *tag, unsigned long *taglen,
278 unsigned char *tag, unsigned long *taglen);
[all …]
Dtomcrypt_cipher.h464 unsigned char *tag, unsigned long *taglen,
488 unsigned char *tag, unsigned long *taglen,
/external/dropbear/libtomcrypt/src/mac/f9/
Df9_test.c51 unsigned long taglen; in f9_test()
60 taglen = 4; in f9_test()
61 … if ((err = f9_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK) { in f9_test()
64 if (taglen != 4 || XMEMCMP(T, tests[x].T, 4)) { in f9_test()
/external/dropbear/libtomcrypt/src/mac/xcbc/
Dxcbc_test.c99 unsigned long taglen; in xcbc_test()
110 taglen = 16; in xcbc_test()
111 …if ((err = xcbc_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK)… in xcbc_test()
114 if (taglen != 16 || XMEMCMP(T, tests[x].T, 16)) { in xcbc_test()
/external/dropbear/libtomcrypt/src/encauth/gcm/
Dgcm_done.c28 unsigned char *tag, unsigned long *taglen) in gcm_done() argument
35 LTC_ARGCHK(taglen != NULL); in gcm_done()
68 for (x = 0; x < 16 && x < *taglen; x++) { in gcm_done()
71 *taglen = x; in gcm_done()
Dgcm_memory.c43 unsigned char *tag, unsigned long *taglen, in gcm_memory() argument
62 tag, taglen, in gcm_memory()
99 err = gcm_done(gcm, tag, taglen); in gcm_memory()
/external/dropbear/libtomcrypt/src/encauth/ocb/
Docb_done_encrypt.c31 unsigned char *ct, unsigned char *tag, unsigned long *taglen) in ocb_done_encrypt() argument
37 LTC_ARGCHK(taglen != NULL); in ocb_done_encrypt()
38 return s_ocb_done(ocb, pt, ptlen, ct, tag, taglen, 0); in ocb_done_encrypt()
Docb_done_decrypt.c34 const unsigned char *tag, unsigned long taglen, int *stat) in ocb_done_decrypt() argument
60 if (taglen <= tagbuflen && XMEMCMP(tagbuf, tag, taglen) == 0) { in ocb_done_decrypt()
Ds_ocb_done.c40 unsigned char *ct, unsigned char *tag, unsigned long *taglen, int mode) in s_ocb_done() argument
50 LTC_ARGCHK(taglen != NULL); in s_ocb_done()
124 for (x = 0; x < ocb->block_len && x < (int)*taglen; x++) { in s_ocb_done()
127 *taglen = x; in s_ocb_done()
Docb_encrypt_authenticate_memory.c38 unsigned char *tag, unsigned long *taglen) in ocb_encrypt_authenticate_memory() argument
48 LTC_ARGCHK(taglen != NULL); in ocb_encrypt_authenticate_memory()
69 err = ocb_done_encrypt(ocb, pt, ptlen, ct, tag, taglen); in ocb_encrypt_authenticate_memory()
Docb_decrypt_verify_memory.c39 const unsigned char *tag, unsigned long taglen, in ocb_decrypt_verify_memory() argument
71 err = ocb_done_decrypt(ocb, ct, ctlen, pt, tag, taglen, stat); in ocb_decrypt_verify_memory()
/external/tremolo/Tremolo/
Dtreminfo.c77 int taglen = strlen(tag)+1; /* +1 for the = we append */ in vorbis_comment_query() local
78 char *fulltag = (char *)alloca(taglen+ 1); in vorbis_comment_query()
84 if(!tagcompare(vc->user_comments[i], fulltag, taglen)){ in vorbis_comment_query()
87 return vc->user_comments[i] + taglen; in vorbis_comment_query()
97 int taglen = strlen(tag)+1; /* +1 for the = we append */ in vorbis_comment_query_count() local
98 char *fulltag = (char *)alloca(taglen+1); in vorbis_comment_query_count()
103 if(!tagcompare(vc->user_comments[i], fulltag, taglen)) in vorbis_comment_query_count()
/external/clearsilver/cs/
Dcs.h268 int taglen; member
Dcsparse.c348 int ws_index = 2+parse->taglen; in find_open_delim()
354 if (p[1] == '?' && !strncasecmp(&p[2], parse->tag, parse->taglen) && in find_open_delim()
589 token = &(ibuf[i+3+parse->taglen]); in cs_parse_string()
4096 my_parse->taglen = strlen(my_parse->tag); in cs_init_internal()
/external/dropbear/libtomcrypt/
Dcrypt.tex1233 unsigned long *taglen);
1235 This will terminate the EAX state \textit{eax}, and store up to \textit{taglen} bytes of the messag…
1236 then stores how many bytes of the tag were written out back in to \textit{taglen}.
1252 unsigned long taglen;
1284 taglen = sizeof(tag);
1287 &taglen /* length of tag space */
1294 * it's taglen bytes long */
1311 unsigned char *tag, unsigned long *taglen);
1320 unsigned char *tag, unsigned long taglen,
1379 unsigned long *taglen);
[all …]