tfm_cmac           92 net/bluetooth/smp.c 	struct crypto_shash	*tfm_cmac;
tfm_cmac          130 net/bluetooth/smp.c 	struct crypto_shash	*tfm_cmac;
tfm_cmac          213 net/bluetooth/smp.c static int smp_f4(struct crypto_shash *tfm_cmac, const u8 u[32],
tfm_cmac          227 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, x, m, sizeof(m), res);
tfm_cmac          236 net/bluetooth/smp.c static int smp_f5(struct crypto_shash *tfm_cmac, const u8 w[32],
tfm_cmac          257 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, salt, w, 32, t);
tfm_cmac          272 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, t, m, sizeof(m), mackey);
tfm_cmac          280 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk);
tfm_cmac          289 net/bluetooth/smp.c static int smp_f6(struct crypto_shash *tfm_cmac, const u8 w[16],
tfm_cmac          308 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, w, m, sizeof(m), res);
tfm_cmac          317 net/bluetooth/smp.c static int smp_g2(struct crypto_shash *tfm_cmac, const u8 u[32], const u8 v[32],
tfm_cmac          331 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, x, m, sizeof(m), tmp);
tfm_cmac          343 net/bluetooth/smp.c static int smp_h6(struct crypto_shash *tfm_cmac, const u8 w[16],
tfm_cmac          350 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, w, key_id, 4, res);
tfm_cmac          359 net/bluetooth/smp.c static int smp_h7(struct crypto_shash *tfm_cmac, const u8 w[16],
tfm_cmac          366 net/bluetooth/smp.c 	err = aes_cmac(tfm_cmac, salt, w, 16, res);
tfm_cmac          587 net/bluetooth/smp.c 	err = smp_f4(smp->tfm_cmac, smp->local_pk, smp->local_pk,
tfm_cmac          766 net/bluetooth/smp.c 	crypto_free_shash(smp->tfm_cmac);
tfm_cmac         1157 net/bluetooth/smp.c 		if (smp_h7(smp->tfm_cmac, smp->tk, salt, smp->link_key)) {
tfm_cmac         1166 net/bluetooth/smp.c 		if (smp_h6(smp->tfm_cmac, smp->tk, tmp1, smp->link_key)) {
tfm_cmac         1173 net/bluetooth/smp.c 	if (smp_h6(smp->tfm_cmac, smp->link_key, lebr, smp->link_key)) {
tfm_cmac         1215 net/bluetooth/smp.c 		if (smp_h7(smp->tfm_cmac, key->val, salt, smp->tk))
tfm_cmac         1221 net/bluetooth/smp.c 		if (smp_h6(smp->tfm_cmac, key->val, tmp2, smp->tk))
tfm_cmac         1225 net/bluetooth/smp.c 	if (smp_h6(smp->tfm_cmac, smp->tk, brle, smp->tk))
tfm_cmac         1383 net/bluetooth/smp.c 	smp->tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
tfm_cmac         1384 net/bluetooth/smp.c 	if (IS_ERR(smp->tfm_cmac)) {
tfm_cmac         1407 net/bluetooth/smp.c 	crypto_free_shash(smp->tfm_cmac);
tfm_cmac         1431 net/bluetooth/smp.c 	return smp_f5(smp->tfm_cmac, smp->dhkey, na, nb, a, b, mackey, ltk);
tfm_cmac         1464 net/bluetooth/smp.c 	smp_f6(smp->tfm_cmac, smp->mackey, smp->prnd, smp->rrnd, r, io_cap,
tfm_cmac         1482 net/bluetooth/smp.c 	if (smp_f4(smp->tfm_cmac, smp->local_pk, smp->remote_pk, smp->prnd, r,
tfm_cmac         1507 net/bluetooth/smp.c 		if (smp_f4(smp->tfm_cmac, smp->remote_pk, smp->local_pk,
tfm_cmac         2166 net/bluetooth/smp.c 		err = smp_f4(smp->tfm_cmac, smp->remote_pk, smp->local_pk,
tfm_cmac         2193 net/bluetooth/smp.c 	err = smp_g2(smp->tfm_cmac, pkax, pkbx, na, nb, &passkey);
tfm_cmac         2691 net/bluetooth/smp.c 		err = smp_f4(smp->tfm_cmac, smp->remote_pk, smp->remote_pk,
tfm_cmac         2792 net/bluetooth/smp.c 	err = smp_f4(smp->tfm_cmac, smp->local_pk, smp->remote_pk, smp->prnd,
tfm_cmac         2840 net/bluetooth/smp.c 	err = smp_f6(smp->tfm_cmac, smp->mackey, smp->rrnd, smp->prnd, r,
tfm_cmac         3218 net/bluetooth/smp.c 	struct crypto_shash *tfm_cmac;
tfm_cmac         3230 net/bluetooth/smp.c 	tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
tfm_cmac         3231 net/bluetooth/smp.c 	if (IS_ERR(tfm_cmac)) {
tfm_cmac         3234 net/bluetooth/smp.c 		return ERR_CAST(tfm_cmac);
tfm_cmac         3240 net/bluetooth/smp.c 		crypto_free_shash(tfm_cmac);
tfm_cmac         3246 net/bluetooth/smp.c 	smp->tfm_cmac = tfm_cmac;
tfm_cmac         3253 net/bluetooth/smp.c 			crypto_free_shash(smp->tfm_cmac);
tfm_cmac         3300 net/bluetooth/smp.c 		crypto_free_shash(smp->tfm_cmac);
tfm_cmac         3630 net/bluetooth/smp.c static int __init test_f4(struct crypto_shash *tfm_cmac)
tfm_cmac         3652 net/bluetooth/smp.c 	err = smp_f4(tfm_cmac, u, v, x, z, res);
tfm_cmac         3662 net/bluetooth/smp.c static int __init test_f5(struct crypto_shash *tfm_cmac)
tfm_cmac         3686 net/bluetooth/smp.c 	err = smp_f5(tfm_cmac, w, n1, n2, a1, a2, mackey, ltk);
tfm_cmac         3699 net/bluetooth/smp.c static int __init test_f6(struct crypto_shash *tfm_cmac)
tfm_cmac         3722 net/bluetooth/smp.c 	err = smp_f6(tfm_cmac, w, n1, n2, r, io_cap, a1, a2, res);
tfm_cmac         3732 net/bluetooth/smp.c static int __init test_g2(struct crypto_shash *tfm_cmac)
tfm_cmac         3754 net/bluetooth/smp.c 	err = smp_g2(tfm_cmac, u, v, x, y, &val);
tfm_cmac         3764 net/bluetooth/smp.c static int __init test_h6(struct crypto_shash *tfm_cmac)
tfm_cmac         3776 net/bluetooth/smp.c 	err = smp_h6(tfm_cmac, w, key_id, res);
tfm_cmac         3801 net/bluetooth/smp.c static int __init run_selftests(struct crypto_shash *tfm_cmac,
tfm_cmac         3834 net/bluetooth/smp.c 	err = test_f4(tfm_cmac);
tfm_cmac         3840 net/bluetooth/smp.c 	err = test_f5(tfm_cmac);
tfm_cmac         3846 net/bluetooth/smp.c 	err = test_f6(tfm_cmac);
tfm_cmac         3852 net/bluetooth/smp.c 	err = test_g2(tfm_cmac);
tfm_cmac         3858 net/bluetooth/smp.c 	err = test_h6(tfm_cmac);
tfm_cmac         3885 net/bluetooth/smp.c 	struct crypto_shash *tfm_cmac;
tfm_cmac         3889 net/bluetooth/smp.c 	tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
tfm_cmac         3890 net/bluetooth/smp.c 	if (IS_ERR(tfm_cmac)) {
tfm_cmac         3892 net/bluetooth/smp.c 		return PTR_ERR(tfm_cmac);
tfm_cmac         3898 net/bluetooth/smp.c 		crypto_free_shash(tfm_cmac);
tfm_cmac         3902 net/bluetooth/smp.c 	err = run_selftests(tfm_cmac, tfm_ecdh);
tfm_cmac         3904 net/bluetooth/smp.c 	crypto_free_shash(tfm_cmac);