OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:cipher_descriptor
(Results
1 - 25
of
72
) sorted by null
1
2
3
/external/dropbear/libtomcrypt/src/modes/ecb/
ecb_decrypt.c
37
if (len %
cipher_descriptor
[ecb->cipher].block_length) {
42
if (
cipher_descriptor
[ecb->cipher].accel_ecb_decrypt != NULL) {
43
return
cipher_descriptor
[ecb->cipher].accel_ecb_decrypt(ct, pt, len /
cipher_descriptor
[ecb->cipher].block_length, &ecb->key);
46
if ((err =
cipher_descriptor
[ecb->cipher].ecb_decrypt(ct, pt, &ecb->key)) != CRYPT_OK) {
49
pt +=
cipher_descriptor
[ecb->cipher].block_length;
50
ct +=
cipher_descriptor
[ecb->cipher].block_length;
51
len -=
cipher_descriptor
[ecb->cipher].block_length;
ecb_encrypt.c
37
if (len %
cipher_descriptor
[ecb->cipher].block_length) {
42
if (
cipher_descriptor
[ecb->cipher].accel_ecb_encrypt != NULL) {
43
return
cipher_descriptor
[ecb->cipher].accel_ecb_encrypt(pt, ct, len /
cipher_descriptor
[ecb->cipher].block_length, &ecb->key);
46
if ((err =
cipher_descriptor
[ecb->cipher].ecb_encrypt(pt, ct, &ecb->key)) != CRYPT_OK) {
49
pt +=
cipher_descriptor
[ecb->cipher].block_length;
50
ct +=
cipher_descriptor
[ecb->cipher].block_length;
51
len -=
cipher_descriptor
[ecb->cipher].block_length;
ecb_start.c
40
ecb->blocklen =
cipher_descriptor
[cipher].block_length;
41
return
cipher_descriptor
[cipher].setup(key, keylen, num_rounds, &ecb->key);
ecb_done.c
32
cipher_descriptor
[ecb->cipher].done(&ecb->key);
/external/dropbear/libtomcrypt/src/misc/crypt/
crypt_unregister_cipher.c
32
if (XMEMCMP(&
cipher_descriptor
[x], cipher, sizeof(struct ltc_cipher_descriptor)) == 0) {
33
cipher_descriptor
[x].name = NULL;
34
cipher_descriptor
[x].ID = 255;
crypt_find_cipher_any.c
36
if (
cipher_descriptor
[x].name == NULL) {
39
if (blocklen <= (int)
cipher_descriptor
[x].block_length && keylen <= (int)
cipher_descriptor
[x].max_key_length) {
crypt_register_cipher.c
32
if (
cipher_descriptor
[x].name != NULL &&
cipher_descriptor
[x].ID == cipher->ID) {
40
if (
cipher_descriptor
[x].name == NULL) {
41
XMEMCPY(&
cipher_descriptor
[x], cipher, sizeof(struct ltc_cipher_descriptor));
crypt_find_cipher.c
29
if (
cipher_descriptor
[x].name != NULL && !XSTRCMP(
cipher_descriptor
[x].name, name)) {
crypt_find_cipher_id.c
28
if (
cipher_descriptor
[x].ID == ID) {
29
x = (
cipher_descriptor
[x].name == NULL) ? -1 : x;
crypt_cipher_is_valid.c
26
if (idx < 0 || idx >= TAB_SIZE ||
cipher_descriptor
[idx].name == NULL) {
crypt_cipher_descriptor.c
18
struct ltc_cipher_descriptor
cipher_descriptor
[TAB_SIZE] = {
variable in typeref:struct:ltc_cipher_descriptor
/external/dropbear/libtomcrypt/src/mac/xcbc/
xcbc_init.c
41
if (
cipher_descriptor
[cipher].block_length % sizeof(LTC_FAST_TYPE)) {
52
if ((err =
cipher_descriptor
[cipher].setup(key, keylen, 0, skey)) != CRYPT_OK) {
58
for (x = 0; x <
cipher_descriptor
[cipher].block_length; x++) {
61
cipher_descriptor
[cipher].ecb_encrypt(xcbc->K[y], xcbc->K[y], skey);
65
err =
cipher_descriptor
[cipher].setup(xcbc->K[0],
cipher_descriptor
[cipher].block_length, 0, &xcbc->key);
68
zeromem(xcbc->IV,
cipher_descriptor
[cipher].block_length);
69
xcbc->blocksize =
cipher_descriptor
[cipher].block_length;
73
cipher_descriptor
[cipher].done(skey);
/external/dropbear/libtomcrypt/src/mac/f9/
f9_init.c
40
if (
cipher_descriptor
[cipher].block_length % sizeof(LTC_FAST_TYPE)) {
45
if ((err =
cipher_descriptor
[cipher].setup(key, keylen, 0, &f9->key)) != CRYPT_OK) {
55
zeromem(f9->IV,
cipher_descriptor
[cipher].block_length);
56
zeromem(f9->ACC,
cipher_descriptor
[cipher].block_length);
57
f9->blocksize =
cipher_descriptor
[cipher].block_length;
f9_done.c
37
if ((f9->blocksize >
cipher_descriptor
[f9->cipher].block_length) || (f9->blocksize < 0) ||
44
cipher_descriptor
[f9->cipher].ecb_encrypt(f9->IV, f9->IV, &f9->key);
52
if ((err =
cipher_descriptor
[f9->cipher].setup(f9->akey, f9->keylen, 0, &f9->key)) != CRYPT_OK) {
57
cipher_descriptor
[f9->cipher].ecb_encrypt(f9->ACC, f9->ACC, &f9->key);
58
cipher_descriptor
[f9->cipher].done(&f9->key);
/external/dropbear/libtomcrypt/src/modes/f8/
f8_start.c
51
if (
cipher_descriptor
[cipher].block_length % sizeof(LTC_FAST_TYPE)) {
59
f8->blocklen =
cipher_descriptor
[cipher].block_length;
75
if ((err =
cipher_descriptor
[cipher].setup(tkey, keylen, num_rounds, &f8->key)) != CRYPT_OK) {
80
if ((err =
cipher_descriptor
[f8->cipher].ecb_encrypt(IV, f8->MIV, &f8->key)) != CRYPT_OK) {
81
cipher_descriptor
[f8->cipher].done(&f8->key);
88
cipher_descriptor
[f8->cipher].done(&f8->key);
91
return
cipher_descriptor
[cipher].setup(key, keylen, num_rounds, &f8->key);
/external/dropbear/libtomcrypt/src/mac/omac/
omac_init.c
42
if (
cipher_descriptor
[cipher].block_length % sizeof(LTC_FAST_TYPE)) {
48
switch (
cipher_descriptor
[cipher].block_length) {
58
if ((err =
cipher_descriptor
[cipher].setup(key, keylen, 0, &omac->key)) != CRYPT_OK) {
65
zeromem(omac->Lu[0],
cipher_descriptor
[cipher].block_length);
66
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(omac->Lu[0], omac->Lu[0], &omac->key)) != CRYPT_OK) {
/external/dropbear/libtomcrypt/src/modes/cfb/
cfb_start.c
47
cfb->blocklen =
cipher_descriptor
[cipher].block_length;
52
if ((err =
cipher_descriptor
[cipher].setup(key, keylen, num_rounds, &cfb->key)) != CRYPT_OK) {
58
return
cipher_descriptor
[cfb->cipher].ecb_encrypt(cfb->IV, cfb->IV, &cfb->key);
cfb_done.c
32
cipher_descriptor
[cfb->cipher].done(&cfb->key);
/external/dropbear/libtomcrypt/src/modes/cbc/
cbc_start.c
45
if ((err =
cipher_descriptor
[cipher].setup(key, keylen, num_rounds, &cbc->key)) != CRYPT_OK) {
50
cbc->blocklen =
cipher_descriptor
[cipher].block_length;
cbc_done.c
32
cipher_descriptor
[cbc->cipher].done(&cbc->key);
/external/dropbear/libtomcrypt/src/modes/lrw/
lrw_decrypt.c
39
if (
cipher_descriptor
[lrw->cipher].accel_lrw_decrypt != NULL) {
40
return
cipher_descriptor
[lrw->cipher].accel_lrw_decrypt(ct, pt, len, lrw->IV, lrw->tweak, &lrw->key);
lrw_encrypt.c
39
if (
cipher_descriptor
[lrw->cipher].accel_lrw_encrypt != NULL) {
40
return
cipher_descriptor
[lrw->cipher].accel_lrw_encrypt(pt, ct, len, lrw->IV, lrw->tweak, &lrw->key);
/external/dropbear/libtomcrypt/src/modes/ofb/
ofb_start.c
46
ofb->blocklen =
cipher_descriptor
[cipher].block_length;
53
return
cipher_descriptor
[cipher].setup(key, keylen, num_rounds, &ofb->key);
/external/dropbear/libtomcrypt/src/encauth/ccm/
ccm_memory.c
75
if (
cipher_descriptor
[cipher].block_length != 16) {
91
if (
cipher_descriptor
[cipher].accel_ccm_memory != NULL) {
92
return
cipher_descriptor
[cipher].accel_ccm_memory(
133
if ((err =
cipher_descriptor
[cipher].setup(key, keylen, 0, skey)) != CRYPT_OK) {
170
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) {
195
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) {
205
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) {
241
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) {
250
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) {
261
if ((err =
cipher_descriptor
[cipher].ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK)
[
all
...]
/external/dropbear/libtomcrypt/src/modes/ctr/
ctr_done.c
32
cipher_descriptor
[ctr->cipher].done(&ctr->key);
Completed in 8493 milliseconds
1
2
3