/external/dropbear/libtomcrypt/src/hashes/chc/ |
D | chc.c | 24 static int cipher_idx=UNDEFED_HASH, /* which cipher */ variable 77 cipher_idx = cipher; in chc_register() 96 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_init() 100 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_init() 110 if ((err = cipher_descriptor[cipher_idx].setup(buf, cipher_blocksize, 0, key)) != CRYPT_OK) { in chc_init() 116 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key); in chc_init() 141 …if ((err = cipher_descriptor[cipher_idx].setup(md->chc.state, cipher_blocksize, 0, key)) != CRYPT_… in chc_compress() 146 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key); in chc_compress() 177 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_process() 180 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_process() [all …]
|
/external/dropbear/libtomcrypt/testprof/ |
D | modes_test.c | 7 int cipher_idx; in modes_test() local 25 cipher_idx = find_cipher("aes"); in modes_test() 26 if (cipher_idx == -1) { in modes_test() 42 DO(cbc_start(cipher_idx, iv, key, 16, 0, &cbc)); in modes_test() 64 DO(cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); in modes_test() 87 DO(ofb_start(cipher_idx, iv, key, 16, 0, &ofb)); in modes_test()
|
D | x86_prof.c | 1155 int err, cipher_idx, hash_idx; in time_macs_() local 1165 cipher_idx = find_cipher("aes"); in time_macs_() 1168 if (cipher_idx == -1 || hash_idx == -1) { in time_macs_() 1182 if ((err = omac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1189 …fprintf(stderr, "OMAC-%s\t\t%9llu\n", cipher_descriptor[cipher_idx].name, t2/(ulong64)(MAC_SIZE*10… in time_macs_() 1198 if ((err = xcbc_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1205 …fprintf(stderr, "XCBC-%s\t\t%9llu\n", cipher_descriptor[cipher_idx].name, t2/(ulong64)(MAC_SIZE*10… in time_macs_() 1214 if ((err = f9_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1221 …fprintf(stderr, "F9-%s\t\t\t%9llu\n", cipher_descriptor[cipher_idx].name, t2/(ulong64)(MAC_SIZE*10… in time_macs_() 1230 if ((err = pmac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() [all …]
|
/external/dropbear/libtomcrypt/demos/ |
D | encrypt.c | 102 int cipher_idx, hash_idx, ks; in main() local 139 cipher_idx = find_cipher(cipher); in main() 140 if (cipher_idx == -1) { in main() 151 ivsize = cipher_descriptor[cipher_idx].block_length; in main() 153 if (cipher_descriptor[cipher_idx].keysize(&ks) != CRYPT_OK) { in main() 173 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) { in main() 215 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) { in main()
|
/external/dropbear/libtomcrypt/src/mac/omac/ |
D | omac_done.c | 35 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_done() 64 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->block, &omac->key)) … in omac_done() 67 cipher_descriptor[omac->cipher_idx].done(&omac->key); in omac_done()
|
D | omac_process.c | 35 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_process() 52 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key)) !=… in omac_process() 66 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key)) !… in omac_process()
|
D | omac_init.c | 88 omac->cipher_idx = cipher; in omac_init()
|
/external/dropbear/libtomcrypt/src/mac/pmac/ |
D | pmac_done.c | 26 if ((err = cipher_is_valid(state->cipher_idx)) != CRYPT_OK) { in pmac_done() 52 …if ((err = cipher_descriptor[state->cipher_idx].ecb_encrypt(state->checksum, state->checksum, &sta… in pmac_done() 55 cipher_descriptor[state->cipher_idx].done(&state->key); in pmac_done()
|
D | pmac_process.c | 36 if ((err = cipher_is_valid(pmac->cipher_idx)) != CRYPT_OK) { in pmac_process() 53 … if ((err = cipher_descriptor[pmac->cipher_idx].ecb_encrypt(Z, Z, &pmac->key)) != CRYPT_OK) { in pmac_process() 72 … if ((err = cipher_descriptor[pmac->cipher_idx].ecb_encrypt(Z, Z, &pmac->key)) != CRYPT_OK) { in pmac_process()
|
D | pmac_init.c | 127 pmac->cipher_idx = cipher; in pmac_init()
|
/external/dropbear/libtomcrypt/src/headers/ |
D | tomcrypt_mac.h | 29 int cipher_idx, member 67 int cipher_idx, /* cipher idx */ member
|