Home
last modified time | relevance | path

Searched refs:MAXBLOCKSIZE (Results 1 – 25 of 36) sorted by relevance

12

/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_mac.h32 unsigned char block[MAXBLOCKSIZE],
33 prev[MAXBLOCKSIZE],
34 Lu[2][MAXBLOCKSIZE];
59 unsigned char Ls[32][MAXBLOCKSIZE], /* L shifted by i bits to the left */
60 … Li[MAXBLOCKSIZE], /* value of Li [current value, we calc from previous recall] */
61 Lr[MAXBLOCKSIZE], /* L * x^-1 */
62 block[MAXBLOCKSIZE], /* currently accumulated block */
63 checksum[MAXBLOCKSIZE]; /* current checksum */
106 unsigned char N[MAXBLOCKSIZE];
142 unsigned char L[MAXBLOCKSIZE], /* L value */
[all …]
Dtomcrypt_cipher.h212 unsigned char IV[MAXBLOCKSIZE],
214 pad[MAXBLOCKSIZE];
230 unsigned char IV[MAXBLOCKSIZE];
244 unsigned char IV[MAXBLOCKSIZE];
263 unsigned char ctr[MAXBLOCKSIZE],
265 pad[MAXBLOCKSIZE];
307 unsigned char IV[MAXBLOCKSIZE],
308 MIV[MAXBLOCKSIZE];
Dtomcrypt.h23 #define MAXBLOCKSIZE 128 macro
/external/dropbear/libtomcrypt/src/encauth/eax/
Deax_test.c35 unsigned char key[MAXBLOCKSIZE], in eax_test()
36 nonce[MAXBLOCKSIZE], in eax_test()
37 header[MAXBLOCKSIZE], in eax_test()
38 plaintext[MAXBLOCKSIZE], in eax_test()
39 ciphertext[MAXBLOCKSIZE], in eax_test()
40 tag[MAXBLOCKSIZE]; in eax_test()
218 unsigned char outct[MAXBLOCKSIZE], outtag[MAXBLOCKSIZE]; in eax_test()
Deax_done.c38 headermac = XMALLOC(MAXBLOCKSIZE); in eax_done()
39 ctmac = XMALLOC(MAXBLOCKSIZE); in eax_done()
52 len = MAXBLOCKSIZE; in eax_done()
79 zeromem(ctmac, MAXBLOCKSIZE); in eax_done()
80 zeromem(headermac, MAXBLOCKSIZE); in eax_done()
Deax_init.c56 buf = XMALLOC(MAXBLOCKSIZE); in eax_init()
70 zeromem(buf, MAXBLOCKSIZE); in eax_init()
90 zeromem(buf, MAXBLOCKSIZE); in eax_init()
121 zeromem(buf, MAXBLOCKSIZE); in eax_init()
130 zeromem(buf, MAXBLOCKSIZE); in eax_init()
/external/dropbear/libtomcrypt/demos/
Dtv_gen.c117 unsigned char md[MAXBLOCKSIZE], *buf; in hash_gen()
158 unsigned char *key, pt[MAXBLOCKSIZE]; in cipher_gen()
233 unsigned char key[MAXBLOCKSIZE], output[MAXBLOCKSIZE], *input; in hmac_gen()
285 unsigned char key[MAXBLOCKSIZE], output[MAXBLOCKSIZE], input[MAXBLOCKSIZE*2+2]; in omac_gen()
340 unsigned char key[MAXBLOCKSIZE], output[MAXBLOCKSIZE], input[MAXBLOCKSIZE*2+2]; in pmac_gen()
397 unsigned char key[MAXBLOCKSIZE], nonce[MAXBLOCKSIZE*2], header[MAXBLOCKSIZE*2], in eax_gen()
398 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; in eax_gen()
457 unsigned char key[MAXBLOCKSIZE], nonce[MAXBLOCKSIZE*2], in ocb_gen()
458 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; in ocb_gen()
521 unsigned char key[MAXBLOCKSIZE], nonce[MAXBLOCKSIZE*2], in ccm_gen()
[all …]
Dencrypt.c98 unsigned char tmpkey[512], key[MAXBLOCKSIZE], IV[MAXBLOCKSIZE]; in main()
/external/dropbear/libtomcrypt/src/encauth/ocb/
Ds_ocb_done.c60 Z = XMALLOC(MAXBLOCKSIZE); in s_ocb_done()
61 Y = XMALLOC(MAXBLOCKSIZE); in s_ocb_done()
62 X = XMALLOC(MAXBLOCKSIZE); in s_ocb_done()
130 zeromem(X, MAXBLOCKSIZE); in s_ocb_done()
131 zeromem(Y, MAXBLOCKSIZE); in s_ocb_done()
132 zeromem(Z, MAXBLOCKSIZE); in s_ocb_done()
Docb_done_decrypt.c50 tagbuf = XMALLOC(MAXBLOCKSIZE); in ocb_done_decrypt()
55 tagbuflen = MAXBLOCKSIZE; in ocb_done_decrypt()
67 zeromem(tagbuf, MAXBLOCKSIZE); in ocb_done_decrypt()
Docb_encrypt.c29 unsigned char Z[MAXBLOCKSIZE], tmp[MAXBLOCKSIZE]; in ocb_encrypt()
Docb_decrypt.c29 unsigned char Z[MAXBLOCKSIZE], tmp[MAXBLOCKSIZE]; in ocb_decrypt()
Docb_test.c169 unsigned char outct[MAXBLOCKSIZE], outtag[MAXBLOCKSIZE]; in ocb_test()
Docb_init.c22 unsigned char poly_div[MAXBLOCKSIZE],
23 poly_mul[MAXBLOCKSIZE];
/external/dropbear/libtomcrypt/src/misc/pkcs5/
Dpkcs_5_2.c52 buf[0] = XMALLOC(MAXBLOCKSIZE * 2); in pkcs_5_alg2()
64 buf[1] = buf[0] + MAXBLOCKSIZE; in pkcs_5_alg2()
71 zeromem(buf[0], MAXBLOCKSIZE*2); in pkcs_5_alg2()
87 x = MAXBLOCKSIZE; in pkcs_5_alg2()
114 zeromem(buf[0], MAXBLOCKSIZE*2); in pkcs_5_alg2()
Dpkcs_5_1.c51 buf = XMALLOC(MAXBLOCKSIZE); in pkcs_5_alg1()
78 x = MAXBLOCKSIZE; in pkcs_5_alg1()
92 zeromem(buf, MAXBLOCKSIZE); in pkcs_5_alg1()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_decrypt_key.c69 skey = XMALLOC(MAXBLOCKSIZE); in dsa_decrypt_key()
82 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in dsa_decrypt_key()
95 y = MIN(mp_unsigned_bin_size(key->p) + 1, MAXBLOCKSIZE); in dsa_decrypt_key()
123 zeromem(skey, MAXBLOCKSIZE); in dsa_decrypt_key()
Ddsa_encrypt_key.c66 skey = XMALLOC(MAXBLOCKSIZE); in dsa_encrypt_key()
101 y = MAXBLOCKSIZE; in dsa_encrypt_key()
121 zeromem(skey, MAXBLOCKSIZE); in dsa_encrypt_key()
/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_decrypt_key.c72 skey = XMALLOC(MAXBLOCKSIZE); in ecc_decrypt_key()
86 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in ecc_decrypt_key()
106 y = MIN(ECC_BUF_SIZE, MAXBLOCKSIZE); in ecc_decrypt_key()
135 zeromem(skey, MAXBLOCKSIZE); in ecc_decrypt_key()
Decc_encrypt_key.c73 skey = XMALLOC(MAXBLOCKSIZE); in ecc_encrypt_key()
101 y = MAXBLOCKSIZE; in ecc_encrypt_key()
122 zeromem(skey, MAXBLOCKSIZE); in ecc_encrypt_key()
/external/dropbear/libtomcrypt/src/hashes/chc/
Dchc.c90 unsigned char buf[MAXBLOCKSIZE]; in chc_init()
134 unsigned char T[2][MAXBLOCKSIZE]; in chc_compress()
256 md[MAXBLOCKSIZE]; in chc_test()
267 unsigned char out[MAXBLOCKSIZE]; in chc_test()
/external/dropbear/libtomcrypt/src/mac/hmac/
Dhmac_test.c42 unsigned char digest[MAXBLOCKSIZE]; in hmac_test()
52 unsigned char digest[MAXBLOCKSIZE]; in hmac_test()
/external/dropbear/libtomcrypt/src/mac/pmac/
Dpmac_init.c22 unsigned char poly_div[MAXBLOCKSIZE],
23 poly_mul[MAXBLOCKSIZE];
Dpmac_test.c126 unsigned char outtag[MAXBLOCKSIZE]; in pmac_test()
/external/dropbear/libtomcrypt/src/misc/crypt/
Dcrypt_find_hash_any.c32 y = MAXBLOCKSIZE+1; in find_hash_any()

12