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/
H A Dpelican.c24 int pelican_init(pelican_state *pelmac, const unsigned char *key, unsigned long keylen) in pelican_init() argument
28 LTC_ARGCHK(pelmac != NULL); in pelican_init()
37 if ((err = aes_setup(key, keylen, 0, &pelmac->K)) != CRYPT_OK) { 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()
48 static void s_four_rounds(pelican_state *pelmac) in s_four_rounds() argument
53 LOAD32H(s0, pelmac->state ); in s_four_rounds()
54 LOAD32H(s1, pelmac->state + 4); in s_four_rounds()
55 LOAD32H(s2, pelmac->state + 8); in s_four_rounds()
[all …]
/optee_os/core/lib/libtomcrypt/src/headers/
H 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);