Home
last modified time | relevance | path

Searched refs:cfb (Results 1 – 25 of 29) sorted by relevance

12

/external/dropbear/libtomcrypt/src/modes/cfb/
Dcfb_encrypt.c28 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()
Dcfb_decrypt.c28 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 …]
Dcfb_start.c32 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()
Dcfb_setiv.c27 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()
Dcfb_getiv.c27 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()
Dcfb_done.c24 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/
Dmodes_test.c12 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/
DAndroid.mk58 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 \
DMakefile.in149 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 \
Dmakefile.msvc56 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 \
Dmakefile.unix92 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 \
Dmakefile.icc146 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 \
Dmakefile.shared151 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 \
Dchanges156 … -- 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
Dcrypt.tex851 \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/
Dtomcrypt_cipher.h745 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/
DREADME19 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
DFILES039 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
DVERSION116 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.txt148 : 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/
Devp_locl.h158 BLOCK_CIPHER_def1(cname, cfb##cbits, cfb##cbits, CFB, kstruct, nid, 1, \
De_aes.c491 BLOCK_CIPHER_generic(nid,keylen,1,16,cfb128,cfb,CFB,flags|EVP_CIPH_FLAG_DEFAULT_ASN1) \
/external/dropbear/
Dconfigure.in643 AS_MKDIR_P(libtomcrypt/src/modes/cfb)
Dconfigure11247 mkdir -p libtomcrypt/src/modes/cfb
11249 as_dir=libtomcrypt/src/modes/cfb
/external/elfutils/tests/
Dtestfile45.expect.bz21testfile45.o: elf64-elf_x86_64 2 3Disassembly of section .text: 4 5 0 ...

12