Lines Matching defs: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. */
156 /* Outputs from DH key pair generation. */
209 uchar_t key[MAX_KEY_ATTR_BUFLEN];
227 if (keylen > sizeof (key)) { /* check for overflow */
239 /* keylen may be modified if it was 0 or conflicts with key type */
240 rv = dh_key_derive(&k, secretkey->key_type, key, &keylen, 0);
252 (void) memcpy(OBJ_SEC_VALUE(secretkey), key, keylen);