Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/mac/pelican/
A Dpelican.c35 LTC_ARGCHK(pelmac != NULL); in pelican_init()
49 aes_ecb_encrypt(pelmac->state, pelmac->state, &pelmac->K); in pelican_init()
50 pelmac->buflen = 0; in pelican_init()
107 if (pelmac->buflen < 0 || pelmac->buflen > 15) { in pelican_process()
126 pelmac->state[pelmac->buflen++] ^= *in++; in pelican_process()
147 if (pelmac->buflen < 0 || pelmac->buflen > 16) { in pelican_done()
152 _four_rounds(pelmac); in pelican_done()
153 pelmac->buflen = 0; in pelican_done()
155 pelmac->state[pelmac->buflen++] ^= 0x80; in pelican_done()
156 aes_ecb_encrypt(pelmac->state, out, &pelmac->K); in pelican_done()
[all …]
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h160 int pelican_init(pelican_state *pelmac, const unsigned char *key, unsigned long keylen);
161 int pelican_process(pelican_state *pelmac, const unsigned char *in, unsigned long inlen);
162 int pelican_done(pelican_state *pelmac, unsigned char *out);

Completed in 4 milliseconds