/external/dropbear/libtomcrypt/src/encauth/ocb/ |
ocb_shift_xor.c | 14 OCB implementation, internal function, by Tom St Denis 21 Compute the shift/xor for OCB (internal function) 22 @param ocb The OCB state 25 void ocb_shift_xor(ocb_state *ocb, unsigned char *Z) 28 y = ocb_ntz(ocb->block_index++); 29 for (x = 0; x < ocb->block_len; x++) { 30 ocb->Li[x] ^= ocb->Ls[y][x]; 31 Z[x] = ocb->Li[x] ^ ocb->R[x] [all...] |
ocb_init.c | 14 OCB implementation, initialize state, by Tom St Denis 39 Initialize an OCB context. 40 @param ocb [out] The destination of the OCB state 47 int ocb_init(ocb_state *ocb, int cipher, 52 LTC_ARGCHK(ocb != NULL); 62 ocb->block_len = cipher_descriptor[cipher].block_length; 64 if (polys[poly].len == ocb->block_len) { 68 if (polys[poly].len != ocb->block_len) { 73 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &ocb->key)) != CRYPT_OK) [all...] |
s_ocb_done.c | 14 OCB implementation, internal helper, by Tom St Denis 29 Shared code to finish an OCB stream 30 @param ocb The OCB state 39 int s_ocb_done(ocb_state *ocb, const unsigned char *pt, unsigned long ptlen, 46 LTC_ARGCHK(ocb != NULL); 51 if ((err = cipher_is_valid(ocb->cipher)) != CRYPT_OK) { 54 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length || 55 (int)ptlen > ocb->block_len || (int)ptlen < 0) [all...] |
ocb_decrypt.c | 14 OCB implementation, decrypt data, by Tom St Denis 21 Decrypt a block with OCB. 22 @param ocb The OCB state 27 int ocb_decrypt(ocb_state *ocb, const unsigned char *ct, unsigned char *pt) 32 LTC_ARGCHK(ocb != NULL); 37 if ((err = cipher_is_valid(ocb->cipher)) != CRYPT_OK) { 40 LTC_ARGCHK(cipher_descriptor[ocb->cipher].ecb_decrypt != NULL); 43 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) [all...] |
ocb_decrypt_verify_memory.c | 14 OCB implementation, helper to decrypt block of memory, by Tom St Denis 21 Decrypt and compare the tag with OCB. 43 ocb_state *ocb; local 53 ocb = XMALLOC(sizeof(ocb_state)); 54 if (ocb == NULL) { 58 if ((err = ocb_init(ocb, cipher, key, keylen, nonce)) != CRYPT_OK) { 62 while (ctlen > (unsigned long)ocb->block_len) { 63 if ((err = ocb_decrypt(ocb, ct, pt)) != CRYPT_OK) { 66 ctlen -= ocb->block_len; 67 pt += ocb->block_len [all...] |
ocb_done_encrypt.c | 14 OCB implementation, terminate encryption, by Tom St Denis 21 Terminate an encryption OCB state 22 @param ocb The OCB state 26 @param tag [out] The tag for the OCB stream 30 int ocb_done_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned long ptlen, 33 LTC_ARGCHK(ocb != NULL); 38 return s_ocb_done(ocb, pt, ptlen, ct, tag, taglen, 0); 44 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/ocb/ocb_done_encrypt.c,v $ */
|
ocb_encrypt.c | 14 OCB implementation, encrypt data, by Tom St Denis 21 Encrypt a block of data with OCB. 22 @param ocb The OCB state 27 int ocb_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned char *ct) 32 LTC_ARGCHK(ocb != NULL); 35 if ((err = cipher_is_valid(ocb->cipher)) != CRYPT_OK) { 38 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { 43 for (x = 0; x < ocb->block_len; x++) [all...] |
ocb_encrypt_authenticate_memory.c | 14 OCB implementation, encrypt block of memory, by Tom St Denis 41 ocb_state *ocb; local 51 ocb = XMALLOC(sizeof(ocb_state)); 52 if (ocb == NULL) { 56 if ((err = ocb_init(ocb, cipher, key, keylen, nonce)) != CRYPT_OK) { 60 while (ptlen > (unsigned long)ocb->block_len) { 61 if ((err = ocb_encrypt(ocb, pt, ct)) != CRYPT_OK) { 64 ptlen -= ocb->block_len; 65 pt += ocb->block_len; 66 ct += ocb->block_len [all...] |
ocb_done_decrypt.c | 14 OCB implementation, terminate decryption, by Tom St Denis 21 Terminate a decrypting OCB state 22 @param ocb The OCB state 31 int ocb_done_decrypt(ocb_state *ocb, 40 LTC_ARGCHK(ocb != NULL); 56 if ((err = s_ocb_done(ocb, ct, ctlen, pt, tagbuf, &tagbuflen, 1)) != CRYPT_OK) { 78 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/ocb/ocb_done_decrypt.c,v $ */
|
/external/dropbear/libtomcrypt/ |
Android.mk | 20 src/encauth/gcm/gcm_reset.c src/encauth/gcm/gcm_test.c src/encauth/ocb/ocb_decrypt.c \ 21 src/encauth/ocb/ocb_decrypt_verify_memory.c src/encauth/ocb/ocb_done_decrypt.c \ 22 src/encauth/ocb/ocb_done_encrypt.c src/encauth/ocb/ocb_encrypt.c \ 23 src/encauth/ocb/ocb_encrypt_authenticate_memory.c src/encauth/ocb/ocb_init.c src/encauth/ocb/ocb_ntz.c \ 24 src/encauth/ocb/ocb_shift_xor.c src/encauth/ocb/ocb_test.c src/encauth/ocb/s_ocb_done.c [all...] |
crypt.tex | [all...] |
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_mac.h | 155 int ocb_init(ocb_state *ocb, int cipher, 158 int ocb_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned char *ct); 159 int ocb_decrypt(ocb_state *ocb, const unsigned char *ct, unsigned char *pt); 161 int ocb_done_encrypt(ocb_state *ocb, 166 int ocb_done_decrypt(ocb_state *ocb, 189 void ocb_shift_xor(ocb_state *ocb, unsigned char *Z); 191 int s_ocb_done(ocb_state *ocb, const unsigned char *pt, unsigned long ptlen,
|
/external/mksh/src/ |
edit.c | [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.ecf_3.1.0.v20100529-0735.jar | |
/external/dropbear/ |
configure | [all...] |