Searched refs:ocb (Results 1 - 15 of 15) sorted by relevance

/external/dropbear/libtomcrypt/src/encauth/ocb/
H A Docb_shift_xor.c22 @param ocb The OCB state
25 void ocb_shift_xor(ocb_state *ocb, unsigned char *Z) argument
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];
37 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/ocb/ocb_shift_xor.c,v $ */
H A Docb_init.c40 @param ocb [out] The destination of the OCB state
47 int ocb_init(ocb_state *ocb, int cipher, argument
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) {
78 zeromem(ocb->L, ocb->block_len);
79 if ((err = cipher_descriptor[cipher].ecb_encrypt(ocb
[all...]
H A Ds_ocb_done.c30 @param ocb The OCB state
39 int s_ocb_done(ocb_state *ocb, const unsigned char *pt, unsigned long ptlen, argument
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) {
77 ocb_shift_xor(ocb, X);
78 XMEMCPY(Z, X, ocb->block_len);
80 X[ocb
[all...]
H A Docb_decrypt.c22 @param ocb The OCB state
27 int ocb_decrypt(ocb_state *ocb, const unsigned char *ct, unsigned char *pt) argument
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) {
48 ocb_shift_xor(ocb, Z);
51 for (x = 0; x < ocb->block_len; x++) {
54 if ((err = cipher_descriptor[ocb
[all...]
H A Docb_decrypt_verify_memory.c43 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;
68 ct += ocb->block_len;
71 err = ocb_done_decrypt(ocb, c
[all...]
H A Docb_done_encrypt.c22 @param ocb The OCB state
30 int ocb_done_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned long ptlen, argument
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 $ */
H A Docb_encrypt.c22 @param ocb The OCB state
27 int ocb_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned char *ct) argument
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++) {
44 ocb->checksum[x] ^= pt[x];
48 ocb_shift_xor(ocb, Z);
51 for (x = 0; x < ocb
[all...]
H A Docb_encrypt_authenticate_memory.c41 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;
69 err = ocb_done_encrypt(ocb, p
[all...]
H A Docb_done_decrypt.c22 @param ocb The OCB state
31 int ocb_done_decrypt(ocb_state *ocb, argument
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/
H A DAndroid.mk20 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_tes
[all...]
H A Dcrypt.tex1336 \index{ocb\_init()}
1338 int ocb_init( ocb_state *ocb,
1345 This will initialize the \textit{ocb} context using cipher descriptor \textit{cipher}. It will use a \textit{key} of length \textit{keylen}
1352 \index{ocb\_encrypt()} \index{ocb\_decrypt()}
1354 int ocb_encrypt( ocb_state *ocb,
1358 int ocb_decrypt( ocb_state *ocb,
1365 both functions given a single \textit{ocb} state. For bi-directional communication you will have to initialize two \textit{ocb}
1372 \index{ocb\_don
[all...]
/external/dropbear/libtomcrypt/src/headers/
H A Dtomcrypt_mac.h155 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/
H A Dedit.c5336 x_mkraw(int fd, struct termios *ocb, bool forread) argument
5340 if (ocb)
5341 tcgetattr(fd, ocb);
5343 ocb = &tty_state;
5345 cb = *ocb;
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.ecf_3.1.0.v20100529-0735.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
/external/dropbear/
H A Dconfigure10872 mkdir -p libtomcrypt/src/encauth/ocb
10874 as_dir=libtomcrypt/src/encauth/ocb
10892 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/encauth/ocb" >&5
10893 echo "$as_me: error: cannot create directory libtomcrypt/src/encauth/ocb" >&2;}

Completed in 125 milliseconds