Home
last modified time | relevance | path

Searched refs:ofb (Results 1 – 25 of 32) sorted by relevance

12

/external/dropbear/libtomcrypt/src/modes/ofb/
Dofb_encrypt.c28 int ofb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_OFB *ofb) in ofb_encrypt() argument
33 LTC_ARGCHK(ofb != NULL); in ofb_encrypt()
34 if ((err = cipher_is_valid(ofb->cipher)) != CRYPT_OK) { in ofb_encrypt()
39 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) || in ofb_encrypt()
40 ofb->padlen < 0 || ofb->padlen > (int)sizeof(ofb->IV)) { in ofb_encrypt()
45 if (ofb->padlen == ofb->blocklen) { in ofb_encrypt()
46 … if ((err = cipher_descriptor[ofb->cipher].ecb_encrypt(ofb->IV, ofb->IV, &ofb->key)) != CRYPT_OK) { in ofb_encrypt()
49 ofb->padlen = 0; in ofb_encrypt()
51 *ct++ = *pt++ ^ ofb->IV[(ofb->padlen)++]; in ofb_encrypt()
Dofb_start.c32 int keylen, int num_rounds, symmetric_OFB *ofb) in ofb_start() argument
38 LTC_ARGCHK(ofb != NULL); in ofb_start()
45 ofb->cipher = cipher; in ofb_start()
46 ofb->blocklen = cipher_descriptor[cipher].block_length; in ofb_start()
47 for (x = 0; x < ofb->blocklen; x++) { in ofb_start()
48 ofb->IV[x] = IV[x]; in ofb_start()
52 ofb->padlen = ofb->blocklen; in ofb_start()
53 return cipher_descriptor[cipher].setup(key, keylen, num_rounds, &ofb->key); in ofb_start()
Dofb_setiv.c27 int ofb_setiv(const unsigned char *IV, unsigned long len, symmetric_OFB *ofb) in ofb_setiv() argument
32 LTC_ARGCHK(ofb != NULL); in ofb_setiv()
34 if ((err = cipher_is_valid(ofb->cipher)) != CRYPT_OK) { in ofb_setiv()
38 if (len != (unsigned long)ofb->blocklen) { in ofb_setiv()
43 ofb->padlen = 0; in ofb_setiv()
44 return cipher_descriptor[ofb->cipher].ecb_encrypt(IV, ofb->IV, &ofb->key); in ofb_setiv()
Dofb_getiv.c27 int ofb_getiv(unsigned char *IV, unsigned long *len, symmetric_OFB *ofb) in ofb_getiv() argument
31 LTC_ARGCHK(ofb != NULL); in ofb_getiv()
32 if ((unsigned long)ofb->blocklen > *len) { in ofb_getiv()
33 *len = ofb->blocklen; in ofb_getiv()
36 XMEMCPY(IV, ofb->IV, ofb->blocklen); in ofb_getiv()
37 *len = ofb->blocklen; in ofb_getiv()
Dofb_done.c24 int ofb_done(symmetric_OFB *ofb) in ofb_done() argument
27 LTC_ARGCHK(ofb != NULL); in ofb_done()
29 if ((err = cipher_is_valid(ofb->cipher)) != CRYPT_OK) { in ofb_done()
32 cipher_descriptor[ofb->cipher].done(&ofb->key); in ofb_done()
Dofb_decrypt.c28 int ofb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_OFB *ofb) in ofb_decrypt() argument
32 LTC_ARGCHK(ofb != NULL); in ofb_decrypt()
33 return ofb_encrypt(ct, pt, len, ofb); in ofb_decrypt()
/external/dropbear/libtomcrypt/testprof/
Dmodes_test.c15 symmetric_OFB ofb; in modes_test() local
87 DO(ofb_start(cipher_idx, iv, key, 16, 0, &ofb)); in modes_test()
89 DO(ofb_getiv(iv2, &l, &ofb)); in modes_test()
94 DO(ofb_encrypt(pt, ct, 64, &ofb)); in modes_test()
97 DO(ofb_setiv(iv2, l, &ofb)); in modes_test()
99 DO(ofb_decrypt(ct, tmp, 64, &ofb)); in modes_test()
/external/dropbear/libtomcrypt/
DAndroid.mk67 src/modes/lrw/lrw_start.c src/modes/lrw/lrw_test.c src/modes/ofb/ofb_decrypt.c src/modes/ofb/ofb_do…
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
DMakefile.in158 src/modes/lrw/lrw_start.o src/modes/lrw/lrw_test.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_do…
159 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \
160 src/modes/ofb/ofb_start.o
Dmakefile.msvc65 src/modes/lrw/lrw_start.obj src/modes/lrw/lrw_test.obj src/modes/ofb/ofb_decrypt.obj src/modes/ofb/…
66 src/modes/ofb/ofb_encrypt.obj src/modes/ofb/ofb_getiv.obj src/modes/ofb/ofb_setiv.obj \
67 src/modes/ofb/ofb_start.obj src/pk/asn1/der/bit/der_decode_bit_string.obj \
Dmakefile.icc155 src/modes/lrw/lrw_start.o src/modes/lrw/lrw_test.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_do…
156 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \
157 src/modes/ofb/ofb_start.o src/pk/asn1/der/bit/der_decode_bit_string.o \
Dmakefile.unix101 src/modes/lrw/lrw_start.o src/modes/lrw/lrw_test.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_do…
102 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \
103 src/modes/ofb/ofb_start.o src/pk/asn1/der/bit/der_decode_bit_string.o \
Dmakefile.shared160 src/modes/lrw/lrw_start.o src/modes/lrw/lrw_test.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_do…
161 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \
162 src/modes/ofb/ofb_start.o src/pk/asn1/der/bit/der_decode_bit_string.o \
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_cipher.h755 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/chromium_org/third_party/yasm/source/patched-yasm/modules/arch/x86/tests/
Dpadlock.asm12 ;xcrypt-ofb
/external/openssl/crypto/des/
DREADME19 It supports ecb, cbc, ofb, cfb, triple ecb, triple cbc, triple ofb,
DFILES044 ofb64_enc.c - des_ofb_encrypt() ofb in 64 bit mode but setup to be
46 ofb64ede.c - des_ede3_ofb64_encrypt() ofb in 64 bit mode but setup to be
DVERSION22 The 'n' bit ofb code was wrong, it was not shifting the shift
116 I have also now added triple DES versions of cfb and ofb.
249 Added cfb and ofb routines to the library.
/external/chromium_org/third_party/openssl/openssl/crypto/des/
DREADME19 It supports ecb, cbc, ofb, cfb, triple ecb, triple cbc, triple ofb,
DFILES044 ofb64_enc.c - des_ofb_encrypt() ofb in 64 bit mode but setup to be
46 ofb64ede.c - des_ede3_ofb64_encrypt() ofb in 64 bit mode but setup to be
DVERSION22 The 'n' bit ofb code was wrong, it was not shifting the shift
116 I have also now added triple DES versions of cfb and ofb.
249 Added cfb and ofb routines to the library.
/external/openssl/crypto/objects/
Dobjects.txt150 : CAST5-OFB : cast5-ofb
377 : RC2-OFB : rc2-ofb
388 : RC5-OFB : rc5-ofb
412 : IDEA-OFB : idea-ofb
419 : BF-OFB : bf-ofb
629 algorithm 8 : DES-OFB : des-ofb
647 : DES-EDE-OFB : des-ede-ofb
649 : DES-EDE3-OFB : des-ede3-ofb
855 aes 3 : AES-128-OFB : aes-128-ofb
866 aes 23 : AES-192-OFB : aes-192-ofb
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/objects/
Dobjects.txt150 : CAST5-OFB : cast5-ofb
377 : RC2-OFB : rc2-ofb
388 : RC5-OFB : rc5-ofb
412 : IDEA-OFB : idea-ofb
419 : BF-OFB : bf-ofb
629 algorithm 8 : DES-OFB : des-ofb
647 : DES-EDE-OFB : des-ede-ofb
649 : DES-EDE3-OFB : des-ede3-ofb
855 aes 3 : AES-128-OFB : aes-128-ofb
866 aes 23 : AES-192-OFB : aes-192-ofb
[all …]
/external/openssl/crypto/evp/
Devp_locl.h165 BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, 1, \
/external/chromium_org/third_party/openssl/openssl/crypto/evp/
Devp_locl.h165 BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, 1, \

12