/external/dropbear/libtomcrypt/src/modes/cfb/ |
D | cfb_encrypt.c | 28 int cfb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CFB *cfb) in cfb_encrypt() argument 34 LTC_ARGCHK(cfb != NULL); in cfb_encrypt() 36 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { in cfb_encrypt() 41 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_encrypt() 42 cfb->padlen < 0 || cfb->padlen > (int)sizeof(cfb->pad)) { in cfb_encrypt() 47 if (cfb->padlen == cfb->blocklen) { in cfb_encrypt() 48 …if ((err = cipher_descriptor[cfb->cipher].ecb_encrypt(cfb->pad, cfb->IV, &cfb->key)) != CRYPT_OK) { in cfb_encrypt() 51 cfb->padlen = 0; in cfb_encrypt() 53 cfb->pad[cfb->padlen] = (*ct = *pt ^ cfb->IV[cfb->padlen]); in cfb_encrypt() 56 ++(cfb->padlen); in cfb_encrypt()
|
D | cfb_decrypt.c | 28 int cfb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CFB *cfb) in cfb_decrypt() argument 34 LTC_ARGCHK(cfb != NULL); in cfb_decrypt() 36 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { in cfb_decrypt() 41 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_decrypt() 42 cfb->padlen < 0 || cfb->padlen > (int)sizeof(cfb->pad)) { in cfb_decrypt() 47 if (cfb->padlen == cfb->blocklen) { in cfb_decrypt() 48 …if ((err = cipher_descriptor[cfb->cipher].ecb_encrypt(cfb->pad, cfb->IV, &cfb->key)) != CRYPT_OK) { in cfb_decrypt() 51 cfb->padlen = 0; in cfb_decrypt() 53 cfb->pad[cfb->padlen] = *ct; in cfb_decrypt() 54 *pt = *ct ^ cfb->IV[cfb->padlen]; in cfb_decrypt() [all …]
|
D | cfb_start.c | 32 int keylen, int num_rounds, symmetric_CFB *cfb) in cfb_start() argument 38 LTC_ARGCHK(cfb != NULL); in cfb_start() 46 cfb->cipher = cipher; in cfb_start() 47 cfb->blocklen = cipher_descriptor[cipher].block_length; in cfb_start() 48 for (x = 0; x < cfb->blocklen; x++) in cfb_start() 49 cfb->IV[x] = IV[x]; in cfb_start() 52 if ((err = cipher_descriptor[cipher].setup(key, keylen, num_rounds, &cfb->key)) != CRYPT_OK) { in cfb_start() 57 cfb->padlen = 0; in cfb_start() 58 return cipher_descriptor[cfb->cipher].ecb_encrypt(cfb->IV, cfb->IV, &cfb->key); in cfb_start()
|
D | cfb_setiv.c | 27 int cfb_setiv(const unsigned char *IV, unsigned long len, symmetric_CFB *cfb) in cfb_setiv() argument 32 LTC_ARGCHK(cfb != NULL); in cfb_setiv() 34 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { in cfb_setiv() 38 if (len != (unsigned long)cfb->blocklen) { in cfb_setiv() 43 cfb->padlen = 0; in cfb_setiv() 44 return cipher_descriptor[cfb->cipher].ecb_encrypt(IV, cfb->IV, &cfb->key); in cfb_setiv()
|
D | cfb_getiv.c | 27 int cfb_getiv(unsigned char *IV, unsigned long *len, symmetric_CFB *cfb) in cfb_getiv() argument 31 LTC_ARGCHK(cfb != NULL); in cfb_getiv() 32 if ((unsigned long)cfb->blocklen > *len) { in cfb_getiv() 33 *len = cfb->blocklen; in cfb_getiv() 36 XMEMCPY(IV, cfb->IV, cfb->blocklen); in cfb_getiv() 37 *len = cfb->blocklen; in cfb_getiv()
|
D | cfb_done.c | 24 int cfb_done(symmetric_CFB *cfb) in cfb_done() argument 27 LTC_ARGCHK(cfb != NULL); in cfb_done() 29 if ((err = cipher_is_valid(cfb->cipher)) != CRYPT_OK) { in cfb_done() 32 cipher_descriptor[cfb->cipher].done(&cfb->key); in cfb_done()
|
/external/dropbear/libtomcrypt/testprof/ |
D | modes_test.c | 12 symmetric_CFB cfb; in modes_test() local 64 DO(cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); in modes_test() 66 DO(cfb_getiv(iv2, &l, &cfb)); in modes_test() 72 DO(cfb_encrypt(pt, ct, 64, &cfb)); in modes_test() 75 DO(cfb_setiv(iv, l, &cfb)); in modes_test() 77 DO(cfb_decrypt(ct, tmp, 64, &cfb)); in modes_test()
|
/external/dropbear/libtomcrypt/ |
D | 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 \
|
D | Makefile.in | 149 src/modes/cfb/cfb_decrypt.o src/modes/cfb/cfb_done.o src/modes/cfb/cfb_encrypt.o \ 150 src/modes/cfb/cfb_getiv.o src/modes/cfb/cfb_setiv.o src/modes/cfb/cfb_start.o \
|
D | makefile.msvc | 56 src/modes/cfb/cfb_decrypt.obj src/modes/cfb/cfb_done.obj src/modes/cfb/cfb_encrypt.obj \ 57 src/modes/cfb/cfb_getiv.obj src/modes/cfb/cfb_setiv.obj src/modes/cfb/cfb_start.obj \
|
D | makefile.unix | 92 src/modes/cfb/cfb_decrypt.o src/modes/cfb/cfb_done.o src/modes/cfb/cfb_encrypt.o \ 93 src/modes/cfb/cfb_getiv.o src/modes/cfb/cfb_setiv.o src/modes/cfb/cfb_start.o \
|
D | makefile.icc | 146 src/modes/cfb/cfb_decrypt.o src/modes/cfb/cfb_done.o src/modes/cfb/cfb_encrypt.o \ 147 src/modes/cfb/cfb_getiv.o src/modes/cfb/cfb_setiv.o src/modes/cfb/cfb_start.o \
|
D | makefile.shared | 151 src/modes/cfb/cfb_decrypt.o src/modes/cfb/cfb_done.o src/modes/cfb/cfb_encrypt.o \ 152 src/modes/cfb/cfb_getiv.o src/modes/cfb/cfb_setiv.o src/modes/cfb/cfb_start.o \
|
D | changes | 156 … -- cleaned up ciphers definitions to remove cbc/cfb/ofb/ctr/etc from the namespace when not used. 584 …-- updated cbc/cfb/ofb/ctr code with setiv/getiv functions to change/read the IV without re-keying. 813 -- Added code to ensure that that chaining mode code (cfb/ofb/ctr/cbc) have valid
|
D | crypt.tex | 851 \index{ecb\_start()} \index{cfb\_start()} \index{cbc\_start()} \index{ofb\_start()} \index{ctr\_sta… 893 \index{ecb\_encrypt()} \index{ecb\_decrypt()} \index{cfb\_encrypt()} \index{cfb\_decrypt()} 906 Where \textit{XXX} is one of $\lbrace ecb, cbc, ctr, cfb, ofb \rbrace$. 920 …x{cbc\_getiv()} \index{ofb\_setiv()} \index{ofb\_getiv()} \index{cfb\_setiv()} \index{cfb\_getiv()} 947 \index{ecb\_done()} \index{cbc\_done()}\index{cfb\_done()}\index{ofb\_done()} \index{ctr\_done()}
|
/external/dropbear/libtomcrypt/src/headers/ |
D | tomcrypt_cipher.h | 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/des/ |
D | README | 19 It supports ecb, cbc, ofb, cfb, triple ecb, triple cbc, triple ofb, 20 triple cfb, desx, and MIT's pcbc encryption modes and also has a fast
|
D | FILES0 | 39 cfb64enc.c - des_cfb64_encrypt() cfb in 64 bit mode but setup to be 41 cfb64ede.c - des_ede3_cfb64_encrypt() cfb in 64 bit mode but setup to be
|
D | VERSION | 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/ |
D | objects.txt | 148 : CAST5-CFB : cast5-cfb 375 : RC2-CFB : rc2-cfb 386 : RC5-CFB : rc5-cfb 410 : IDEA-CFB : idea-cfb 417 : BF-CFB : bf-cfb 631 algorithm 9 : DES-CFB : des-cfb 643 : DES-EDE-CFB : des-ede-cfb 645 : DES-EDE3-CFB : des-ede3-cfb 857 aes 4 : AES-128-CFB : aes-128-cfb 868 aes 24 : AES-192-CFB : aes-192-cfb [all …]
|
/external/openssl/crypto/evp/ |
D | evp_locl.h | 158 BLOCK_CIPHER_def1(cname, cfb##cbits, cfb##cbits, CFB, kstruct, nid, 1, \
|
D | e_aes.c | 491 BLOCK_CIPHER_generic(nid,keylen,1,16,cfb128,cfb,CFB,flags|EVP_CIPH_FLAG_DEFAULT_ASN1) \
|
/external/dropbear/ |
D | configure.in | 643 AS_MKDIR_P(libtomcrypt/src/modes/cfb)
|
D | configure | 11247 mkdir -p libtomcrypt/src/modes/cfb 11249 as_dir=libtomcrypt/src/modes/cfb
|
/external/elfutils/tests/ |
D | testfile45.expect.bz2 | 1testfile45.o: elf64-elf_x86_64
2
3Disassembly of section .text:
4
5 0 ... |