Lines Matching refs:public_key
43 const u8 *public_key; member
82 void *public_key; in atmel_ecdh_set_secret() local
87 kfree(ctx->public_key); in atmel_ecdh_set_secret()
89 ctx->public_key = NULL; in atmel_ecdh_set_secret()
111 public_key = kmalloc(ATMEL_ECC_PUBKEY_SIZE, GFP_KERNEL); in atmel_ecdh_set_secret()
112 if (!public_key) in atmel_ecdh_set_secret()
124 memcpy(public_key, &cmd->data[RSP_DATA_IDX], ATMEL_ECC_PUBKEY_SIZE); in atmel_ecdh_set_secret()
125 ctx->public_key = public_key; in atmel_ecdh_set_secret()
131 kfree(public_key); in atmel_ecdh_set_secret()
149 if (!ctx->public_key) in atmel_ecdh_generate_public_key()
158 ctx->public_key, nbytes); in atmel_ecdh_generate_public_key()
277 kfree(ctx->public_key); in atmel_ecdh_exit_tfm()