Lines Matching refs:ameth

68         if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL)
69 size = pkey->ameth->pkey_bits(pkey);
80 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL)
81 size = pkey->ameth->pkey_security_bits(pkey);
211 if (from->ameth != NULL && from->ameth->param_copy != NULL)
212 ok = from->ameth->param_copy(to, from);
223 else if (pkey->ameth != NULL && pkey->ameth->param_missing != NULL)
224 return pkey->ameth->param_missing(pkey);
317 if (a->ameth != NULL && a->ameth->param_cmp != NULL)
318 return a->ameth->param_cmp(a, b);
357 if (a->ameth != NULL) {
360 if (a->ameth->param_cmp != NULL) {
361 ret = a->ameth->param_cmp(a, b);
366 if (a->ameth->pub_cmp != NULL)
367 return a->ameth->pub_cmp(a, b);
385 const EVP_PKEY_ASN1_METHOD *ameth = NULL;
394 ameth = EVP_PKEY_asn1_find_str(&tmpe, strtype, -1);
396 ameth = EVP_PKEY_asn1_find(&tmpe, nidtype);
400 ameth = NULL;
406 if (e == NULL && ameth == NULL) {
454 if (!ossl_assert(pkey->ameth != NULL))
458 if (pkey->ameth->set_priv_key == NULL) {
463 if (!pkey->ameth->set_priv_key(pkey, key, len)) {
468 if (pkey->ameth->set_pub_key == NULL) {
473 if (!pkey->ameth->set_pub_key(pkey, key, len)) {
564 if (pkey->ameth == NULL) {
569 if (pkey->ameth->get_priv_key == NULL) {
574 if (!pkey->ameth->get_priv_key(pkey, priv, len)) {
596 if (pkey->ameth == NULL) {
601 if (pkey->ameth->get_pub_key == NULL) {
606 if (!pkey->ameth->get_pub_key(pkey, pub, len)) {
970 const EVP_PKEY_ASN1_METHOD *ameth;
972 ameth = EVP_PKEY_asn1_find(&e, type);
973 if (ameth)
974 ret = ameth->pkey_id;
1194 (pkey->ameth != NULL ? pkey->ameth->pub_print : NULL),
1202 (pkey->ameth != NULL ? pkey->ameth->priv_print : NULL),
1210 (pkey->ameth != NULL ? pkey->ameth->param_print : NULL),
1318 if (pkey->ameth == NULL)
1320 if (pkey->ameth->pkey_ctrl == NULL)
1322 return pkey->ameth->pkey_ctrl(pkey, op, arg1, arg2);
1335 if (pkey->ameth == NULL)
1493 const EVP_PKEY_ASN1_METHOD *ameth = NULL;
1523 && pkey->ameth != NULL)
1536 ameth = EVP_PKEY_asn1_find_str(eptr, str, len);
1538 ameth = EVP_PKEY_asn1_find(eptr, type);
1550 check = check && ameth == NULL;
1571 * If the internal "origin" key is provider side, don't save |ameth|.
1572 * The main reason is that |ameth| is one factor to detect that the
1576 pkey->ameth = ameth;
1586 if (ameth != NULL) {
1588 pkey->type = ameth->pkey_id;
1692 const EVP_PKEY_ASN1_METHOD *ameth = pkey->ameth;
1694 if (ameth == NULL || ameth->copy == NULL) {
1701 if (!ameth->copy(dup_pk, pkey))
1725 const EVP_PKEY_ASN1_METHOD *ameth = x->ameth;
1728 if (ameth == NULL && x->legacy_cache_pkey.ptr != NULL)
1729 ameth = EVP_PKEY_asn1_find(&tmpe, x->type);
1731 if (ameth != NULL) {
1745 if (ameth->pkey_free != NULL)
1746 ameth->pkey_free(x);
1806 if (pkey->ameth != NULL && pkey->ameth->pkey_size != NULL)
1807 size = pkey->ameth->pkey_size(pkey);
1821 if (pkey->ameth != NULL)
1822 return pkey->ameth->info;
1855 if (pk->ameth->dirty_cnt == NULL || pk->ameth->export_to == NULL)
1892 if (pk->ameth->dirty_cnt(pk) == pk->dirty_cnt_copy) {
1919 if (!pk->ameth->export_to(pk, keydata, tmp_keymgmt->import,
1940 if (pk->ameth->dirty_cnt(pk) != pk->dirty_cnt_copy
1971 pk->dirty_cnt_copy = pk->ameth->dirty_cnt(pk);
2047 if ((*dest)->ameth->import_from == NULL) {
2066 (*dest)->ameth->import_from,
2069 (*dest)->dirty_cnt_copy = (*dest)->ameth->dirty_cnt(*dest);