HomeSort by relevance Sort by last modified time
    Searched refs:cipher_idx (Results 1 - 11 of 11) sorted by null

  /external/dropbear/libtomcrypt/testprof/
modes_test.c 7 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));
x86_prof.c 1155 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, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK)
1287 int err, cipher_idx; local
    [all...]
  /external/dropbear/libtomcrypt/src/hashes/chc/
chc.c 24 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].block_length)
    [all...]
  /external/dropbear/libtomcrypt/src/mac/omac/
omac_done.c 35 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);
omac_process.c 35 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) {
omac_init.c 88 omac->cipher_idx = cipher;
  /external/dropbear/libtomcrypt/src/mac/pmac/
pmac_done.c 26 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);
pmac_process.c 36 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) {
pmac_init.c 127 pmac->cipher_idx = cipher;
  /external/dropbear/libtomcrypt/demos/
encrypt.c 102 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/
tomcrypt_mac.h 29 int cipher_idx, member in struct:__anon20101
67 int cipher_idx, /* cipher idx */ member in struct:__anon20102

Completed in 87 milliseconds