Lines Matching refs:desc
94 const struct keytype_desc_st *desc; member
113 && (OBJ_obj2nid(alg->algorithm) == ctx->desc->evp_type in der2key_decode_p8()
116 && ctx->desc->evp_type == NID_sm2))) in der2key_decode_p8()
132 der2key_newctx(void *provctx, const struct keytype_desc_st *desc) in der2key_newctx() argument
138 ctx->desc = desc; in der2key_newctx()
173 const struct keytype_desc_st *desc) in der2key_check_selection() argument
192 int check2 = (desc->selection_mask & checks[i]) != 0; in der2key_check_selection()
227 selection = ctx->desc->selection_mask; in der2key_decode()
228 if ((selection & ctx->desc->selection_mask) == 0) { in der2key_decode()
242 if (ctx->desc->d2i_PKCS8 != NULL) { in der2key_decode()
243 key = ctx->desc->d2i_PKCS8(NULL, &derp, der_len, ctx); in der2key_decode()
248 } else if (ctx->desc->d2i_private_key != NULL) { in der2key_decode()
249 key = ctx->desc->d2i_private_key(NULL, &derp, der_len); in der2key_decode()
258 if (ctx->desc->d2i_PUBKEY != NULL) in der2key_decode()
259 key = ctx->desc->d2i_PUBKEY(NULL, &derp, der_len); in der2key_decode()
260 else if (ctx->desc->d2i_public_key != NULL) in der2key_decode()
261 key = ctx->desc->d2i_public_key(NULL, &derp, der_len); in der2key_decode()
269 if (ctx->desc->d2i_key_params != NULL) in der2key_decode()
270 key = ctx->desc->d2i_key_params(NULL, &derp, der_len); in der2key_decode()
289 && ctx->desc->check_key != NULL in der2key_decode()
290 && !ctx->desc->check_key(key, ctx)) { in der2key_decode()
291 ctx->desc->free_key(key); in der2key_decode()
295 if (key != NULL && ctx->desc->adjust_key != NULL) in der2key_decode()
296 ctx->desc->adjust_key(key, ctx); in der2key_decode()
321 if (strcmp(ctx->desc->keytype_name, "EC") == 0 in der2key_decode()
330 (char *)ctx->desc->keytype_name, in der2key_decode()
342 ctx->desc->free_key(key); in der2key_decode()
354 ossl_prov_get_keymgmt_export(ctx->desc->fns); in der2key_export_object()
455 ret = ctx->desc->evp_type == EVP_PKEY_SM2 in ec_check()
456 || ctx->desc->evp_type == NID_X9_62_id_ecPublicKey; in ec_check()
458 ret = ctx->desc->evp_type != EVP_PKEY_SM2; in ec_check()
570 valid = (ctx->desc->evp_type == EVP_PKEY_RSA); in rsa_check()
573 valid = (ctx->desc->evp_type == EVP_PKEY_RSA_PSS); in rsa_check()