Searched defs:ct (Results 1 - 25 of 139) sorted by relevance

123456

/external/dropbear/libtomcrypt/src/modes/ctr/
H A Dctr_decrypt.c22 @param ct Ciphertext
28 int ctr_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CTR *ctr) argument
31 LTC_ARGCHK(ct != NULL);
34 return ctr_encrypt(ct, pt, len, ctr);
H A Dctr_encrypt.c24 @param ct [out] Ciphertext
29 int ctr_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CTR *ctr) argument
34 LTC_ARGCHK(ct != NULL);
55 if ((err = cipher_descriptor[ctr->cipher].accel_ctr_encrypt(pt, ct, len/ctr->blocklen, ctr->ctr, ctr->mode, &ctr->key)) != CRYPT_OK) {
92 *((LTC_FAST_TYPE*)((unsigned char *)ct + x)) = *((LTC_FAST_TYPE*)((unsigned char *)pt + x)) ^
96 ct += ctr->blocklen;
102 *ct++ = *pt++ ^ ctr->pad[ctr->padlen++];
/external/dropbear/libtomcrypt/src/modes/f8/
H A Df8_decrypt.c22 @param ct Ciphertext
28 int f8_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_F8 *f8) argument
31 LTC_ARGCHK(ct != NULL);
33 return f8_encrypt(ct, pt, len, f8);
H A Df8_encrypt.c23 @param ct [out] Ciphertext
28 int f8_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_F8 *f8) argument
33 LTC_ARGCHK(ct != NULL);
67 *((LTC_FAST_TYPE*)(&ct[x])) = *((LTC_FAST_TYPE*)(&pt[x])) ^ *((LTC_FAST_TYPE*)(&f8->IV[x]));
75 ct += x;
93 *ct++ = *pt++ ^ f8->IV[f8->padlen++];
/external/dropbear/libtomcrypt/src/modes/ofb/
H A Dofb_decrypt.c22 @param ct Ciphertext
28 int ofb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_OFB *ofb) argument
31 LTC_ARGCHK(ct != NULL);
33 return ofb_encrypt(ct, pt, len, ofb);
H A Dofb_encrypt.c23 @param ct [out] Ciphertext
28 int ofb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_OFB *ofb) argument
32 LTC_ARGCHK(ct != NULL);
51 *ct++ = *pt++ ^ ofb->IV[(ofb->padlen)++];
/external/dropbear/libtomcrypt/src/encauth/eax/
H A Deax_decrypt.c23 @param ct The ciphertext
28 int eax_decrypt(eax_state *eax, const unsigned char *ct, unsigned char *pt, argument
35 LTC_ARGCHK(ct != NULL);
38 if ((err = omac_process(&eax->ctomac, ct, length)) != CRYPT_OK) {
43 return ctr_decrypt(ct, pt, length, &eax->ctr);
H A Deax_encrypt.c24 @param ct [out] The ciphertext as encrypted
28 int eax_encrypt(eax_state *eax, const unsigned char *pt, unsigned char *ct, argument
35 LTC_ARGCHK(ct != NULL);
38 if ((err = ctr_encrypt(pt, ct, length, &eax->ctr)) != CRYPT_OK) {
43 return omac_process(&eax->ctomac, ct, length);
H A Deax_encrypt_authenticate_memory.c31 @param ct [out] The ciphertext
41 unsigned char *ct,
49 LTC_ARGCHK(ct != NULL);
59 if ((err = eax_encrypt(eax, pt, ct, ptlen)) != CRYPT_OK) {
36 eax_encrypt_authenticate_memory(int cipher, const unsigned char *key, unsigned long keylen, const unsigned char *nonce, unsigned long noncelen, const unsigned char *header, unsigned long headerlen, const unsigned char *pt, unsigned long ptlen, unsigned char *ct, unsigned char *tag, unsigned long *taglen) argument
/external/dropbear/libtomcrypt/src/encauth/ocb/
H A Docb_done_encrypt.c25 @param ct [out] The ciphertext (if any)
31 unsigned char *ct, unsigned char *tag, unsigned long *taglen)
35 LTC_ARGCHK(ct != NULL);
38 return s_ocb_done(ocb, pt, ptlen, ct, tag, taglen, 0);
30 ocb_done_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned long ptlen, unsigned char *ct, unsigned char *tag, unsigned long *taglen) argument
H A Docb_decrypt.c23 @param ct The ciphertext (length of the block size of the block cipher)
24 @param pt [out] The plaintext (length of ct)
27 int ocb_decrypt(ocb_state *ocb, const unsigned char *ct, unsigned char *pt) argument
34 LTC_ARGCHK(ct != NULL);
50 /* xor ct in, encrypt, xor Z out */
52 tmp[x] = ct[x] ^ Z[x];
H A Docb_encrypt.c24 @param ct [out] The ciphertext (same size as the pt)
27 int ocb_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned char *ct) argument
34 LTC_ARGCHK(ct != NULL);
54 if ((err = cipher_descriptor[ocb->cipher].ecb_encrypt(tmp, ct, &ocb->key)) != CRYPT_OK) {
58 ct[x] ^= Z[x];
/external/dropbear/libtomcrypt/src/modes/cbc/
H A Dcbc_encrypt.c24 @param ct [out] Ciphertext
29 int cbc_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CBC *cbc) argument
34 LTC_ARGCHK(ct != NULL);
56 return cipher_descriptor[cbc->cipher].accel_cbc_encrypt(pt, ct, len / cbc->blocklen, cbc->IV, &cbc->key);
71 if ((err = cipher_descriptor[cbc->cipher].ecb_encrypt(cbc->IV, ct, &cbc->key)) != CRYPT_OK) {
78 *((LTC_FAST_TYPE*)((unsigned char *)cbc->IV + x)) = *((LTC_FAST_TYPE*)((unsigned char *)ct + x));
82 cbc->IV[x] = ct[x];
86 ct += cbc->blocklen;
H A Dcbc_decrypt.c23 @param ct Ciphertext
29 int cbc_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CBC *cbc) argument
40 LTC_ARGCHK(ct != NULL);
62 return cipher_descriptor[cbc->cipher].accel_cbc_decrypt(ct, pt, len / cbc->blocklen, cbc->IV, &cbc->key);
66 if ((err = cipher_descriptor[cbc->cipher].ecb_decrypt(ct, tmp, &cbc->key)) != CRYPT_OK) {
74 *((LTC_FAST_TYPE*)((unsigned char *)cbc->IV + x)) = *((LTC_FAST_TYPE*)((unsigned char *)ct + x));
80 cbc->IV[x] = ct[x];
85 ct += cbc->blocklen;
/external/dropbear/libtomcrypt/src/modes/cfb/
H A Dcfb_decrypt.c22 @param ct Ciphertext
28 int cfb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CFB *cfb) argument
33 LTC_ARGCHK(ct != NULL);
53 cfb->pad[cfb->padlen] = *ct;
54 *pt = *ct ^ cfb->IV[cfb->padlen];
56 ++ct;
H A Dcfb_encrypt.c23 @param ct [out] Ciphertext
28 int cfb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CFB *cfb) argument
33 LTC_ARGCHK(ct != NULL);
53 cfb->pad[cfb->padlen] = (*ct = *pt ^ cfb->IV[cfb->padlen]);
55 ++ct;
/external/dropbear/libtomcrypt/src/modes/ecb/
H A Decb_decrypt.c22 @param ct Ciphertext
28 int ecb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_ECB *ecb) argument
32 LTC_ARGCHK(ct != NULL);
43 return cipher_descriptor[ecb->cipher].accel_ecb_decrypt(ct, pt, len / cipher_descriptor[ecb->cipher].block_length, &ecb->key);
46 if ((err = cipher_descriptor[ecb->cipher].ecb_decrypt(ct, pt, &ecb->key)) != CRYPT_OK) {
50 ct += cipher_descriptor[ecb->cipher].block_length;
H A Decb_encrypt.c23 @param ct [out] Ciphertext
28 int ecb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_ECB *ecb) argument
32 LTC_ARGCHK(ct != NULL);
43 return cipher_descriptor[ecb->cipher].accel_ecb_encrypt(pt, ct, len / cipher_descriptor[ecb->cipher].block_length, &ecb->key);
46 if ((err = cipher_descriptor[ecb->cipher].ecb_encrypt(pt, ct, &ecb->key)) != CRYPT_OK) {
50 ct += cipher_descriptor[ecb->cipher].block_length;
/external/dropbear/libtomcrypt/src/modes/lrw/
H A Dlrw_decrypt.c22 @param ct The ciphertext
27 int lrw_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_LRW *lrw) argument
32 LTC_ARGCHK(ct != NULL);
40 return cipher_descriptor[lrw->cipher].accel_lrw_decrypt(ct, pt, len, lrw->IV, lrw->tweak, &lrw->key);
43 return lrw_process(ct, pt, len, LRW_DECRYPT, lrw);
H A Dlrw_encrypt.c23 @param ct [out] The ciphertext
27 int lrw_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_LRW *lrw) argument
32 LTC_ARGCHK(ct != NULL);
40 return cipher_descriptor[lrw->cipher].accel_lrw_encrypt(pt, ct, len, lrw->IV, lrw->tweak, &lrw->key);
43 return lrw_process(pt, ct, len, LRW_ENCRYPT, lrw);
H A Dlrw_process.c23 @param ct [out] The "output" data
29 int lrw_process(const unsigned char *pt, unsigned char *ct, unsigned long len, int mode, symmetric_LRW *lrw) argument
38 LTC_ARGCHK(ct != NULL);
78 *((LTC_FAST_TYPE *)(ct + x)) = *((LTC_FAST_TYPE *)(pt + x)) ^ *((LTC_FAST_TYPE *)(prod + x));
82 ct[x] = pt[x] ^ prod[x];
88 if ((err = cipher_descriptor[lrw->cipher].ecb_encrypt(ct, ct, &lrw->key)) != CRYPT_OK) {
92 if ((err = cipher_descriptor[lrw->cipher].ecb_decrypt(ct, ct, &lrw->key)) != CRYPT_OK) {
100 *((LTC_FAST_TYPE *)(ct
[all...]
/external/icu4c/i18n/
H A Dregextxt.cpp17 uregex_utext_unescape_charAt(int32_t offset, void *ct) { argument
18 struct URegexUTextUnescapeCharContext *context = (struct URegexUTextUnescapeCharContext *)ct;
/external/dropbear/libtomcrypt/src/encauth/gcm/
H A Dgcm_process.c25 @param ct The ciphertext
31 unsigned char *ct,
41 LTC_ARGCHK(ct != NULL);
84 *((LTC_FAST_TYPE*)(&ct[x + y])) = *((LTC_FAST_TYPE*)(&pt[x+y])) ^ *((LTC_FAST_TYPE*)(&gcm->buf[y]));
85 *((LTC_FAST_TYPE*)(&gcm->X[y])) ^= *((LTC_FAST_TYPE*)(&ct[x+y]));
102 *((LTC_FAST_TYPE*)(&gcm->X[y])) ^= *((LTC_FAST_TYPE*)(&ct[x+y]));
103 *((LTC_FAST_TYPE*)(&pt[x + y])) = *((LTC_FAST_TYPE*)(&ct[x+y])) ^ *((LTC_FAST_TYPE*)(&gcm->buf[y]));
137 b = ct[x] = pt[x] ^ gcm->buf[gcm->buflen];
139 b = ct[x];
140 pt[x] = ct[
29 gcm_process(gcm_state *gcm, unsigned char *pt, unsigned long ptlen, unsigned char *ct, int direction) argument
[all...]
/external/iptables/include/linux/netfilter/
H A Dxt_CT.h14 struct nf_conn *ct __attribute__((aligned(8))); member in struct:xt_ct_target_info
/external/clang/test/CodeGenCXX/
H A Dinline-functions.cpp46 ClassTemplate<C> ct; local
47 ct.g();

Completed in 623 milliseconds

123456