Lines Matching refs:NULL

297         if (!ossl_assert(translation != NULL)) {  in default_check()
314 if (translation != NULL) { in default_check()
319 if (!ossl_assert(translation->param_key != NULL) in default_check()
328 if (!ossl_assert(translation != NULL)) { in default_check()
420 && ctx->pctx->op.sig.algctx == NULL) in default_fixup_args()
422 && ctx->pctx->op.kex.algctx == NULL) in default_fixup_args()
424 && ctx->pctx->op.ciph.algctx == NULL) in default_fixup_args()
426 && ctx->pctx->op.encap.algctx == NULL) in default_fixup_args()
432 && ctx->pctx->op.keymgmt.genctx == NULL) in default_fixup_args()
434 && ctx->pctx->op.keymgmt.genctx == NULL)) { in default_fixup_args()
458 if (ctx->p2 != NULL) { in default_fixup_args()
462 = OPENSSL_malloc(ctx->buflen)) == NULL) in default_fixup_args()
467 ctx->allocated_buf = NULL; in default_fixup_args()
543 const OSSL_PARAM *settable = NULL; in default_fixup_args()
558 if (translation != NULL) { in default_fixup_args()
621 if (ctx->p2 != NULL) { in default_fixup_args()
660 if (!ossl_assert(translation->fixup_args != NULL)) { in default_fixup_args()
671 if (ctx->p2 != NULL) { in default_fixup_args()
712 if (ctx->allocated_buf != NULL) in cleanup_translation_ctx()
714 ctx->allocated_buf = NULL; in cleanup_translation_ctx()
771 ctx->p2 = (char *)(ctx->p2 == NULL in fix_cipher_md()
776 ctx->p2 = (ctx->p2 == NULL ? "" : (char *)get_name(ctx->p2)); in fix_cipher_md()
887 for (; kdf_type_map->kdf_type_str != NULL; kdf_type_map++) in fix_kdf_type()
906 for (; kdf_type_map->kdf_type_str != NULL; kdf_type_map++) in fix_kdf_type()
912 ctx->p2 = NULL; in fix_kdf_type()
928 { 0, NULL } in fix_dh_kdf_type()
942 { 0, NULL } in fix_ec_kdf_type()
1007 (ossl_ffc_uid_to_dh_named_group(ctx->p1))) == NULL) { in fix_dh_nid()
1034 (ossl_ffc_uid_to_dh_named_group(ctx->p1))) == NULL) { in fix_dh_nid5114()
1043 if (ctx->p2 == NULL) in fix_dh_nid5114()
1046 (ossl_ffc_uid_to_dh_named_group(atoi(ctx->p2)))) == NULL) { in fix_dh_nid5114()
1077 == NULL) { in fix_dh_paramgen_type()
1126 ctx->p2 = NULL; in fix_ec_param_enc()
1140 char *p2 = NULL; in fix_ec_paramgen_curve_nid()
1172 ctx->p2 = NULL; in fix_ec_paramgen_curve_nid()
1258 { RSA_PKCS1_WITH_TLS_PADDING, NULL } in fix_rsa_padding_mode()
1333 if (str_value_map[i].ptr == NULL) { in fix_rsa_padding_mode()
1364 ctx->p2 = NULL; in fix_rsa_padding_mode()
1444 ctx->p2 = NULL; in fix_rsa_pss_saltlen()
1496 ctx->p2 = NULL; in fix_hkdf_mode()
1518 ctx->p2 = NULL; in get_payload_group_name()
1542 if (grp != NULL) in get_payload_group_name()
1558 if (ctx->p2 == NULL) in get_payload_group_name()
1571 ctx->p2 = NULL; in get_payload_private_key()
1607 unsigned char *buf = NULL; in get_payload_public_key()
1610 ctx->p2 = NULL; in get_payload_public_key()
1644 if (bnctx == NULL) in get_payload_public_key()
1675 BIGNUM *x = NULL; in get_payload_public_key_ec()
1676 BIGNUM *y = NULL; in get_payload_public_key_ec()
1679 ctx->p2 = NULL; in get_payload_public_key_ec()
1681 if (eckey == NULL) { in get_payload_public_key_ec()
1687 if (bnctx == NULL) in get_payload_public_key_ec()
1699 if (y == NULL) in get_payload_public_key_ec()
1727 if (bn == NULL) in get_payload_bn()
1740 const BIGNUM *bn = NULL; in get_dh_dsa_payload_p()
1765 const BIGNUM *bn = NULL; in get_dh_dsa_payload_q()
1787 const BIGNUM *bn = NULL; in get_dh_dsa_payload_g()
1813 ctx->p2 = NULL; in get_payload_int()
1847 const BIGNUM *bn = NULL; in get_rsa_payload_n()
1861 const BIGNUM *bn = NULL; in get_rsa_payload_e()
1875 const BIGNUM *bn = NULL; in get_rsa_payload_d()
1891 const BIGNUM *bn = NULL; in get_rsa_payload_factor()
1921 const BIGNUM *bn = NULL; in get_rsa_payload_exponent()
1951 const BIGNUM *bn = NULL; in get_rsa_payload_coefficient()
2044 const char *value = NULL; in fix_group_ecx()
2082 OSSL_PKEY_PARAM_DIST_ID, OSSL_PARAM_OCTET_STRING, NULL },
2085 OSSL_PKEY_PARAM_DIST_ID, OSSL_PARAM_OCTET_PTR, NULL },
2087 EVP_PKEY_CTRL_GET1_ID_LEN, NULL, NULL,
2100 EVP_PKEY_CTRL_DH_KDF_TYPE, NULL, NULL,
2104 EVP_PKEY_CTRL_DH_KDF_MD, NULL, NULL,
2107 EVP_PKEY_CTRL_GET_DH_KDF_MD, NULL, NULL,
2110 EVP_PKEY_CTRL_DH_KDF_OUTLEN, NULL, NULL,
2111 OSSL_EXCHANGE_PARAM_KDF_OUTLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2113 EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, NULL, NULL,
2114 OSSL_EXCHANGE_PARAM_KDF_OUTLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2116 EVP_PKEY_CTRL_DH_KDF_UKM, NULL, NULL,
2117 OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_STRING, NULL },
2119 EVP_PKEY_CTRL_GET_DH_KDF_UKM, NULL, NULL,
2120 OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_PTR, NULL },
2122 EVP_PKEY_CTRL_DH_KDF_OID, NULL, NULL,
2125 EVP_PKEY_CTRL_GET_DH_KDF_OID, NULL, NULL,
2130 EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, "dh_paramgen_type", NULL,
2133 EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, "dh_paramgen_prime_len", NULL,
2134 OSSL_PKEY_PARAM_FFC_PBITS, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2136 EVP_PKEY_CTRL_DH_NID, "dh_param", NULL,
2137 OSSL_PKEY_PARAM_GROUP_NAME, OSSL_PARAM_UTF8_STRING, NULL },
2139 EVP_PKEY_CTRL_DH_RFC5114, "dh_rfc5114", NULL,
2144 EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, "dh_paramgen_type", NULL,
2147 EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, "dh_paramgen_prime_len", NULL,
2148 OSSL_PKEY_PARAM_FFC_PBITS, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2150 EVP_PKEY_CTRL_DH_NID, "dh_param", NULL,
2153 EVP_PKEY_CTRL_DH_RFC5114, "dh_rfc5114", NULL,
2158 EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, "dh_paramgen_generator", NULL,
2159 OSSL_PKEY_PARAM_DH_GENERATOR, OSSL_PARAM_INTEGER, NULL },
2163 EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, "dh_paramgen_subprime_len", NULL,
2164 OSSL_PKEY_PARAM_FFC_QBITS, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2167 EVP_PKEY_CTRL_DH_PAD, "dh_pad", NULL,
2168 OSSL_EXCHANGE_PARAM_PAD, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2175 EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, "dsa_paramgen_bits", NULL,
2176 OSSL_PKEY_PARAM_FFC_PBITS, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2178 EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS, "dsa_paramgen_q_bits", NULL,
2179 OSSL_PKEY_PARAM_FFC_QBITS, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2181 EVP_PKEY_CTRL_DSA_PARAMGEN_MD, "dsa_paramgen_md", NULL,
2189 EVP_PKEY_CTRL_EC_PARAM_ENC, "ec_param_enc", NULL,
2192 EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, "ec_paramgen_curve", NULL,
2200 EVP_PKEY_CTRL_EC_ECDH_COFACTOR, "ecdh_cofactor_mode", NULL,
2204 EVP_PKEY_CTRL_EC_KDF_TYPE, NULL, NULL,
2207 EVP_PKEY_CTRL_EC_KDF_MD, "ecdh_kdf_md", NULL,
2210 EVP_PKEY_CTRL_GET_EC_KDF_MD, NULL, NULL,
2213 EVP_PKEY_CTRL_EC_KDF_OUTLEN, NULL, NULL,
2214 OSSL_EXCHANGE_PARAM_KDF_OUTLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2216 EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, NULL, NULL,
2217 OSSL_EXCHANGE_PARAM_KDF_OUTLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2219 EVP_PKEY_CTRL_EC_KDF_UKM, NULL, NULL,
2220 OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_STRING, NULL },
2222 EVP_PKEY_CTRL_GET_EC_KDF_UKM, NULL, NULL,
2223 OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_PTR, NULL },
2230 EVP_PKEY_CTRL_EC_PARAM_ENC, "ec_param_enc", NULL,
2233 EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, "ec_paramgen_curve", NULL,
2241 EVP_PKEY_CTRL_EC_ECDH_COFACTOR, "ecdh_cofactor_mode", NULL,
2245 EVP_PKEY_CTRL_EC_KDF_TYPE, NULL, NULL,
2248 EVP_PKEY_CTRL_EC_KDF_MD, "ecdh_kdf_md", NULL,
2251 EVP_PKEY_CTRL_GET_EC_KDF_MD, NULL, NULL,
2254 EVP_PKEY_CTRL_EC_KDF_OUTLEN, NULL, NULL,
2255 OSSL_EXCHANGE_PARAM_KDF_OUTLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2257 EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, NULL, NULL,
2258 OSSL_EXCHANGE_PARAM_KDF_OUTLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2260 EVP_PKEY_CTRL_EC_KDF_UKM, NULL, NULL,
2261 OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_STRING, NULL },
2263 EVP_PKEY_CTRL_GET_EC_KDF_UKM, NULL, NULL,
2264 OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_PTR, NULL },
2278 EVP_PKEY_CTRL_RSA_PADDING, "rsa_padding_mode", NULL,
2282 EVP_PKEY_CTRL_GET_RSA_PADDING, NULL, NULL,
2287 EVP_PKEY_CTRL_RSA_MGF1_MD, "rsa_mgf1_md", NULL,
2291 EVP_PKEY_CTRL_GET_RSA_MGF1_MD, NULL, NULL,
2301 EVP_PKEY_CTRL_RSA_PSS_SALTLEN, "rsa_pss_saltlen", NULL,
2305 EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, NULL, NULL,
2310 EVP_PKEY_CTRL_RSA_OAEP_MD, "rsa_oaep_md", NULL,
2313 EVP_PKEY_CTRL_GET_RSA_OAEP_MD, NULL, NULL,
2322 EVP_PKEY_CTRL_RSA_OAEP_LABEL, NULL, "rsa_oaep_label",
2323 OSSL_ASYM_CIPHER_PARAM_OAEP_LABEL, OSSL_PARAM_OCTET_STRING, NULL },
2325 EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, NULL, NULL,
2326 OSSL_ASYM_CIPHER_PARAM_OAEP_LABEL, OSSL_PARAM_OCTET_PTR, NULL },
2329 EVP_PKEY_CTRL_RSA_IMPLICIT_REJECTION, NULL,
2332 NULL },
2335 EVP_PKEY_CTRL_MD, "rsa_pss_keygen_md", NULL,
2338 EVP_PKEY_CTRL_RSA_MGF1_MD, "rsa_pss_keygen_mgf1_md", NULL,
2341 EVP_PKEY_CTRL_RSA_PSS_SALTLEN, "rsa_pss_keygen_saltlen", NULL,
2342 OSSL_SIGNATURE_PARAM_PSS_SALTLEN, OSSL_PARAM_INTEGER, NULL },
2344 EVP_PKEY_CTRL_RSA_KEYGEN_BITS, "rsa_keygen_bits", NULL,
2345 OSSL_PKEY_PARAM_RSA_BITS, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2347 EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, "rsa_keygen_pubexp", NULL,
2348 OSSL_PKEY_PARAM_RSA_E, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2350 EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES, "rsa_keygen_primes", NULL,
2351 OSSL_PKEY_PARAM_RSA_PRIMES, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2358 EVP_PKEY_CTRL_SET_DIGEST_SIZE, "digestsize", NULL,
2359 OSSL_MAC_PARAM_SIZE, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2366 EVP_PKEY_CTRL_TLS_MD, "md", NULL,
2370 OSSL_KDF_PARAM_SECRET, OSSL_PARAM_OCTET_STRING, NULL },
2373 OSSL_KDF_PARAM_SEED, OSSL_PARAM_OCTET_STRING, NULL },
2380 EVP_PKEY_CTRL_HKDF_MD, "md", NULL,
2384 OSSL_KDF_PARAM_SALT, OSSL_PARAM_OCTET_STRING, NULL },
2387 OSSL_KDF_PARAM_KEY, OSSL_PARAM_OCTET_STRING, NULL },
2390 OSSL_KDF_PARAM_INFO, OSSL_PARAM_OCTET_STRING, NULL },
2392 EVP_PKEY_CTRL_HKDF_MODE, "mode", NULL,
2401 OSSL_KDF_PARAM_PASSWORD, OSSL_PARAM_OCTET_STRING, NULL },
2404 OSSL_KDF_PARAM_SALT, OSSL_PARAM_OCTET_STRING, NULL },
2406 EVP_PKEY_CTRL_SCRYPT_N, "N", NULL,
2407 OSSL_KDF_PARAM_SCRYPT_N, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2409 EVP_PKEY_CTRL_SCRYPT_R, "r", NULL,
2410 OSSL_KDF_PARAM_SCRYPT_R, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2412 EVP_PKEY_CTRL_SCRYPT_P, "p", NULL,
2413 OSSL_KDF_PARAM_SCRYPT_P, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2415 EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES, "maxmem_bytes", NULL,
2416 OSSL_KDF_PARAM_SCRYPT_MAXMEM, OSSL_PARAM_UNSIGNED_INTEGER, NULL },
2419 EVP_PKEY_CTRL_CIPHER, NULL, NULL,
2423 OSSL_PKEY_PARAM_PRIV_KEY, OSSL_PARAM_OCTET_STRING, NULL },
2426 EVP_PKEY_CTRL_MD, NULL, NULL,
2429 EVP_PKEY_CTRL_GET_MD, NULL, NULL,
2436 { SET, EVP_PKEY_X25519, EVP_PKEY_X25519, EVP_PKEY_OP_KEYGEN, -1, NULL, NULL,
2438 { SET, EVP_PKEY_X25519, EVP_PKEY_X25519, EVP_PKEY_OP_PARAMGEN, -1, NULL, NULL,
2440 { SET, EVP_PKEY_X448, EVP_PKEY_X448, EVP_PKEY_OP_KEYGEN, -1, NULL, NULL,
2442 { SET, EVP_PKEY_X448, EVP_PKEY_X448, EVP_PKEY_OP_PARAMGEN, -1, NULL, NULL,
2455 { GET, -1, -1, -1, 0, NULL, NULL,
2458 { GET, -1, -1, -1, 0, NULL, NULL,
2461 { GET, -1, -1, -1, 0, NULL, NULL,
2465 { GET, -1, -1, -1, 0, NULL, NULL,
2468 { GET, -1, -1, -1, 0, NULL, NULL,
2473 { GET, -1, -1, -1, 0, NULL, NULL,
2476 { GET, -1, -1, -1, 0, NULL, NULL,
2479 { GET, -1, -1, -1, 0, NULL, NULL,
2484 { GET, -1, -1, -1, 0, NULL, NULL,
2487 { GET, -1, -1, -1, 0, NULL, NULL,
2490 { GET, -1, -1, -1, 0, NULL, NULL,
2493 { GET, -1, -1, -1, 0, NULL, NULL,
2496 { GET, -1, -1, -1, 0, NULL, NULL,
2499 { GET, -1, -1, -1, 0, NULL, NULL,
2502 { GET, -1, -1, -1, 0, NULL, NULL,
2505 { GET, -1, -1, -1, 0, NULL, NULL,
2508 { GET, -1, -1, -1, 0, NULL, NULL,
2511 { GET, -1, -1, -1, 0, NULL, NULL,
2514 { GET, -1, -1, -1, 0, NULL, NULL,
2517 { GET, -1, -1, -1, 0, NULL, NULL,
2520 { GET, -1, -1, -1, 0, NULL, NULL,
2523 { GET, -1, -1, -1, 0, NULL, NULL,
2526 { GET, -1, -1, -1, 0, NULL, NULL,
2529 { GET, -1, -1, -1, 0, NULL, NULL,
2532 { GET, -1, -1, -1, 0, NULL, NULL,
2535 { GET, -1, -1, -1, 0, NULL, NULL,
2538 { GET, -1, -1, -1, 0, NULL, NULL,
2541 { GET, -1, -1, -1, 0, NULL, NULL,
2544 { GET, -1, -1, -1, 0, NULL, NULL,
2547 { GET, -1, -1, -1, 0, NULL, NULL,
2550 { GET, -1, -1, -1, 0, NULL, NULL,
2553 { GET, -1, -1, -1, 0, NULL, NULL,
2556 { GET, -1, -1, -1, 0, NULL, NULL,
2559 { GET, -1, -1, -1, 0, NULL, NULL,
2562 { GET, -1, -1, -1, 0, NULL, NULL,
2565 { GET, -1, -1, -1, 0, NULL, NULL,
2568 { GET, -1, -1, -1, 0, NULL, NULL,
2571 { GET, -1, -1, -1, 0, NULL, NULL,
2574 { GET, -1, -1, -1, 0, NULL, NULL,
2577 { GET, -1, -1, -1, 0, NULL, NULL,
2582 { GET, -1, -1, -1, 0, NULL, NULL,
2630 } else if (tmpl->ctrl_str != NULL) { in lookup_translation()
2631 const char *ctrl_str = NULL; in lookup_translation()
2632 const char *ctrl_hexstr = NULL; in lookup_translation()
2646 if (item->ctrl_str != NULL in lookup_translation()
2649 else if (item->ctrl_hexstr != NULL in lookup_translation()
2659 } else if (tmpl->param_key != NULL) { in lookup_translation()
2678 || (item->param_key != NULL in lookup_translation()
2683 return NULL; in lookup_translation()
2689 return NULL; in lookup_translation()
2713 const struct translation_st *translation = NULL; in evp_pkey_ctx_ctrl_to_param()
2725 if (translation == NULL) { in evp_pkey_ctx_ctrl_to_param()
2730 if (pctx->pmeth != NULL in evp_pkey_ctx_ctrl_to_param()
2735 if (translation->fixup_args != NULL) in evp_pkey_ctx_ctrl_to_param()
2781 const struct translation_st *translation = NULL; in evp_pkey_ctx_ctrl_str_to_param()
2795 if (translation != NULL) { in evp_pkey_ctx_ctrl_str_to_param()
2796 if (translation->fixup_args != NULL) in evp_pkey_ctx_ctrl_str_to_param()
2799 ctx.ishex = (tmpl.ctrl_hexstr != NULL); in evp_pkey_ctx_ctrl_str_to_param()
2845 for (; params != NULL && params->key != NULL; params++) { in evp_pkey_ctx_setget_params_to_ctrl()
2848 const struct translation_st *translation = NULL; in evp_pkey_ctx_setget_params_to_ctrl()
2858 if (translation != NULL) { in evp_pkey_ctx_setget_params_to_ctrl()
2859 if (translation->fixup_args != NULL) in evp_pkey_ctx_setget_params_to_ctrl()
2913 for (; params != NULL && params->key != NULL; params++) { in evp_pkey_setget_params_to_ctrl()
2916 const struct translation_st *translation = NULL; in evp_pkey_setget_params_to_ctrl()
2923 if (translation != NULL) { in evp_pkey_setget_params_to_ctrl()
2924 if (translation->fixup_args != NULL) in evp_pkey_setget_params_to_ctrl()
2936 if (!ossl_assert(translation != NULL) in evp_pkey_setget_params_to_ctrl()
2938 || !ossl_assert(translation->fixup_args != NULL)) { in evp_pkey_setget_params_to_ctrl()