Lines Matching refs:pss

307 int ossl_rsa_pss_params_30_todata(const RSA_PSS_PARAMS_30 *pss,  in ossl_rsa_pss_params_30_todata()  argument
310 if (!ossl_rsa_pss_params_30_is_unrestricted(pss)) { in ossl_rsa_pss_params_30_todata()
311 int hashalg_nid = ossl_rsa_pss_params_30_hashalg(pss); in ossl_rsa_pss_params_30_todata()
312 int maskgenalg_nid = ossl_rsa_pss_params_30_maskgenalg(pss); in ossl_rsa_pss_params_30_todata()
313 int maskgenhashalg_nid = ossl_rsa_pss_params_30_maskgenhashalg(pss); in ossl_rsa_pss_params_30_todata()
314 int saltlen = ossl_rsa_pss_params_30_saltlen(pss); in ossl_rsa_pss_params_30_todata()
545 if (rsa->pss != NULL) { in ossl_rsa_dup()
546 dupkey->pss = RSA_PSS_PARAMS_dup(rsa->pss); in ossl_rsa_dup()
547 if (rsa->pss->maskGenAlgorithm != NULL in ossl_rsa_dup()
548 && dupkey->pss->maskGenAlgorithm == NULL) { in ossl_rsa_dup()
549 dupkey->pss->maskHash = ossl_x509_algor_mgf1_decode(rsa->pss->maskGenAlgorithm); in ossl_rsa_dup()
550 if (dupkey->pss->maskHash == NULL) in ossl_rsa_dup()
569 RSA_PSS_PARAMS *pss; in ossl_rsa_pss_decode() local
571 pss = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(RSA_PSS_PARAMS), in ossl_rsa_pss_decode()
574 if (pss == NULL) in ossl_rsa_pss_decode()
577 if (pss->maskGenAlgorithm != NULL) { in ossl_rsa_pss_decode()
578 pss->maskHash = ossl_x509_algor_mgf1_decode(pss->maskGenAlgorithm); in ossl_rsa_pss_decode()
579 if (pss->maskHash == NULL) { in ossl_rsa_pss_decode()
580 RSA_PSS_PARAMS_free(pss); in ossl_rsa_pss_decode()
585 return pss; in ossl_rsa_pss_decode()
591 RSA_PSS_PARAMS_30 *pss = NULL; in ossl_rsa_sync_to_pss_params_30() local
595 && (pss = ossl_rsa_get0_pss_params_30(rsa)) != NULL) { in ossl_rsa_sync_to_pss_params_30()
622 *pss = pss_params; in ossl_rsa_sync_to_pss_params_30()
627 int ossl_rsa_pss_get_param_unverified(const RSA_PSS_PARAMS *pss, in ossl_rsa_pss_get_param_unverified() argument
636 if (pss == NULL) in ossl_rsa_pss_get_param_unverified()
638 *pmd = ossl_x509_algor_get_md(pss->hashAlgorithm); in ossl_rsa_pss_get_param_unverified()
641 *pmgf1md = ossl_x509_algor_get_md(pss->maskHash); in ossl_rsa_pss_get_param_unverified()
644 if (pss->saltLength) in ossl_rsa_pss_get_param_unverified()
645 *psaltlen = ASN1_INTEGER_get(pss->saltLength); in ossl_rsa_pss_get_param_unverified()
648 if (pss->trailerField) in ossl_rsa_pss_get_param_unverified()
649 *ptrailerField = ASN1_INTEGER_get(pss->trailerField); in ossl_rsa_pss_get_param_unverified()
658 RSA_PSS_PARAMS *pss; in ossl_rsa_param_decode() local
672 if ((pss = ossl_rsa_pss_decode(alg)) == NULL in ossl_rsa_param_decode()
673 || !ossl_rsa_set0_pss_params(rsa, pss)) { in ossl_rsa_param_decode()
674 RSA_PSS_PARAMS_free(pss); in ossl_rsa_param_decode()