mirror of
https://github.com/Decscots/Lockpick_RCM.git
synced 2025-06-21 16:27:19 +02:00
keys: Move more logic out of keys.c
This commit is contained in:
parent
cbab1ec5b0
commit
cc4f8bf1f6
11 changed files with 615 additions and 491 deletions
|
@ -122,7 +122,7 @@ static void _ghash(u32 ks, void *dst, const void *src, u32 src_size, const void
|
|||
memcpy(dst, x, 0x10);
|
||||
}
|
||||
|
||||
void _calc_gmac(u32 ks, void *out_gmac, const void *data, u32 size, const void *key, const void *iv) {
|
||||
void calc_gmac(u32 ks, void *out_gmac, const void *data, u32 size, const void *key, const void *iv) {
|
||||
u32 j_block[4] = {0};
|
||||
se_aes_key_set(ks, key, 0x10);
|
||||
_ghash(ks, j_block, iv, 0x10, NULL, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue