Lines Matching refs:privkey
32 ossl_x25519_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private()
36 key->privkey, key->propq)) { in ossl_ecx_public_from_private()
42 ossl_x448_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private()
46 key->privkey, key->propq)) { in ossl_ecx_public_from_private()
75 (void **)&ecx->privkey, ecx->keylen, in ossl_ecx_key_fromdata()
84 OPENSSL_secure_clear_free(ecx->privkey, privkeylen); in ossl_ecx_key_fromdata()
85 ecx->privkey = NULL; in ossl_ecx_key_fromdata()
137 && key->privkey != NULL) { in ossl_ecx_key_dup()
142 memcpy(ret->privkey, key->privkey, ret->keylen); in ossl_ecx_key_dup()
160 unsigned char *privkey, *pubkey; in ossl_ecx_key_op() local
196 privkey = ossl_ecx_key_allocate_privkey(key); in ossl_ecx_key_op()
197 if (privkey == NULL) { in ossl_ecx_key_op()
203 if (RAND_priv_bytes_ex(libctx, privkey, KEYLENID(id), 0) <= 0) in ossl_ecx_key_op()
206 privkey[0] &= 248; in ossl_ecx_key_op()
207 privkey[X25519_KEYLEN - 1] &= 127; in ossl_ecx_key_op()
208 privkey[X25519_KEYLEN - 1] |= 64; in ossl_ecx_key_op()
210 privkey[0] &= 252; in ossl_ecx_key_op()
211 privkey[X448_KEYLEN - 1] |= 128; in ossl_ecx_key_op()
215 memcpy(privkey, p, KEYLENID(id)); in ossl_ecx_key_op()