• Home
  • Raw
  • Download

Lines Matching refs:pkey

103 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)  in eckey_pub_encode()  argument
105 EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode()
190 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) in eckey_pub_decode() argument
217 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode()
229 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp()
230 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp()
231 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp()
240 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) in eckey_priv_decode() argument
301 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_priv_decode()
312 static int eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in eckey_priv_encode() argument
320 ec_key = pkey->pkey.ec; in eckey_priv_encode()
366 static int int_ec_size(const EVP_PKEY *pkey) in int_ec_size() argument
368 return ECDSA_size(pkey->pkey.ec); in int_ec_size()
371 static int ec_bits(const EVP_PKEY *pkey) in ec_bits() argument
382 group = EC_KEY_get0_group(pkey->pkey.ec); in ec_bits()
394 static int ec_missing_parameters(const EVP_PKEY *pkey) in ec_missing_parameters() argument
396 if (EC_KEY_get0_group(pkey->pkey.ec) == NULL) in ec_missing_parameters()
403 EC_GROUP *group = EC_GROUP_dup(EC_KEY_get0_group(from->pkey.ec)); in ec_copy_parameters()
406 if (EC_KEY_set_group(to->pkey.ec, group) == 0) in ec_copy_parameters()
414 const EC_GROUP *group_a = EC_KEY_get0_group(a->pkey.ec), in ec_cmp_parameters()
415 *group_b = EC_KEY_get0_group(b->pkey.ec); in ec_cmp_parameters()
422 static void int_ec_free(EVP_PKEY *pkey) in int_ec_free() argument
424 EC_KEY_free(pkey->pkey.ec); in int_ec_free()
522 static int eckey_param_decode(EVP_PKEY *pkey, in eckey_param_decode() argument
531 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_param_decode()
535 static int eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) in eckey_param_encode() argument
537 return i2d_ECParameters(pkey->pkey.ec, pder); in eckey_param_encode()
540 static int eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in eckey_param_print() argument
543 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 0); in eckey_param_print()
546 static int eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in eckey_pub_print() argument
549 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 1); in eckey_pub_print()
553 static int eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in eckey_priv_print() argument
556 return do_EC_KEY_print(bp, pkey->pkey.ec, indent, 2); in eckey_priv_print()
559 static int old_ec_priv_decode(EVP_PKEY *pkey, in old_ec_priv_decode() argument
568 EVP_PKEY_assign_EC_KEY(pkey, ec); in old_ec_priv_decode()
572 static int old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) in old_ec_priv_encode() argument
574 return i2d_ECPrivateKey(pkey->pkey.ec, pder); in old_ec_priv_encode()
577 static int ec_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) in ec_pkey_ctrl() argument
592 if (!OBJ_find_sigid_by_algs(&snid, hnid, EVP_PKEY_id(pkey))) in ec_pkey_ctrl()
610 if (!OBJ_find_sigid_by_algs(&snid, hnid, EVP_PKEY_id(pkey))) in ec_pkey_ctrl()