Lines Matching defs:key
61 if (ecc_ctx->key != NULL) {
62 soft_cleanup_object(ecc_ctx->key);
63 free(ecc_ctx->key);
72 soft_free_ecprivkey(ECPrivateKey *key)
74 soft_free_ecparams(&key->ecParams, B_FALSE);
79 SECITEM_FreeItem(&key->version, B_FALSE);
80 free(key);
126 * into the corresponding key object.
129 soft_genECkey_set_attribute(soft_object_t *key, biginteger_t *bi,
136 dst = OBJ_PRI_EC_VALUE(key);
140 dst = OBJ_PUB_EC_POINT(key);
175 /* private key also has CKA_EC_PARAMS attribute */
359 * Make a copy of the signature or verification key, and save it
362 * on this original key while doing signing/verification.
392 ecc_ctx->key = tmp_key;
470 soft_object_t *key = ecc_ctx->key;
477 if ((key->class != CKO_PRIVATE_KEY) || (key->key_type != CKK_EC)) {
491 rv = soft_get_private_value(key, CKA_VALUE, value, &value_len);
535 soft_object_t *key = ecc_ctx->key;
542 if ((key->class != CKO_PUBLIC_KEY) ||(key->key_type != CKK_EC)) {
563 rv = soft_get_public_key_attribute(key, &template);
619 * soft_ecc_verify() will free the verification key.