/external/dropbear/libtomcrypt/src/modes/ofb/ |
ofb_encrypt.c | 15 OFB implementation, encrypt data, Tom St Denis 21 OFB encrypt 25 @param ofb OFB state 28 int ofb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_OFB *ofb) 33 LTC_ARGCHK(ofb != NULL); 34 if ((err = cipher_is_valid(ofb->cipher)) != CRYPT_OK) { 39 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) | [all...] |
ofb_getiv.c | 15 OFB implementation, get IV, Tom St Denis 24 @param ofb The OFB state 27 int ofb_getiv(unsigned char *IV, unsigned long *len, symmetric_OFB *ofb) 31 LTC_ARGCHK(ofb != NULL); 32 if ((unsigned long)ofb->blocklen > *len) { 33 *len = ofb->blocklen; 36 XMEMCPY(IV, ofb->IV, ofb->blocklen); 37 *len = ofb->blocklen [all...] |
ofb_setiv.c | 15 OFB implementation, set IV, Tom St Denis 24 @param ofb The OFB state 27 int ofb_setiv(const unsigned char *IV, unsigned long len, symmetric_OFB *ofb) 32 LTC_ARGCHK(ofb != NULL); 34 if ((err = cipher_is_valid(ofb->cipher)) != CRYPT_OK) { 38 if (len != (unsigned long)ofb->blocklen) { 43 ofb->padlen = 0; 44 return cipher_descriptor[ofb->cipher].ecb_encrypt(IV, ofb->IV, &ofb->key) [all...] |
ofb_start.c | 15 OFB implementation, start chain, Tom St Denis 22 Initialize a OFB context 28 @param ofb The OFB state to initialize 32 int keylen, int num_rounds, symmetric_OFB *ofb) 38 LTC_ARGCHK(ofb != NULL); 45 ofb->cipher = cipher; 46 ofb->blocklen = cipher_descriptor[cipher].block_length; 47 for (x = 0; x < ofb->blocklen; x++) { 48 ofb->IV[x] = IV[x] [all...] |
ofb_done.c | 15 OFB implementation, finish chain, Tom St Denis 21 @param ofb The OFB chain to terminate 24 int ofb_done(symmetric_OFB *ofb) 27 LTC_ARGCHK(ofb != NULL); 29 if ((err = cipher_is_valid(ofb->cipher)) != CRYPT_OK) { 32 cipher_descriptor[ofb->cipher].done(&ofb->key); 40 /* $Source: /cvs/libtom/libtomcrypt/src/modes/ofb/ofb_done.c,v $ */
|
ofb_decrypt.c | 15 OFB implementation, decrypt data, Tom St Denis 21 OFB decrypt 25 @param ofb OFB state 28 int ofb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_OFB *ofb) 32 LTC_ARGCHK(ofb != NULL); 33 return ofb_encrypt(ct, pt, len, ofb); 41 /* $Source: /cvs/libtom/libtomcrypt/src/modes/ofb/ofb_decrypt.c,v $ */
|
/external/dropbear/libtomcrypt/testprof/ |
modes_test.c | 1 /* test CFB/OFB/CBC modes */ 15 symmetric_OFB ofb; local 85 /* test OFB mode */ 87 DO(ofb_start(cipher_idx, iv, key, 16, 0, &ofb)); 89 DO(ofb_getiv(iv2, &l, &ofb)); 94 DO(ofb_encrypt(pt, ct, 64, &ofb)); 97 DO(ofb_setiv(iv2, l, &ofb)); 99 DO(ofb_decrypt(ct, tmp, 64, &ofb)); 101 fprintf(stderr, "OFB failed");
|
/external/dropbear/libtomcrypt/ |
Android.mk | 67 src/modes/lrw/lrw_start.c src/modes/lrw/lrw_test.c src/modes/ofb/ofb_decrypt.c src/modes/ofb/ofb_done.c \ 68 src/modes/ofb/ofb_encrypt.c src/modes/ofb/ofb_getiv.c src/modes/ofb/ofb_setiv.c \ 69 src/modes/ofb/ofb_start.c
|
crypt.tex | [all...] |
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_cipher.h | 221 /** A block cipher OFB structure */ 755 int keylen, int num_rounds, symmetric_OFB *ofb); 756 int ofb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_OFB *ofb); 757 int ofb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_OFB *ofb); 758 int ofb_getiv(unsigned char *IV, unsigned long *len, symmetric_OFB *ofb); 759 int ofb_setiv(const unsigned char *IV, unsigned long len, symmetric_OFB *ofb); 760 int ofb_done(symmetric_OFB *ofb);
|
/external/openssl/crypto/evp/ |
evp_locl.h | 165 BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, 1, \
|
e_aes.c | 490 BLOCK_CIPHER_generic(nid,keylen,1,16,ofb128,ofb,OFB,flags|EVP_CIPH_FLAG_DEFAULT_ASN1) \ [all...] |
/external/dropbear/ |
configure | [all...] |