HomeSort by relevance Sort by last modified time
    Searched defs:cipher_idx (Results 1 - 5 of 5) 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/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/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/headers/
tomcrypt_mac.h 29 int cipher_idx, member in struct:__anon6117
67 int cipher_idx, /* cipher idx */ member in struct:__anon6118

Completed in 101 milliseconds