mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 10:46:51 -07:00
Fix MAC for Messages
This commit is contained in:
parent
8c158815e7
commit
77c11cadbc
3 changed files with 5 additions and 1 deletions
|
@ -184,7 +184,7 @@ static MunitResult test_gmac(const MunitParameter params[], void *user)
|
|||
memcpy(gkcrypt.iv, gkcrypt_iv, sizeof(gkcrypt.iv));
|
||||
gkcrypt.key_buf = NULL;
|
||||
gkcrypt.key_buf_size = 0;
|
||||
gkcrypt.key_gmac_index_next = 1;
|
||||
gkcrypt.key_gmac_index_current = 0;
|
||||
|
||||
uint8_t gmac[CHIAKI_GKCRYPT_GMAC_SIZE];
|
||||
ChiakiErrorCode err = chiaki_gkcrypt_gmac(&gkcrypt, key_pos, buf, sizeof(buf), gmac);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue