Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/encauth/ocb/
H A Docb_done_decrypt.c29 unsigned char *tagbuf; in ocb_done_decrypt() local
42 tagbuf = XMALLOC(MAXBLOCKSIZE); in ocb_done_decrypt()
43 if (tagbuf == NULL) { in ocb_done_decrypt()
48 if ((err = s_ocb_done(ocb, ct, ctlen, pt, tagbuf, &tagbuflen, 1)) != CRYPT_OK) { in ocb_done_decrypt()
52 if (taglen <= tagbuflen && XMEM_NEQ(tagbuf, tag, taglen) == 0) { in ocb_done_decrypt()
59 zeromem(tagbuf, MAXBLOCKSIZE); in ocb_done_decrypt()
62 XFREE(tagbuf); in ocb_done_decrypt()