Searched refs:cipher_idx (Results 1 - 11 of 11) sorted by relevance

/external/dropbear/libtomcrypt/testprof/
H A Dmodes_test.c7 int cipher_idx; local
25 cipher_idx = find_cipher("aes");
26 if (cipher_idx == -1) {
42 DO(cbc_start(cipher_idx, iv, key, 16, 0, &cbc));
64 DO(cfb_start(cipher_idx, iv, key, 16, 0, &cfb));
87 DO(ofb_start(cipher_idx, iv, key, 16, 0, &ofb));
H A Dx86_prof.c1155 int err, cipher_idx, hash_idx; local
1165 cipher_idx = find_cipher("aes");
1168 if (cipher_idx == -1 || hash_idx == -1) {
1182 if ((err = omac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) {
1189 fprintf(stderr, "OMAC-%s\t\t%9llu\n", cipher_descriptor[cipher_idx].name, t2/(ulong64)(MAC_SIZE*1024));
1198 if ((err = xcbc_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) {
1205 fprintf(stderr, "XCBC-%s\t\t%9llu\n", cipher_descriptor[cipher_idx].name, t2/(ulong64)(MAC_SIZE*1024));
1214 if ((err = f9_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) {
1221 fprintf(stderr, "F9-%s\t\t\t%9llu\n", cipher_descriptor[cipher_idx].name, t2/(ulong64)(MAC_SIZE*1024));
1230 if ((err = pmac_memory(cipher_idx, ke
1287 int err, cipher_idx; local
[all...]
/external/dropbear/libtomcrypt/src/hashes/chc/
H A Dchc.c24 static int cipher_idx=UNDEFED_HASH, /* which cipher */ variable
77 cipher_idx = cipher;
96 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) {
100 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) {
110 if ((err = cipher_descriptor[cipher_idx].setup(buf, cipher_blocksize, 0, key)) != CRYPT_OK) {
116 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key);
141 if ((err = cipher_descriptor[cipher_idx].setup(md->chc.state, cipher_blocksize, 0, key)) != CRYPT_OK) {
146 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key);
177 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) {
180 if (cipher_blocksize != cipher_descriptor[cipher_idx]
[all...]
/external/dropbear/libtomcrypt/src/mac/omac/
H A Domac_done.c35 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) {
64 if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->block, &omac->key)) != CRYPT_OK) {
67 cipher_descriptor[omac->cipher_idx].done(&omac->key);
H A Domac_process.c35 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) {
52 if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key)) != CRYPT_OK) {
66 if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key)) != CRYPT_OK) {
H A Domac_init.c88 omac->cipher_idx = cipher;
/external/dropbear/libtomcrypt/src/mac/pmac/
H A Dpmac_done.c26 if ((err = cipher_is_valid(state->cipher_idx)) != CRYPT_OK) {
52 if ((err = cipher_descriptor[state->cipher_idx].ecb_encrypt(state->checksum, state->checksum, &state->key)) != CRYPT_OK) {
55 cipher_descriptor[state->cipher_idx].done(&state->key);
H A Dpmac_process.c36 if ((err = cipher_is_valid(pmac->cipher_idx)) != CRYPT_OK) {
53 if ((err = cipher_descriptor[pmac->cipher_idx].ecb_encrypt(Z, Z, &pmac->key)) != CRYPT_OK) {
72 if ((err = cipher_descriptor[pmac->cipher_idx].ecb_encrypt(Z, Z, &pmac->key)) != CRYPT_OK) {
H A Dpmac_init.c127 pmac->cipher_idx = cipher;
/external/dropbear/libtomcrypt/demos/
H A Dencrypt.c102 int cipher_idx, hash_idx, ks; local
139 cipher_idx = find_cipher(cipher);
140 if (cipher_idx == -1) {
151 ivsize = cipher_descriptor[cipher_idx].block_length;
153 if (cipher_descriptor[cipher_idx].keysize(&ks) != CRYPT_OK) {
173 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) {
215 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) {
/external/dropbear/libtomcrypt/src/headers/
H A Dtomcrypt_mac.h29 int cipher_idx, member in struct:__anon5207
67 int cipher_idx, /* cipher idx */ member in struct:__anon5208

Completed in 118 milliseconds