Lines Matching refs:k
170 static int aes_cmac(struct crypto_shash *tfm, const u8 k[16], const u8 *m, in aes_cmac()
189 swap_buf(k, tmp, 16); in aes_cmac()
193 SMP_DBG("key %16phN", k); in aes_cmac()
365 static int smp_e(struct crypto_cipher *tfm, const u8 *k, u8 *r) in smp_e() argument
370 SMP_DBG("k %16phN r %16phN", k, r); in smp_e()
378 swap_buf(k, tmp, 16); in smp_e()
399 static int smp_c1(struct crypto_cipher *tfm_aes, const u8 k[16], in smp_c1()
406 SMP_DBG("k %16phN r %16phN", k, r); in smp_c1()
424 err = smp_e(tfm_aes, k, res); in smp_c1()
441 err = smp_e(tfm_aes, k, res); in smp_c1()
448 static int smp_s1(struct crypto_cipher *tfm_aes, const u8 k[16], in smp_s1()
457 err = smp_e(tfm_aes, k, _r); in smp_s1()
3464 const u8 k[16] = { in test_c1() local
3482 err = smp_c1(tfm_aes, k, r, preq, pres, _iat, &ia, _rat, &ra, res); in test_c1()
3494 const u8 k[16] = { in test_s1() local
3507 err = smp_s1(tfm_aes, k, r1, r2, res); in test_s1()