Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/pelican/
A Dpelican.c28 LTC_ARGCHK(pelmac != NULL); in pelican_init()
41 zeromem(pelmac->state, 16); in pelican_init()
42 aes_ecb_encrypt(pelmac->state, pelmac->state, &pelmac->K); in pelican_init()
43 pelmac->buflen = 0; in pelican_init()
100 if (pelmac->buflen < 0 || pelmac->buflen > 15) { in pelican_process()
119 pelmac->state[pelmac->buflen++] ^= *in++; in pelican_process()
140 if (pelmac->buflen < 0 || pelmac->buflen > 16) { in pelican_done()
146 pelmac->buflen = 0; in pelican_done()
148 pelmac->state[pelmac->buflen++] ^= 0x80; in pelican_done()
149 aes_ecb_encrypt(pelmac->state, out, &pelmac->K); in pelican_done()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h164 int pelican_init(pelican_state *pelmac, const unsigned char *key, unsigned long keylen);
165 int pelican_process(pelican_state *pelmac, const unsigned char *in, unsigned long inlen);
166 int pelican_done(pelican_state *pelmac, unsigned char *out);

Completed in 5 milliseconds