Searched refs:aesgcm_tv (Results 1 – 1 of 1) sorted by relevance
| /linux/lib/crypto/ |
| H A D | aesgcm.c | 569 } const aesgcm_tv[] __initconst = { variable 695 for (int i = 0; i < ARRAY_SIZE(aesgcm_tv); i++) { in libaesgcm_init() 697 int plen = aesgcm_tv[i].plen; in libaesgcm_init() 701 if (aesgcm_expandkey(&ctx, aesgcm_tv[i].key, aesgcm_tv[i].klen, in libaesgcm_init() 702 aesgcm_tv[i].clen - plen)) { in libaesgcm_init() 707 if (!aesgcm_decrypt(&ctx, buf, aesgcm_tv[i].ctext, plen, in libaesgcm_init() 708 aesgcm_tv[i].assoc, aesgcm_tv[i].alen, in libaesgcm_init() 709 aesgcm_tv[i].iv, aesgcm_tv[i].ctext + plen) in libaesgcm_init() 710 || memcmp(buf, aesgcm_tv[i].ptext, plen)) { in libaesgcm_init() 716 aesgcm_encrypt(&ctx, buf, buf, plen, aesgcm_tv[i].assoc, in libaesgcm_init() [all …]
|