/external/dropbear/libtomcrypt/src/modes/cfb/ |
cfb_decrypt.c | 15 CFB implementation, decrypt data, Tom St Denis 21 CFB decrypt 25 @param cfb CFB state 28 int cfb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CFB *cfb) 34 LTC_ARGCHK(cfb != NULL); 36 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { 41 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) | [all...] |
cfb_encrypt.c | 15 CFB implementation, encrypt data, Tom St Denis 21 CFB encrypt 25 @param cfb CFB state 28 int cfb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CFB *cfb) 34 LTC_ARGCHK(cfb != NULL); 36 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { 41 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) | [all...] |
cfb_getiv.c | 15 CFB implementation, get IV, Tom St Denis 24 @param cfb The CFB state 27 int cfb_getiv(unsigned char *IV, unsigned long *len, symmetric_CFB *cfb) 31 LTC_ARGCHK(cfb != NULL); 32 if ((unsigned long)cfb->blocklen > *len) { 33 *len = cfb->blocklen; 36 XMEMCPY(IV, cfb->IV, cfb->blocklen); 37 *len = cfb->blocklen [all...] |
cfb_setiv.c | 15 CFB implementation, set IV, Tom St Denis 24 @param cfb The CFB state 27 int cfb_setiv(const unsigned char *IV, unsigned long len, symmetric_CFB *cfb) 32 LTC_ARGCHK(cfb != NULL); 34 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { 38 if (len != (unsigned long)cfb->blocklen) { 43 cfb->padlen = 0; 44 return cipher_descriptor[cfb->cipher].ecb_encrypt(IV, cfb->IV, &cfb->key) [all...] |
cfb_done.c | 15 CFB implementation, finish chain, Tom St Denis 21 @param cfb The CFB chain to terminate 24 int cfb_done(symmetric_CFB *cfb) 27 LTC_ARGCHK(cfb != NULL); 29 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { 32 cipher_descriptor[cfb->cipher].done(&cfb->key); 40 /* $Source: /cvs/libtom/libtomcrypt/src/modes/cfb/cfb_done.c,v $ */
|
cfb_start.c | 15 CFB implementation, start chain, Tom St Denis 22 Initialize a CFB context 28 @param cfb The CFB state to initialize 32 int keylen, int num_rounds, symmetric_CFB *cfb) 38 LTC_ARGCHK(cfb != NULL); 46 cfb->cipher = cipher; 47 cfb->blocklen = cipher_descriptor[cipher].block_length; 48 for (x = 0; x < cfb->blocklen; x++) 49 cfb->IV[x] = IV[x] [all...] |
/external/dropbear/libtomcrypt/testprof/ |
modes_test.c | 1 /* test CFB/OFB/CBC modes */ 12 symmetric_CFB cfb; local 62 /* test CFB mode */ 64 DO(cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); 66 DO(cfb_getiv(iv2, &l, &cfb)); 72 DO(cfb_encrypt(pt, ct, 64, &cfb)); 75 DO(cfb_setiv(iv, l, &cfb)); 77 DO(cfb_decrypt(ct, tmp, 64, &cfb)); 79 fprintf(stderr, "CFB failed");
|
/external/dropbear/libtomcrypt/ |
Android.mk | 58 src/modes/cfb/cfb_decrypt.c src/modes/cfb/cfb_done.c src/modes/cfb/cfb_encrypt.c \ 59 src/modes/cfb/cfb_getiv.c src/modes/cfb/cfb_setiv.c src/modes/cfb/cfb_start.c \
|
crypt.tex | [all...] |
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_cipher.h | 203 /** A block cipher CFB structure */ 745 int keylen, int num_rounds, symmetric_CFB *cfb); 746 int cfb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CFB *cfb); 747 int cfb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CFB *cfb); 748 int cfb_getiv(unsigned char *IV, unsigned long *len, symmetric_CFB *cfb); 749 int cfb_setiv(const unsigned char *IV, unsigned long len, symmetric_CFB *cfb); 750 int cfb_done(symmetric_CFB *cfb);
|
/external/openssl/crypto/evp/ |
evp_locl.h | 158 BLOCK_CIPHER_def1(cname, cfb##cbits, cfb##cbits, CFB, kstruct, nid, 1, \
|
e_aes.c | 491 BLOCK_CIPHER_generic(nid,keylen,1,16,cfb128,cfb,CFB,flags|EVP_CIPH_FLAG_DEFAULT_ASN1) \ 492 BLOCK_CIPHER_generic(nid,keylen,1,16,cfb1,cfb1,CFB,flags) \ 493 BLOCK_CIPHER_generic(nid,keylen,1,16,cfb8,cfb8,CFB,flags) \ [all...] |
/external/dropbear/ |
configure | [all...] |