Home
last modified time | relevance | path

Searched refs:pss (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_backend.c308 int ossl_rsa_pss_params_30_todata(const RSA_PSS_PARAMS_30 *pss, in ossl_rsa_pss_params_30_todata() argument
311 if (!ossl_rsa_pss_params_30_is_unrestricted(pss)) { in ossl_rsa_pss_params_30_todata()
312 int hashalg_nid = ossl_rsa_pss_params_30_hashalg(pss); in ossl_rsa_pss_params_30_todata()
313 int maskgenalg_nid = ossl_rsa_pss_params_30_maskgenalg(pss); in ossl_rsa_pss_params_30_todata()
314 int maskgenhashalg_nid = ossl_rsa_pss_params_30_maskgenhashalg(pss); in ossl_rsa_pss_params_30_todata()
315 int saltlen = ossl_rsa_pss_params_30_saltlen(pss); in ossl_rsa_pss_params_30_todata()
541 if (rsa->pss != NULL) { in ossl_rsa_dup()
542 dupkey->pss = RSA_PSS_PARAMS_dup(rsa->pss); in ossl_rsa_dup()
543 if (rsa->pss->maskGenAlgorithm != NULL in ossl_rsa_dup()
544 && dupkey->pss->maskGenAlgorithm == NULL) { in ossl_rsa_dup()
[all …]
H A Drsa_ameth.c41 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()
[all …]
H A Drsa_asn1.c80 RSA_PSS_PARAMS *pss = (RSA_PSS_PARAMS *)*pval; variable
81 X509_ALGOR_free(pss->maskHash);
H A Drsa_local.h84 RSA_PSS_PARAMS *pss; member
160 int ossl_rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd,
H A Drsa_lib.c181 RSA_PSS_PARAMS_free(r->pss); in RSA_free()
688 return r->pss; in RSA_get0_pss_params()
693 int ossl_rsa_set0_pss_params(RSA *r, RSA_PSS_PARAMS *pss) in ossl_rsa_set0_pss_params() argument
698 RSA_PSS_PARAMS_free(r->pss); in ossl_rsa_set0_pss_params()
699 r->pss = pss; in ossl_rsa_set0_pss_params()
H A Drsa_pmeth.c768 rsa->pss = ossl_rsa_pss_params_create(rctx->md, rctx->mgf1md, in rsa_set_pss_param()
772 if (rsa->pss == NULL) in rsa_set_pss_param()
874 if (rsa->pss == NULL) in pkey_pss_init()
877 if (!ossl_rsa_pss_get_param(rsa->pss, &md, &mgf1md, &min_saltlen)) in pkey_pss_init()
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devppkey_rsa.txt274 Ctrl = rsa_padding_mode:pss
307 Ctrl = rsa_padding_mode:pss
313 Ctrl = rsa_padding_mode:pss
319 Ctrl = rsa_padding_mode:pss
325 Ctrl = rsa_padding_mode:pss
331 Ctrl = rsa_padding_mode:pss
337 Ctrl = rsa_padding_mode:pss
352 Ctrl = rsa_padding_mode:pss
358 Ctrl = rsa_padding_mode:pss
364 Ctrl = rsa_padding_mode:pss
[all …]
H A Devppkey_rsa_common.txt908 Ctrl = rsa_padding_mode:pss
915 Ctrl = rsa_padding_mode:pss
924 Ctrl = rsa_padding_mode:pss
931 Ctrl = rsa_padding_mode:pss
940 Ctrl = rsa_padding_mode:pss
949 Ctrl = rsa_padding_mode:pss
958 Ctrl = rsa_padding_mode:pss
966 Ctrl = rsa_padding_mode:pss
1016 Ctrl = rsa_padding_mode:pss
1025 Ctrl = rsa_padding_mode:pss
[all …]
/freebsd/crypto/openssl/providers/common/der/
H A Dder_rsa_key.c247 const RSA_PSS_PARAMS_30 *pss) in DER_w_MaskGenAlgorithm() argument
249 if (pss != NULL && ossl_rsa_pss_params_30_maskgenalg(pss) == NID_mgf1) { in DER_w_MaskGenAlgorithm()
250 int maskgenhashalg_nid = ossl_rsa_pss_params_30_maskgenhashalg(pss); in DER_w_MaskGenAlgorithm()
283 const RSA_PSS_PARAMS_30 *pss) in ossl_DER_w_RSASSA_PSS_params() argument
299 if (!ossl_assert(pss != NULL in ossl_DER_w_RSASSA_PSS_params()
300 && !ossl_rsa_pss_params_30_is_unrestricted(pss))) in ossl_DER_w_RSASSA_PSS_params()
303 hashalg_nid = ossl_rsa_pss_params_30_hashalg(pss); in ossl_DER_w_RSASSA_PSS_params()
304 saltlen = ossl_rsa_pss_params_30_saltlen(pss); in ossl_DER_w_RSASSA_PSS_params()
305 trailerfield = ossl_rsa_pss_params_30_trailerfield(pss); in ossl_DER_w_RSASSA_PSS_params()
351 && DER_w_MaskGenAlgorithm(pkt, 1, pss) in ossl_DER_w_RSASSA_PSS_params()
[all …]
/freebsd/crypto/openssl/test/ssl-tests/
H A D04-client_auth.cnf9 test-4 = 4-client-auth-flex-rsa-pss
10 test-5 = 5-client-auth-flex-rsa-pss-bad
29 test-24 = 24-client-auth-TLSv1.2-rsa-pss
30 test-25 = 25-client-auth-TLSv1.2-rsa-pss-bad
149 [4-client-auth-flex-rsa-pss]
150 ssl_conf = 4-client-auth-flex-rsa-pss-ssl
152 [4-client-auth-flex-rsa-pss-ssl]
153 server = 4-client-auth-flex-rsa-pss-server
154 client = 4-client-auth-flex-rsa-pss-client
156 [4-client-auth-flex-rsa-pss-server]
[all …]
H A D04-client_auth.cnf.in172 name => "client-auth-${protocol_name}-rsa-pss"
186 "Certificate" => test_pem("client-pss-restrict-cert.pem"),
187 "PrivateKey" => test_pem("client-pss-restrict-key.pem"),
200 name => "client-auth-${protocol_name}-rsa-pss-bad"
214 "Certificate" => test_pem("client-pss-restrict-cert.pem"),
215 "PrivateKey" => test_pem("client-pss-restrict-key.pem"),
H A D20-cert-select.cnf434 SignatureAlgorithms = RSA-pss+SHA256
457 PSS.Certificate = ${ENV::TEST_CERTS_DIR}/server-pss-cert.pem
458 PSS.PrivateKey = ${ENV::TEST_CERTS_DIR}/server-pss-key.pem
819 PSS.Certificate = ${ENV::TEST_CERTS_DIR}/server-pss-cert.pem
820 PSS.PrivateKey = ${ENV::TEST_CERTS_DIR}/server-pss-key.pem
854 PSS.Certificate = ${ENV::TEST_CERTS_DIR}/server-pss-cert.pem
855 PSS.PrivateKey = ${ENV::TEST_CERTS_DIR}/server-pss-key.pem
890 PSS.Certificate = ${ENV::TEST_CERTS_DIR}/server-pss-cert.pem
891 PSS.PrivateKey = ${ENV::TEST_CERTS_DIR}/server-pss-key.pem
917 Certificate = ${ENV::TEST_CERTS_DIR}/server-pss-cert.pem
[all …]
H A D20-cert-select.cnf.in40 "PSS.Certificate" => test_pem("server-pss-cert.pem"),
41 "PSS.PrivateKey" => test_pem("server-pss-key.pem"),
52 "Certificate" => test_pem("server-pss-cert.pem"),
53 "PrivateKey" => test_pem("server-pss-key.pem"),
57 "Certificate" => test_pem("server-pss-restrict-cert.pem"),
58 "PrivateKey" => test_pem("server-pss-restrict-key.pem"),
70 "PSS.Certificate" => test_pem("server-pss-cert.pem"),
71 "PSS.PrivateKey" => test_pem("server-pss-key.pem"),
604 "Certificate" => test_pem("server-pss-cert.pem"),
605 "PrivateKey" => test_pem("server-pss-key.pem"),
/freebsd/crypto/openssl/test/certs/
H A Dsetup.sh230 openssl req -new -x509 -key ee-key.pem -subj /CN=ee-self-signed-pss -out ee-self-signed-pss.pem -da…
231 -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:digest
439 ./mkcert.sh genee PSS-SHA1 ee-key ee-pss-sha1-cert ca-key ca-cert \
440 -sha1 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:digest
442 ./mkcert.sh genee PSS-SHA256 ee-key ee-pss-sha256-cert ca-key ca-cert \
443 -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:digest
445 ./mkcert.sh genca "CA-PSS" ca-pss-key ca-pss-cert root-key root-cert \
446 -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1
447 ./mkcert.sh genee "EE-PSS" ee-key ee-pss-cert ca-pss-key ca-pss-cert \
448 -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1
[all …]
/freebsd/lib/libprocstat/
H A Dcore.c383 struct ps_strings pss; in get_args() local
393 if (core_read_mem(core, &pss, sizeof(pss), psstrings, true) == -1) in get_args()
396 addr = (vm_offset_t)pss.ps_argvstr; in get_args()
397 nstr = pss.ps_nargvstr; in get_args()
399 addr = (vm_offset_t)pss.ps_envstr; in get_args()
400 nstr = pss.ps_nenvstr; in get_args()
/freebsd/crypto/openssl/include/crypto/
H A Drsa.h77 int ossl_rsa_pss_params_30_todata(const RSA_PSS_PARAMS_30 *pss,
83 int ossl_rsa_set0_pss_params(RSA *r, RSA_PSS_PARAMS *pss);
84 int ossl_rsa_pss_get_param_unverified(const RSA_PSS_PARAMS *pss,
/freebsd/crypto/openssl/providers/common/include/prov/
H A Dder_rsa.h181 const RSA_PSS_PARAMS_30 *pss);
186 const RSA_PSS_PARAMS_30 *pss);
H A Dder_rsa.h.in27 const RSA_PSS_PARAMS_30 *pss);
32 const RSA_PSS_PARAMS_30 *pss);
/freebsd/crypto/openssl/doc/man7/
H A DEVP_SIGNATURE-RSA.pod96 =item "pss" (B<OSSL_PKEY_RSA_PAD_MODE_PSS>)
102 The digest algorithm name to use for the maskGenAlgorithm used by "pss" mode.
111 The "pss" mode minimum salt length. The value can either be an integer,
149 =item "rsa-pss-saltlen-check" (B<OSSL_SIGNATURE_PARAM_FIPS_RSA_PSS_SALTLEN_CHECK>) <integer>
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c2218 off_t ps, pss, po, pos, us, uss, uo, uos; in ctl_be_block_open_file() local
2283 pss = ps / cbe_lun->blocksize; in ctl_be_block_open_file()
2285 if ((pss > 0) && (pss * cbe_lun->blocksize == ps) && (pss >= pos) && in ctl_be_block_open_file()
2286 ((pss & (pss - 1)) == 0) && (pos * cbe_lun->blocksize == po)) { in ctl_be_block_open_file()
2287 cbe_lun->pblockexp = fls(pss) - 1; in ctl_be_block_open_file()
2288 cbe_lun->pblockoff = (pss - pos) % pss; in ctl_be_block_open_file()
2329 off_t ps, pss, po, pos, us, uss, uo, uos, otmp; in ctl_be_block_open_dev() local
2449 pss = ps / cbe_lun->blocksize; in ctl_be_block_open_dev()
2451 if ((pss > 0) && (pss * cbe_lun->blocksize == ps) && (pss >= pos) && in ctl_be_block_open_dev()
2452 ((pss & (pss - 1)) == 0) && (pos * cbe_lun->blocksize == po)) { in ctl_be_block_open_dev()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dcore_names.h.in90 #define OSSL_PKEY_RSA_PAD_MODE_PSS "pss"
92 /* RSA pss padding salt length */
/freebsd/sys/kern/
H A Dkern_proc.c1870 struct freebsd32_ps_strings pss; in get_proc_vector32()
1879 if (vmspace_iop(td, vm, PROC_PS_STRINGS(p), &pss, sizeof(pss), in get_proc_vector32()
1880 UIO_READ) != sizeof(pss)) in get_proc_vector32()
1884 vptr = (vm_offset_t)PTRIN(pss.ps_argvstr); in get_proc_vector32()
1885 vsize = pss.ps_nargvstr; in get_proc_vector32()
1891 vptr = (vm_offset_t)PTRIN(pss.ps_envstr); in get_proc_vector32()
1892 vsize = pss.ps_nenvstr; in get_proc_vector32()
1898 vptr = (vm_offset_t)PTRIN(pss.ps_envstr) + in get_proc_vector32()
1899 (pss in get_proc_vector32()
1868 struct freebsd32_ps_strings pss; get_proc_vector32() local
1942 struct ps_strings pss; get_proc_vector() local
[all...]
/freebsd/sys/cam/ata/
H A Data_all.c585 if ((ident_data->pss & ATA_PSS_VALID_MASK) == ATA_PSS_VALID_VALUE && in ata_logical_sector_size()
586 (ident_data->pss & ATA_PSS_LSSABOVE512)) { in ata_logical_sector_size()
596 if ((ident_data->pss & ATA_PSS_VALID_MASK) == ATA_PSS_VALID_VALUE) { in ata_physical_sector_size()
597 if (ident_data->pss & ATA_PSS_MULTLS) { in ata_physical_sector_size()
599 (1 << (ident_data->pss & ATA_PSS_LSPPS))); in ata_physical_sector_size()
/freebsd/sys/contrib/device-tree/src/arm64/xilinx/
H A Dzynqmp-clk-ccf.dtsi13 pss_ref_clk: pss-ref-clk {
29 pss_alt_ref_clk: pss-alt-ref-clk {
/freebsd/crypto/openssl/crypto/x509/
H A Dx_all.c541 RSA_PSS_PARAMS *pss = ossl_rsa_pss_decode(&cert->sig_alg); in X509_digest_sig() local
545 if (pss == NULL in X509_digest_sig()
546 || !ossl_rsa_pss_get_param_unverified(pss, &mmd, &mgf1md, in X509_digest_sig()
550 RSA_PSS_PARAMS_free(pss); in X509_digest_sig()
554 RSA_PSS_PARAMS_free(pss); in X509_digest_sig()

12