Home
last modified time | relevance | path

Searched refs:ctlen (Results 1 – 11 of 11) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb/
A Docb_decrypt_verify_memory.c29 const unsigned char *ct, unsigned long ctlen, in ocb_decrypt_verify_memory() argument
54 while (ctlen > (unsigned long)ocb->block_len) { in ocb_decrypt_verify_memory()
58 ctlen -= ocb->block_len; in ocb_decrypt_verify_memory()
63 err = ocb_done_decrypt(ocb, ct, ctlen, pt, tag, taglen, stat); in ocb_decrypt_verify_memory()
A Docb_done_decrypt.c24 const unsigned char *ct, unsigned long ctlen, in ocb_done_decrypt() argument
48 if ((err = s_ocb_done(ocb, ct, ctlen, pt, tagbuf, &tagbuflen, 1)) != CRYPT_OK) { in ocb_done_decrypt()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_decrypt.c20 int ocb3_decrypt(ocb3_state *ocb, const unsigned char *ct, unsigned long ctlen, unsigned char *pt) in ocb3_decrypt() argument
27 if (ctlen == 0) return CRYPT_OK; /* no data, nothing to do */ in ocb3_decrypt()
38 if (ctlen % ocb->block_len) { /* ctlen has to bu multiple of block_len */ in ocb3_decrypt()
42 full_blocks = ctlen/ocb->block_len; in ocb3_decrypt()
A Docb3_decrypt_last.c20 int ocb3_decrypt_last(ocb3_state *ocb, const unsigned char *ct, unsigned long ctlen, unsigned char … in ocb3_decrypt_last() argument
27 if (ct == NULL) LTC_ARGCHK(ctlen == 0); in ocb3_decrypt_last()
28 if (ctlen != 0) { in ocb3_decrypt_last()
37 full_blocks = ctlen/ocb->block_len; in ocb3_decrypt_last()
39 last_block_len = ctlen - full_blocks_len; in ocb3_decrypt_last()
A Docb3_decrypt_verify_memory.c33 const unsigned char *ct, unsigned long ctlen, in ocb3_decrypt_verify_memory() argument
74 if ((err = ocb3_decrypt_last(ocb, ct, ctlen, pt)) != CRYPT_OK) { in ocb3_decrypt_verify_memory()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/
A Dchacha20poly1305_done.c24 padlen = 16 - (unsigned long)(st->ctlen % 16); in chacha20poly1305_done()
29 STORE64L(st->ctlen, buf + 8); in chacha20poly1305_done()
A Dchacha20poly1305_encrypt.c33 st->ctlen += (ulong64)inlen; in chacha20poly1305_encrypt()
A Dchacha20poly1305_decrypt.c34 st->ctlen += (ulong64)inlen; in chacha20poly1305_decrypt()
A Dchacha20poly1305_setiv.c51 st->ctlen = 0; in chacha20poly1305_setiv()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/eax/
A Deax_decrypt_verify_memory.c33 const unsigned char *ct, unsigned long ctlen, in eax_decrypt_verify_memory() argument
72 if ((err = eax_decrypt(eax, ct, pt, ctlen)) != CRYPT_OK) { in eax_decrypt_verify_memory()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h283 const unsigned char *ct, unsigned long ctlen,
318 const unsigned char *ct, unsigned long ctlen,
332 const unsigned char *ct, unsigned long ctlen,
377 int ocb3_decrypt(ocb3_state *ocb, const unsigned char *ct, unsigned long ctlen, unsigned char *pt);
379 int ocb3_decrypt_last(ocb3_state *ocb, const unsigned char *ct, unsigned long ctlen, unsigned char …
395 const unsigned char *ct, unsigned long ctlen,
544 ulong64 ctlen; member

Completed in 8 milliseconds