Lines Matching refs:tmp
64 u8 *tmp; in compute_ecdh_secret() local
69 tmp = kmalloc(64, GFP_KERNEL); in compute_ecdh_secret()
70 if (!tmp) in compute_ecdh_secret()
81 swap_digits((u64 *)public_key, (u64 *)tmp, 4); /* x */ in compute_ecdh_secret()
82 swap_digits((u64 *)&public_key[32], (u64 *)&tmp[32], 4); /* y */ in compute_ecdh_secret()
84 sg_init_one(&src, tmp, 64); in compute_ecdh_secret()
101 swap_digits((u64 *)secret, (u64 *)tmp, 4); in compute_ecdh_secret()
102 memcpy(secret, tmp, 32); in compute_ecdh_secret()
107 kzfree(tmp); in compute_ecdh_secret()
124 u8 *buf, *tmp = NULL; in set_ecdh_privkey() local
132 tmp = kmalloc(32, GFP_KERNEL); in set_ecdh_privkey()
133 if (!tmp) in set_ecdh_privkey()
135 swap_digits((u64 *)private_key, (u64 *)tmp, 4); in set_ecdh_privkey()
136 p.key = tmp; in set_ecdh_privkey()
156 kzfree(tmp); in set_ecdh_privkey()
171 u8 *tmp; in generate_ecdh_public_key() local
176 tmp = kmalloc(64, GFP_KERNEL); in generate_ecdh_public_key()
177 if (!tmp) in generate_ecdh_public_key()
187 sg_init_one(&dst, tmp, 64); in generate_ecdh_public_key()
204 swap_digits((u64 *)tmp, (u64 *)public_key, 4); /* x */ in generate_ecdh_public_key()
205 swap_digits((u64 *)&tmp[32], (u64 *)&public_key[32], 4); /* y */ in generate_ecdh_public_key()
210 kfree(tmp); in generate_ecdh_public_key()