Lines Matching refs:key

80 	 * Make a copy of the signature or verification key, and save it
83 * on this original key while doing signing/verification.
98 dsa_ctx->key = tmp_key;
117 local_dsa_sign(soft_object_t *key, CK_BYTE_PTR in, CK_ULONG inlen,
131 rv = soft_get_private_value(key, CKA_PRIME, p, &plen);
136 rv = soft_get_private_value(key, CKA_SUBPRIME, q, &qlen);
141 rv = soft_get_private_value(key, CKA_BASE, g, &glen);
146 rv = soft_get_private_value(key, CKA_VALUE, x, &xlen);
168 local_dsa_verify(soft_object_t *key, CK_BYTE_PTR data, CK_BYTE_PTR sig)
181 rv = soft_get_public_value(key, CKA_PRIME, p, &plen);
186 rv = soft_get_public_value(key, CKA_SUBPRIME, q, &qlen);
191 rv = soft_get_public_value(key, CKA_BASE, g, &glen);
196 rv = soft_get_public_value(key, CKA_VALUE, y, &ylen);
228 soft_object_t *key = dsa_ctx->key;
251 /* free the signature key */
252 soft_cleanup_object(key);
253 free(key);
259 * soft_dsa_sign() will free the signature key.
282 soft_object_t *key = dsa_ctx->key;
284 if ((key->class != CKO_PRIVATE_KEY) || (key->key_type != CKK_DSA)) {
307 rv = local_dsa_sign(key, pData, ulDataLen, pSigned);
317 soft_cleanup_object(key);
318 free(key);
331 soft_object_t *key = dsa_ctx->key;
333 if ((key->class != CKO_PUBLIC_KEY) ||(key->key_type != CKK_DSA)) {
350 rv = local_dsa_verify(key, pData, pSignature);
357 soft_cleanup_object(key);
358 free(key);
373 soft_object_t *key = dsa_ctx->key;
382 /* free the verification key */
383 soft_cleanup_object(key);
384 free(key);
390 * soft_dsa_verify() will free the verification key.
405 soft_genDSAkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type,
417 dst = OBJ_PUB_DSA_VALUE(key);
419 dst = OBJ_PRI_DSA_VALUE(key);
424 dst = OBJ_PUB_DSA_PRIME(key);
426 dst = OBJ_PRI_DSA_PRIME(key);
431 dst = OBJ_PUB_DSA_SUBPRIME(key);
433 dst = OBJ_PRI_DSA_SUBPRIME(key);
438 dst = OBJ_PUB_DSA_BASE(key);
440 dst = OBJ_PRI_DSA_BASE(key);
453 /* Copy the attribute in the key object. */
503 /* Inputs to DSA key pair generation. */
513 /* Outputs from DSA key pair generation. */
525 /* Update attribute in public key. */
530 /* Update attributes in private key. */