Lines Matching refs:pss

41     if (rsa->pss == NULL) {  in rsa_param_encode()
46 if (ASN1_item_pack(rsa->pss, ASN1_ITEM_rptr(RSA_PSS_PARAMS), pstr) == NULL) in rsa_param_encode()
205 static int rsa_pss_param_print(BIO *bp, int pss_key, RSA_PSS_PARAMS *pss, in rsa_pss_param_print() argument
214 if (pss == NULL) { in rsa_pss_param_print()
222 } else if (pss == NULL) { in rsa_pss_param_print()
236 if (pss->hashAlgorithm) { in rsa_pss_param_print()
237 if (i2a_ASN1_OBJECT(bp, pss->hashAlgorithm->algorithm) <= 0) in rsa_pss_param_print()
251 if (pss->maskGenAlgorithm) { in rsa_pss_param_print()
252 if (i2a_ASN1_OBJECT(bp, pss->maskGenAlgorithm->algorithm) <= 0) in rsa_pss_param_print()
256 maskHash = ossl_x509_algor_mgf1_decode(pss->maskGenAlgorithm); in rsa_pss_param_print()
272 if (pss->saltLength) { in rsa_pss_param_print()
273 if (i2a_ASN1_INTEGER(bp, pss->saltLength) <= 0) in rsa_pss_param_print()
284 if (pss->trailerField) { in rsa_pss_param_print()
285 if (i2a_ASN1_INTEGER(bp, pss->trailerField) <= 0) in rsa_pss_param_print()
382 if (pkey_is_pss(pkey) && !rsa_pss_param_print(bp, 1, x->pss, off)) in pkey_rsa_print()
406 RSA_PSS_PARAMS *pss = ossl_rsa_pss_decode(sigalg); in rsa_sig_print() local
408 rv = rsa_pss_param_print(bp, 0, pss, indent); in rsa_sig_print()
409 RSA_PSS_PARAMS_free(pss); in rsa_sig_print()
428 if (pkey->pkey.rsa->pss != NULL) { in rsa_pkey_ctrl()
429 if (!ossl_rsa_pss_get_param(pkey->pkey.rsa->pss, &md, &mgf1md, in rsa_pkey_ctrl()
497 RSA_PSS_PARAMS *pss = RSA_PSS_PARAMS_new(); in ossl_rsa_pss_params_create() local
499 if (pss == NULL) in ossl_rsa_pss_params_create()
502 pss->saltLength = ASN1_INTEGER_new(); in ossl_rsa_pss_params_create()
503 if (pss->saltLength == NULL) in ossl_rsa_pss_params_create()
505 if (!ASN1_INTEGER_set(pss->saltLength, saltlen)) in ossl_rsa_pss_params_create()
508 if (!ossl_x509_algor_new_from_md(&pss->hashAlgorithm, sigmd)) in ossl_rsa_pss_params_create()
512 if (!ossl_x509_algor_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md)) in ossl_rsa_pss_params_create()
514 if (!ossl_x509_algor_new_from_md(&pss->maskHash, mgf1md)) in ossl_rsa_pss_params_create()
516 return pss; in ossl_rsa_pss_params_create()
518 RSA_PSS_PARAMS_free(pss); in ossl_rsa_pss_params_create()
524 RSA_PSS_PARAMS *pss = rsa_ctx_to_pss(pkctx); in ossl_rsa_ctx_to_pss_string() local
527 if (pss == NULL) in ossl_rsa_ctx_to_pss_string()
530 os = ASN1_item_pack(pss, ASN1_ITEM_rptr(RSA_PSS_PARAMS), NULL); in ossl_rsa_ctx_to_pss_string()
531 RSA_PSS_PARAMS_free(pss); in ossl_rsa_ctx_to_pss_string()
547 RSA_PSS_PARAMS *pss; in ossl_rsa_pss_to_ctx() local
555 pss = ossl_rsa_pss_decode(sigalg); in ossl_rsa_pss_to_ctx()
557 if (!ossl_rsa_pss_get_param(pss, &md, &mgf1md, &saltlen)) { in ossl_rsa_pss_to_ctx()
588 RSA_PSS_PARAMS_free(pss); in ossl_rsa_pss_to_ctx()
610 int ossl_rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd, in ossl_rsa_pss_get_param() argument
623 return ossl_rsa_pss_get_param_unverified(pss, pmd, pmgf1md, psaltlen, in ossl_rsa_pss_get_param()
729 RSA_PSS_PARAMS *pss; in rsa_sig_info_set() local
736 pss = ossl_rsa_pss_decode(sigalg); in rsa_sig_info_set()
737 if (!ossl_rsa_pss_get_param(pss, &md, &mgf1md, &saltlen)) in rsa_sig_info_set()
775 RSA_PSS_PARAMS_free(pss); in rsa_sig_info_set()
817 if (rsa->pss != NULL) { in rsa_int_export_to()
822 if (!ossl_rsa_pss_get_param_unverified(rsa->pss, &md, &mgf1md, in rsa_int_export_to()
893 if ((rsa->pss = ossl_rsa_pss_params_create(md, mgf1md, in rsa_int_import_from()