/freebsd-current/crypto/openssl/crypto/evp/ |
H A D | p_legacy.c | 25 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) argument 27 int ret = EVP_PKEY_assign_RSA(pkey, key); 34 RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey) argument 36 if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) { 40 return evp_pkey_get_legacy((EVP_PKEY *)pkey); 43 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) argument 45 return evp_pkey_get0_RSA_int(pkey); 48 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) argument 50 RSA *ret = evp_pkey_get0_RSA_int(pkey); 58 EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) argument 69 evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey) argument 78 EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) argument 83 EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) argument [all...] |
H A D | p_lib.c | 53 static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, 62 int EVP_PKEY_get_bits(const EVP_PKEY *pkey) argument 66 if (pkey != NULL) { 67 size = pkey->cache.bits; 68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) 69 size = pkey->ameth->pkey_bits(pkey); 74 int EVP_PKEY_get_security_bits(const EVP_PKEY *pkey) argument 78 if (pkey ! 86 EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) argument 218 EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) argument 383 EVP_PKEY *pkey = NULL; local 550 EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv, size_t *len) argument 582 EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub, size_t *len) argument 625 EVP_PKEY *pkey = NULL; local 680 EVP_PKEY_set_type(EVP_PKEY *pkey, int type) argument 685 EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) argument 691 EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e) argument 709 EVP_PKEY_get0_engine(const EVP_PKEY *pkey) argument 716 detect_foreign_key(EVP_PKEY *pkey) argument 750 EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) argument 784 EVP_PKEY_get0(const EVP_PKEY *pkey) argument 795 EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len) argument 811 EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len) argument 828 EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len) argument 846 evp_pkey_get0_DSA_int(const EVP_PKEY *pkey) argument 855 EVP_PKEY_get0_DSA(const EVP_PKEY *pkey) argument 860 EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) argument 867 EVP_PKEY_get1_DSA(EVP_PKEY *pkey) argument 878 evp_pkey_get0_ECX_KEY(const EVP_PKEY *pkey, int type) argument 887 evp_pkey_get1_ECX_KEY(EVP_PKEY *pkey, int type) argument 945 evp_pkey_get0_DH_int(const EVP_PKEY *pkey) argument 954 EVP_PKEY_get0_DH(const EVP_PKEY *pkey) argument 959 EVP_PKEY_get1_DH(EVP_PKEY *pkey) argument 985 EVP_PKEY_get_id(const EVP_PKEY *pkey) argument 990 EVP_PKEY_get_base_id(const EVP_PKEY *pkey) argument 1049 EVP_PKEY_is_a(const EVP_PKEY *pkey, const char *name) argument 1058 EVP_PKEY_type_names_do_all(const EVP_PKEY *pkey, void (*fn)(const char *name, void *data), void *data) argument 1074 EVP_PKEY_can_sign(const EVP_PKEY *pkey) argument 1150 unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) argument 1158 print_pkey(const EVP_PKEY *pkey, BIO *out, int indent, int selection , const char *propquery , int (*legacy_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), ASN1_PCTX *legacy_pctx ) argument 1193 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 1201 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 1209 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 1218 EVP_PKEY_print_public_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 1231 EVP_PKEY_print_private_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 1244 EVP_PKEY_print_params_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument 1270 legacy_asn1_ctrl_to_param(EVP_PKEY *pkey, int op, int arg1, void *arg2) argument 1319 evp_pkey_asn1_ctrl(EVP_PKEY *pkey, int op, int arg1, void *arg2) argument 1328 EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) argument 1335 EVP_PKEY_get_default_digest_name(EVP_PKEY *pkey, char *mdname, size_t mdname_sz) argument 1354 EVP_PKEY_get_group_name(const EVP_PKEY *pkey, char *gname, size_t gname_sz, size_t *gname_len) argument 1361 EVP_PKEY_digestsign_supports_digest(EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, const char *name, const char *propq) argument 1379 EVP_PKEY_set1_encoded_public_key(EVP_PKEY *pkey, const unsigned char *pub, size_t publen) argument 1399 EVP_PKEY_get1_encoded_public_key(EVP_PKEY *pkey, unsigned char **ppub) argument 1492 pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, int len, EVP_KEYMGMT *keymgmt) argument 1630 EVP_PKEY_set_type_by_keymgmt(EVP_PKEY *pkey, EVP_KEYMGMT *keymgmt) argument 1659 EVP_PKEY_up_ref(EVP_PKEY *pkey) argument 1672 EVP_PKEY_dup(EVP_PKEY *pkey) argument 1802 EVP_PKEY_get_size(const EVP_PKEY *pkey) argument 1816 EVP_PKEY_get0_description(const EVP_PKEY *pkey) argument 2146 EVP_PKEY_get_bn_param(const EVP_PKEY *pkey, const char *key_name, BIGNUM **bn) argument 2195 EVP_PKEY_get_octet_string_param(const EVP_PKEY *pkey, const char *key_name, unsigned char *buf, size_t max_buf_sz, size_t *out_len) argument 2214 EVP_PKEY_get_utf8_string_param(const EVP_PKEY *pkey, const char *key_name, char *str, size_t max_buf_sz, size_t *out_len) argument 2241 EVP_PKEY_get_int_param(const EVP_PKEY *pkey, const char *key_name, int *out) argument 2255 EVP_PKEY_get_size_t_param(const EVP_PKEY *pkey, const char *key_name, size_t *out) argument 2269 EVP_PKEY_set_int_param(EVP_PKEY *pkey, const char *key_name, int in) argument 2281 EVP_PKEY_set_size_t_param(EVP_PKEY *pkey, const char *key_name, size_t in) argument 2293 EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name, const BIGNUM *bn) argument 2317 EVP_PKEY_set_utf8_string_param(EVP_PKEY *pkey, const char *key_name, const char *str) argument 2330 EVP_PKEY_set_octet_string_param(EVP_PKEY *pkey, const char *key_name, const unsigned char *buf, size_t bsize) argument 2344 EVP_PKEY_settable_params(const EVP_PKEY *pkey) argument 2351 EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]) argument 2376 EVP_PKEY_gettable_params(const EVP_PKEY *pkey) argument 2383 EVP_PKEY_get_params(const EVP_PKEY *pkey, OSSL_PARAM params[]) argument 2398 EVP_PKEY_get_ec_point_conv_form(const EVP_PKEY *pkey) argument 2438 EVP_PKEY_get_field_type(const EVP_PKEY *pkey) argument [all...] |
H A D | pmeth_check.c | 37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, 49 EVP_PKEY *pkey = ctx->pkey; local 52 if (pkey == NULL) { 61 if (pkey->type == EVP_PKEY_NONE) 68 return ctx->pmeth->public_check(pkey); 71 if (pkey->ameth == NULL || pkey->ameth->pkey_public_check == NULL) 74 return pkey->ameth->pkey_public_check(pkey); 93 EVP_PKEY *pkey = ctx->pkey; local 138 EVP_PKEY *pkey = ctx->pkey; local 162 EVP_PKEY *pkey = ctx->pkey; local [all...] |
H A D | evp_pkey.c | 27 EVP_PKEY *pkey = NULL; local 34 if ((pkey = EVP_PKEY_new()) == NULL) { 39 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid))) { 46 if (pkey->ameth->priv_decode_ex != NULL) { 47 if (!pkey->ameth->priv_decode_ex(pkey, p8, libctx, propq)) 49 } else if (pkey->ameth->priv_decode != NULL) { 50 if (!pkey->ameth->priv_decode(pkey, p8)) { 59 return pkey; 69 EVP_PKEY *pkey = NULL; local 103 EVP_PKEY2PKCS8(const EVP_PKEY *pkey) argument [all...] |
H A D | p_sign.c | 18 unsigned int *siglen, EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, 47 sltmp = (size_t)EVP_PKEY_get_size(pkey); 49 pkctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); 66 unsigned int *siglen, EVP_PKEY *pkey) 68 return EVP_SignFinal_ex(ctx, sigret, siglen, pkey, NULL, NULL); 17 EVP_SignFinal_ex(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, const char *propq) argument 65 EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey) argument
|
/freebsd-current/crypto/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 29 static int dsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) argument 77 EVP_PKEY_assign_DSA(pkey, dsa); 87 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument 97 dsa = pkey->pkey.dsa; 98 if (pkey->save_parameters 150 static int dsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) argument 157 EVP_PKEY_assign_DSA(pkey, dsa); 163 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument 170 if (pkey 218 int_dsa_size(const EVP_PKEY *pkey) argument 223 dsa_bits(const EVP_PKEY *pkey) argument 228 dsa_security_bits(const EVP_PKEY *pkey) argument 233 dsa_missing_parameters(const EVP_PKEY *pkey) argument 267 int_dsa_free(EVP_PKEY *pkey) argument 320 dsa_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument 333 dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument 338 dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 344 dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 350 dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 356 old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument 370 old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) argument 412 dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument 424 dsa_pkey_dirty_cnt(const EVP_PKEY *pkey) argument 482 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); local [all...] |
/freebsd-current/crypto/openssl/demos/encode/ |
H A D | ec_encode.c | 32 EVP_PKEY *pkey = NULL; local 46 dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey, "PEM", NULL, "EC", 83 * pkey is created by OSSL_DECODER_CTX_new_for_pkey, but we 88 EVP_PKEY_free(pkey); 89 pkey = NULL; 92 return pkey; 101 static int store_key(EVP_PKEY *pkey, FILE *f, const char *passphrase) argument 125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); 178 EVP_PKEY *pkey = NULL; local 189 pkey [all...] |
H A D | rsa_encode.c | 32 EVP_PKEY *pkey = NULL; local 46 dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey, "PEM", NULL, "RSA", 83 * pkey is created by OSSL_DECODER_CTX_new_for_pkey, but we 88 EVP_PKEY_free(pkey); 89 pkey = NULL; 92 return pkey; 101 static int store_key(EVP_PKEY *pkey, FILE *f, const char *passphrase) argument 125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); 175 EVP_PKEY *pkey = NULL; local 186 pkey [all...] |
/freebsd-current/contrib/bearssl/src/symcipher/ |
H A D | poly1305_i15.c | 133 unsigned char pkey[32], foot[16]; local 138 * pkey[]. 140 memset(pkey, 0, sizeof pkey); 141 ichacha(key, iv, 0, pkey, sizeof pkey); 161 pkey[ 3] &= 0x0F; 162 pkey[ 7] &= 0x0F; 163 pkey[11] &= 0x0F; 164 pkey[1 [all...] |
/freebsd-current/crypto/openssl/demos/pkey/ |
H A D | EVP_PKEY_RSA_keygen.c | 38 EVP_PKEY *pkey = NULL; local 87 if (EVP_PKEY_generate(genctx, &pkey) <= 0) { 92 /* pkey is now set to an object representing the generated key pair. */ 96 return pkey; 110 EVP_PKEY *pkey = NULL; local 113 pkey = EVP_PKEY_Q_keygen(libctx, propq, "RSA", (size_t)bits); 115 if (pkey == NULL) 118 return pkey; 124 static int dump_key(const EVP_PKEY *pkey) argument 137 if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_ 244 EVP_PKEY *pkey = NULL; local [all...] |
H A D | EVP_PKEY_EC_keygen.c | 21 static int get_key_values(EVP_PKEY *pkey); 27 * pkey = EVP_EC_gen(curvename); OR 28 * pkey = EVP_PKEY_Q_keygen(libctx, propq, "EC", curvename); 85 static int get_key_values(EVP_PKEY *pkey) argument 94 if (!EVP_PKEY_get_utf8_string_param(pkey, OSSL_PKEY_PARAM_GROUP_NAME, 101 if (!EVP_PKEY_get_octet_string_param(pkey, OSSL_PKEY_PARAM_PUB_KEY, 108 if (!EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_PRIV_KEY, &out_priv)) { 135 EVP_PKEY *pkey; local 137 pkey = do_ec_keygen(); 138 if (pkey [all...] |
/freebsd-current/crypto/openssl/crypto/dh/ |
H A D | dh_ameth.c | 34 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp, argument 38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); 48 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp) argument 50 if (pkey->ameth == &ossl_dhx_asn1_meth) 55 static void int_dh_free(EVP_PKEY *pkey) argument 57 DH_free(pkey->pkey.dh); 60 static int dh_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) argument 85 if ((dh = d2i_dhp(pkey, &pm, pmlen)) == NULL) { 102 EVP_PKEY_assign(pkey, pke 111 dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument 164 dh_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) argument 177 dh_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument 227 dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument 239 dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument 300 int_dh_size(const EVP_PKEY *pkey) argument 305 dh_bits(const EVP_PKEY *pkey) argument 310 dh_security_bits(const EVP_PKEY *pkey) argument 374 dh_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 380 dh_public_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 386 dh_private_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 397 dh_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument 419 dhx_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument 428 dh_pkey_public_check(const EVP_PKEY *pkey) argument 440 dh_pkey_param_check(const EVP_PKEY *pkey) argument 447 dh_pkey_dirty_cnt(const EVP_PKEY *pkey) argument 513 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); local [all...] |
/freebsd-current/crypto/openssl/crypto/ec/ |
H A D | ec_ameth.c | 68 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument 70 const EC_KEY *ec_key = pkey->pkey.ec; 100 static int eckey_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) argument 123 EVP_PKEY_assign_EC_KEY(pkey, eckey); 134 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); 135 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), 136 *pb = EC_KEY_get0_public_key(b->pkey.ec); 148 static int eckey_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, argument 156 EVP_PKEY_assign_EC_KEY(pkey, ecke 162 eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument 205 int_ec_size(const EVP_PKEY *pkey) argument 210 ec_bits(const EVP_PKEY *pkey) argument 215 ec_security_bits(const EVP_PKEY *pkey) argument 232 ec_missing_parameters(const EVP_PKEY *pkey) argument 272 int_ec_free(EVP_PKEY *pkey) argument 346 eckey_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument 357 eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument 362 eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 368 eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 374 eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument 380 old_ec_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument 391 old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) argument 396 ec_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument 423 ec_pkey_check(const EVP_PKEY *pkey) argument 436 ec_pkey_public_check(const EVP_PKEY *pkey) argument 452 ec_pkey_param_check(const EVP_PKEY *pkey) argument 466 ec_pkey_dirty_cnt(const EVP_PKEY *pkey) argument 612 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); local [all...] |
/freebsd-current/contrib/libfido2/src/ |
H A D | eddsa.c | 30 EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub, argument 33 (void)pkey; 126 EVP_PKEY *pkey; local 133 if ((pkey = eddsa_pk_to_EVP_PKEY(pk)) == NULL) { 138 EVP_PKEY_free(pkey); 146 EVP_PKEY *pkey = NULL; local 148 if ((pkey = EVP_PKEY_new_raw_public_key(EVP_PKEY_ED25519, NULL, k->x, 152 return (pkey); 156 eddsa_pk_from_EVP_PKEY(eddsa_pk_t *pk, const EVP_PKEY *pkey) argument 160 if (EVP_PKEY_base_id(pkey) ! 173 eddsa_verify_sig(const fido_blob_t *dgst, EVP_PKEY *pkey, const fido_blob_t *sig) argument 218 EVP_PKEY *pkey; local [all...] |
H A D | rs256.c | 138 EVP_PKEY *pkey; local 145 if ((pkey = rs256_pk_to_EVP_PKEY(pk)) == NULL) { 150 EVP_PKEY_free(pkey); 159 EVP_PKEY *pkey = NULL; local 187 if ((pkey = EVP_PKEY_new()) == NULL || 188 EVP_PKEY_assign_RSA(pkey, rsa) == 0) { 203 if (ok < 0 && pkey != NULL) { 204 EVP_PKEY_free(pkey); 205 pkey = NULL; 208 return (pkey); 247 rs256_pk_from_EVP_PKEY(rs256_pk_t *pk, const EVP_PKEY *pkey) argument 259 rs256_verify_sig(const fido_blob_t *dgst, EVP_PKEY *pkey, const fido_blob_t *sig) argument 302 EVP_PKEY *pkey; local [all...] |
H A D | es384.c | 90 EVP_PKEY *pkey; local 100 if ((pkey = es384_pk_to_EVP_PKEY(pk)) == NULL) { 106 EVP_PKEY_free(pkey); 117 EVP_PKEY *pkey = NULL; local 151 if ((pkey = EVP_PKEY_new()) == NULL || 152 EVP_PKEY_assign_EC_KEY(pkey, ec) == 0) { 171 if (ok < 0 && pkey != NULL) { 172 EVP_PKEY_free(pkey); 173 pkey = NULL; 176 return (pkey); 240 es384_pk_from_EVP_PKEY(es384_pk_t *pk, const EVP_PKEY *pkey) argument 252 es384_verify_sig(const fido_blob_t *dgst, EVP_PKEY *pkey, const fido_blob_t *sig) argument 282 EVP_PKEY *pkey; local [all...] |
/freebsd-current/crypto/openssl/crypto/pkcs12/ |
H A D | p12_kiss.c | 18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 24 EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 29 * should point to a valid STACK structure. pkey and/or cert may be NULL; 33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, argument 39 if (pkey != NULL) 40 *pkey = NULL; 82 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) { 93 if (pkey != NULL && *pkey ! 136 parse_pk12(PKCS12 *p12, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) argument 184 parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) argument [all...] |
/freebsd-current/crypto/openssl/crypto/engine/ |
H A D | eng_pkey.c | 59 EVP_PKEY *pkey; local 77 pkey = e->load_privkey(e, key_id, ui_method, callback_data); 78 if (pkey == NULL) { 83 switch (EVP_PKEY_get_id(pkey)) { 86 RSA *rsa = EVP_PKEY_get1_RSA(pkey); 87 EVP_PKEY_set1_RSA(pkey, rsa); 95 EC_KEY *ec = EVP_PKEY_get1_EC_KEY(pkey); 96 EVP_PKEY_set1_EC_KEY(pkey, ec); 104 DSA *dsa = EVP_PKEY_get1_DSA(pkey); 105 EVP_PKEY_set1_DSA(pkey, ds 130 EVP_PKEY *pkey; local [all...] |
/freebsd-current/contrib/libfido2/examples/ |
H A D | util.c | 134 EVP_PKEY *pkey = NULL; local 142 if ((pkey = PEM_read_PUBKEY(fp, NULL, NULL, NULL)) == NULL) { 146 if ((ec = EVP_PKEY_get1_EC_KEY(pkey)) == NULL) { 155 if (pkey != NULL) { 156 EVP_PKEY_free(pkey); 166 EVP_PKEY *pkey = NULL; local 192 if ((pkey = es256_pk_to_EVP_PKEY(pk)) == NULL) { 197 if (PEM_write_PUBKEY(fp, pkey) == 0) { 212 if (pkey != NULL) { 213 EVP_PKEY_free(pkey); 223 EVP_PKEY *pkey = NULL; local 280 EVP_PKEY *pkey = NULL; local 312 EVP_PKEY *pkey = NULL; local 369 EVP_PKEY *pkey = NULL; local 393 EVP_PKEY *pkey = NULL; local [all...] |
/freebsd-current/crypto/openssl/crypto/x509/ |
H A D | x_pubkey.c | 35 EVP_PKEY *pkey; member in struct:X509_pubkey_st 92 EVP_PKEY_free(pubkey->pkey); 161 EVP_PKEY_free(pubkey->pkey); 162 pubkey->pkey = NULL; 175 if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) { 208 OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey, 300 if (a->pkey != NULL) { 302 pubkey->pkey = EVP_PKEY_dup(a->pkey); 303 if (pubkey->pkey 317 X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) argument 400 EVP_PKEY *pkey; local 603 EVP_PKEY *pkey; local 644 EVP_PKEY *pkey; local 685 EVP_PKEY *pkey; local 728 EVP_PKEY *pkey; local 794 EVP_PKEY *pkey; local 838 EVP_PKEY *pkey; local 879 EVP_PKEY *pkey; local 921 EVP_PKEY *pkey; local 963 EVP_PKEY *pkey; local [all...] |
/freebsd-current/crypto/openssl/demos/signature/ |
H A D | rsa_pss_hash.c | 36 EVP_PKEY *pkey = NULL; local 45 pkey = d2i_PrivateKey_ex(EVP_PKEY_RSA, NULL, &ppriv_key, 47 if (pkey == NULL) { 65 pkey, params) == 0) { 101 EVP_PKEY_free(pkey); 117 EVP_PKEY *pkey = NULL; local 124 pkey = d2i_PublicKey(EVP_PKEY_RSA, NULL, &ppub_key, sizeof(rsa_pub_key)); 125 if (pkey == NULL) { 143 pkey, params) == 0) { 167 EVP_PKEY_free(pkey); [all...] |
/freebsd-current/crypto/openssl/crypto/asn1/ |
H A D | p8_pkey.c | 23 if (key->pkey) 24 OPENSSL_cleanse(key->pkey->data, key->pkey->length); 32 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, pkey, ASN1_OCTET_STRING), 49 ASN1_STRING_set0(priv->pkey, penc, penclen); 60 *pk = ASN1_STRING_get0_data(p8->pkey); 61 *ppklen = ASN1_STRING_length(p8->pkey);
|
H A D | t_spki.c | 22 EVP_PKEY *pkey; local 32 pkey = X509_PUBKEY_get(spki->spkac->pubkey); 33 if (pkey == NULL) 36 EVP_PKEY_print_public(out, pkey, 4, NULL); 37 EVP_PKEY_free(pkey);
|
/freebsd-current/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_vlan.c | 56 int ipoib_vlan_add(if_t pdev, unsigned short pkey) argument 74 if (ppriv->pkey == pkey) { 81 if (priv->pkey == pkey) { 89 ppriv->dev->name, pkey); 106 priv->pkey = pkey; 109 priv->broadcastaddr[8] = pkey >> 8; 110 priv->broadcastaddr[9] = pkey 163 ipoib_vlan_delete(if_t pdev, unsigned short pkey) argument [all...] |
/freebsd-current/contrib/bearssl/src/x509/ |
H A D | x509_knownkey.c | 33 ctx->pkey.key_type = BR_KEYTYPE_RSA; 34 ctx->pkey.key.rsa = *pk; 44 ctx->pkey.key_type = BR_KEYTYPE_EC; 45 ctx->pkey.key.ec = *pk; 93 return &xc->pkey;
|