Lines Matching refs:saltlen

455     int saltlen;  in rsa_ctx_to_pss()  local
466 if (EVP_PKEY_CTX_get_rsa_pss_saltlen(pkctx, &saltlen) <= 0) in rsa_ctx_to_pss()
468 if (saltlen == RSA_PSS_SALTLEN_DIGEST) { in rsa_ctx_to_pss()
469 saltlen = md_size; in rsa_ctx_to_pss()
470 } else if (saltlen == RSA_PSS_SALTLEN_AUTO_DIGEST_MAX) { in rsa_ctx_to_pss()
478 saltlen = RSA_PSS_SALTLEN_MAX; in rsa_ctx_to_pss()
481 if (saltlen == RSA_PSS_SALTLEN_MAX || saltlen == RSA_PSS_SALTLEN_AUTO) { in rsa_ctx_to_pss()
482 saltlen = EVP_PKEY_get_size(pk) - md_size - 2; in rsa_ctx_to_pss()
484 saltlen--; in rsa_ctx_to_pss()
485 if (saltlen < 0) in rsa_ctx_to_pss()
487 if (saltlenMax >= 0 && saltlen > saltlenMax) in rsa_ctx_to_pss()
488 saltlen = saltlenMax; in rsa_ctx_to_pss()
491 return ossl_rsa_pss_params_create(sigmd, mgf1md, saltlen); in rsa_ctx_to_pss()
495 const EVP_MD *mgf1md, int saltlen) in ossl_rsa_pss_params_create() argument
501 if (saltlen != 20) { in ossl_rsa_pss_params_create()
505 if (!ASN1_INTEGER_set(pss->saltLength, saltlen)) in ossl_rsa_pss_params_create()
545 int saltlen; in ossl_rsa_pss_to_ctx() local
557 if (!ossl_rsa_pss_get_param(pss, &md, &mgf1md, &saltlen)) { in ossl_rsa_pss_to_ctx()
579 if (EVP_PKEY_CTX_set_rsa_pss_saltlen(pkctx, saltlen) <= 0) in ossl_rsa_pss_to_ctx()
726 int mdnid, saltlen, md_size; in rsa_sig_info_set() local
737 if (!ossl_rsa_pss_get_param(pss, &md, &mgf1md, &saltlen)) in rsa_sig_info_set()
749 && saltlen == md_size) in rsa_sig_info_set()
819 int md_nid, mgf1md_nid, saltlen, trailerfield; in rsa_int_export_to() local
823 &saltlen, &trailerfield)) in rsa_int_export_to()
831 || !ossl_rsa_pss_params_30_set_saltlen(&pss_params, saltlen) in rsa_int_export_to()
889 int saltlen = ossl_rsa_pss_params_30_saltlen(&rsa_pss_params); in rsa_int_import_from() local
894 saltlen)) == NULL) in rsa_int_import_from()