Lines Matching refs:key
43 * as an octet string and stores it in the corresponding key object.
46 soft_genDHkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type,
58 dst = OBJ_PUB_DH_VALUE(key);
60 dst = OBJ_PRI_DH_VALUE(key);
64 dst = OBJ_PRI_DH_PRIME(key);
68 dst = OBJ_PRI_DH_BASE(key);
75 /* Copy the attribute in the key object. */
147 /* Inputs to DH key pair generation. */
157 /* Outputs from DH key pair generation. */
210 uchar_t key[MAX_KEY_ATTR_BUFLEN];
228 if (keylen > sizeof (key)) { /* check for overflow */
241 /* keylen may be modified if it was 0 or conflicts with key type */
242 rv = dh_key_derive(&k, secretkey->key_type, key, &keylen);
254 (void) memcpy(OBJ_SEC_VALUE(secretkey), key, keylen);