/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_err.c | 18 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_ALGORITHM_MISMATCH), "algorithm mismatch"}, 19 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_BAD_E_VALUE), "bad e value"}, 20 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_BAD_FIXED_HEADER_DECRYPT), 22 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_BAD_PAD_BYTE_COUNT), "bad pad byte count"}, 23 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_BAD_SIGNATURE), "bad signature"}, 24 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_BLOCK_TYPE_IS_NOT_01), 26 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_BLOCK_TYPE_IS_NOT_02), 28 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_DATA_GREATER_THAN_MOD_LEN), 30 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_DATA_TOO_LARGE), "data too large"}, 31 {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE), [all …]
|
H A D | rsa_chk.c | 31 ERR_raise(ERR_LIB_RSA, RSA_R_VALUE_MISSING); in rsa_validate_keypair_multiprime() 40 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MULTI_PRIME_KEY); in rsa_validate_keypair_multiprime() 54 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_validate_keypair_multiprime() 60 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_E_VALUE); in rsa_validate_keypair_multiprime() 64 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_E_VALUE); in rsa_validate_keypair_multiprime() 70 ERR_raise(ERR_LIB_RSA, RSA_R_P_NOT_PRIME); in rsa_validate_keypair_multiprime() 76 ERR_raise(ERR_LIB_RSA, RSA_R_Q_NOT_PRIME); in rsa_validate_keypair_multiprime() 84 ERR_raise(ERR_LIB_RSA, RSA_R_MP_R_NOT_PRIME); in rsa_validate_keypair_multiprime() 103 ERR_raise(ERR_LIB_RSA, RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES); in rsa_validate_keypair_multiprime() 105 ERR_raise(ERR_LIB_RSA, RSA_R_N_DOES_NOT_EQUAL_P_Q); in rsa_validate_keypair_multiprime() [all …]
|
H A D | rsa_pk1.c | 35 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE); in RSA_padding_add_PKCS1_type_1() 75 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PADDING); in RSA_padding_check_PKCS1_type_1() 82 ERR_raise(ERR_LIB_RSA, RSA_R_BLOCK_TYPE_IS_NOT_01); in RSA_padding_check_PKCS1_type_1() 94 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_FIXED_HEADER_DECRYPT); in RSA_padding_check_PKCS1_type_1() 102 ERR_raise(ERR_LIB_RSA, RSA_R_NULL_BEFORE_BLOCK_MISSING); in RSA_padding_check_PKCS1_type_1() 107 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_PAD_BYTE_COUNT); in RSA_padding_check_PKCS1_type_1() 113 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE); in RSA_padding_check_PKCS1_type_1() 129 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE); in ossl_rsa_padding_add_PKCS1_type_2_ex() 132 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_LENGTH); in ossl_rsa_padding_add_PKCS1_type_2_ex() 186 ERR_raise(ERR_LIB_RSA, RSA_R_PKCS_DECODING_ERROR); in RSA_padding_check_PKCS1_type_2() [all …]
|
H A D | rsa_pmeth.c | 116 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in setup_tbuf() 148 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_DIGEST_LENGTH); in pkey_rsa_sign() 163 ERR_raise(ERR_LIB_RSA, RSA_R_KEY_SIZE_TOO_SMALL); in pkey_rsa_sign() 167 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in pkey_rsa_sign() 226 ERR_raise(ERR_LIB_RSA, RSA_R_ALGORITHM_MISMATCH); in pkey_rsa_verifyrecover() 230 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_DIGEST_LENGTH); in pkey_rsa_verifyrecover() 273 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_DIGEST_LENGTH); in pkey_rsa_verify() 387 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PADDING_MODE); in check_padding_md() 393 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_X931_DIGEST); in check_padding_md() 419 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_DIGEST); in check_padding_md() [all …]
|
H A D | rsa_sign.c | 250 ERR_raise(ERR_LIB_RSA, RSA_R_UNKNOWN_ALGORITHM_TYPE); in encode_pkcs1() 255 ERR_raise(ERR_LIB_RSA, in encode_pkcs1() 262 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in encode_pkcs1() 294 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MESSAGE_LENGTH); in RSA_sign() 306 ERR_raise(ERR_LIB_RSA, RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY); in RSA_sign() 340 ERR_raise(ERR_LIB_RSA, RSA_R_WRONG_SIGNATURE_LENGTH); in ossl_rsa_verify() 347 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in ossl_rsa_verify() 365 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_SIGNATURE); in ossl_rsa_verify() 374 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MESSAGE_LENGTH); in ossl_rsa_verify() 379 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_SIGNATURE); in ossl_rsa_verify() [all …]
|
H A D | rsa_pss.c | 69 ERR_raise(ERR_LIB_RSA, RSA_R_SLEN_CHECK_FAILED); in RSA_verify_PKCS1_PSS_mgf1() 76 ERR_raise(ERR_LIB_RSA, RSA_R_FIRST_OCTET_INVALID); in RSA_verify_PKCS1_PSS_mgf1() 84 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE); in RSA_verify_PKCS1_PSS_mgf1() 90 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE); in RSA_verify_PKCS1_PSS_mgf1() 94 ERR_raise(ERR_LIB_RSA, RSA_R_LAST_OCTET_INVALID); in RSA_verify_PKCS1_PSS_mgf1() 101 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_verify_PKCS1_PSS_mgf1() 112 ERR_raise(ERR_LIB_RSA, RSA_R_SLEN_RECOVERY_FAILED); in RSA_verify_PKCS1_PSS_mgf1() 116 ERR_raise_data(ERR_LIB_RSA, RSA_R_SLEN_CHECK_FAILED, in RSA_verify_PKCS1_PSS_mgf1() 132 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_SIGNATURE); in RSA_verify_PKCS1_PSS_mgf1() 182 ERR_raise(ERR_LIB_RSA, RSA_R_SLEN_CHECK_FAILED); in RSA_padding_add_PKCS1_PSS_mgf1() [all …]
|
H A D | rsa_ossl.c | 83 ERR_raise(ERR_LIB_RSA, RSA_R_MODULUS_TOO_LARGE); in rsa_ossl_public_encrypt() 88 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_E_VALUE); in rsa_ossl_public_encrypt() 95 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_E_VALUE); in rsa_ossl_public_encrypt() 108 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_ossl_public_encrypt() 126 ERR_raise(ERR_LIB_RSA, RSA_R_UNKNOWN_PADDING_TYPE); in rsa_ossl_public_encrypt() 137 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_MODULUS); in rsa_ossl_public_encrypt() 266 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_ossl_private_encrypt() 281 ERR_raise(ERR_LIB_RSA, RSA_R_UNKNOWN_PADDING_TYPE); in rsa_ossl_private_encrypt() 292 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_MODULUS); in rsa_ossl_private_encrypt() 304 ERR_raise(ERR_LIB_RSA, ERR_R_INTERNAL_ERROR); in rsa_ossl_private_encrypt() [all …]
|
H A D | rsa_x931.c | 36 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE); in RSA_padding_add_X931() 67 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_HEADER); in RSA_padding_check_X931() 78 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PADDING); in RSA_padding_check_X931() 86 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PADDING); in RSA_padding_check_X931() 95 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_TRAILER); in RSA_padding_check_X931()
|
H A D | rsa_oaep.c | 72 ERR_raise(ERR_LIB_RSA, ERR_R_PASSED_NULL_PARAMETER); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 81 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_LENGTH); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 87 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 92 ERR_raise(ERR_LIB_RSA, RSA_R_KEY_SIZE_TOO_SMALL); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 116 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 179 ERR_raise(ERR_LIB_RSA, ERR_R_PASSED_NULL_PARAMETER); in RSA_padding_check_PKCS1_OAEP_mgf1() 200 ERR_raise(ERR_LIB_RSA, RSA_R_OAEP_DECODING_ERROR); in RSA_padding_check_PKCS1_OAEP_mgf1() 207 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_padding_check_PKCS1_OAEP_mgf1() 213 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_padding_check_PKCS1_OAEP_mgf1() 314 ERR_raise(ERR_LIB_RSA, RSA_R_OAEP_DECODING_ERROR); in RSA_padding_check_PKCS1_OAEP_mgf1()
|
H A D | rsa_saos.c | 39 ERR_raise(ERR_LIB_RSA, RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY); in RSA_sign_ASN1_OCTET_STRING() 44 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_sign_ASN1_OCTET_STRING() 70 ERR_raise(ERR_LIB_RSA, RSA_R_WRONG_SIGNATURE_LENGTH); in RSA_verify_ASN1_OCTET_STRING() 76 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_verify_ASN1_OCTET_STRING() 91 ERR_raise(ERR_LIB_RSA, RSA_R_BAD_SIGNATURE); in RSA_verify_ASN1_OCTET_STRING()
|
H A D | rsa_sp800_56b_check.c | 293 ERR_raise(ERR_LIB_RSA, RSA_R_MODULUS_TOO_LARGE); 303 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_KEY_LENGTH); 308 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MODULUS); 313 ERR_raise(ERR_LIB_RSA, RSA_R_PUB_EXPONENT_OUT_OF_RANGE); 328 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MODULUS); 341 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MODULUS); 386 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_REQUEST); 397 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_REQUEST); 404 ERR_raise(ERR_LIB_RSA, RSA_R_PUB_EXPONENT_OUT_OF_RANGE); 409 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_KEYPAIR); [all …]
|
H A D | rsa_none.c | 24 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE); in RSA_padding_add_none() 29 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE); in RSA_padding_add_none() 42 ERR_raise(ERR_LIB_RSA, RSA_R_DATA_TOO_LARGE); in RSA_padding_check_none()
|
H A D | rsa_crpt.c | 132 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_setup_blinding() 139 ERR_raise(ERR_LIB_RSA, RSA_R_NO_PUBLIC_EXPONENT); in RSA_setup_blinding() 150 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_setup_blinding() 161 ERR_raise(ERR_LIB_RSA, ERR_R_BN_LIB); in RSA_setup_blinding()
|
H A D | rsa_sp800_56b_gen.c | 92 ERR_raise(ERR_LIB_RSA, RSA_R_KEY_SIZE_TOO_SMALL); in ossl_rsa_fips186_4_gen_prob_primes() 97 ERR_raise(ERR_LIB_RSA, RSA_R_PUB_EXPONENT_OUT_OF_RANGE); in ossl_rsa_fips186_4_gen_prob_primes() 179 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_MODULUS); in ossl_rsa_sp800_56b_validate_strength() 184 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_STRENGTH); in ossl_rsa_sp800_56b_validate_strength() 204 ERR_raise(ERR_LIB_RSA, in rsa_validate_rng_strength() 445 ERR_raise(ERR_LIB_RSA, RSA_R_PAIRWISE_TEST_FAILURE); in ossl_rsa_sp800_56b_pairwise_test()
|
H A D | rsa_ameth.c | 157 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_priv_encode() 164 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_priv_encode() 431 ERR_raise(ERR_LIB_RSA, ERR_R_INTERNAL_ERROR); in rsa_pkey_ctrl() 533 ERR_raise(ERR_LIB_RSA, RSA_R_UNSUPPORTED_SIGNATURE_TYPE); in ossl_rsa_pss_to_ctx() 540 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PSS_PARAMETERS); in ossl_rsa_pss_to_ctx() 553 ERR_raise(ERR_LIB_RSA, RSA_R_DIGEST_DOES_NOT_MATCH); in ossl_rsa_pss_to_ctx() 578 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_SALT_LENGTH); in rsa_pss_verify_param() 586 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_TRAILER); in rsa_pss_verify_param() 621 ERR_raise(ERR_LIB_RSA, RSA_R_UNSUPPORTED_SIGNATURE_TYPE); in rsa_item_verify()
|
H A D | rsa_meth.c | 34 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_meth_new() 60 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_meth_dup() 74 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in RSA_meth_set1_name()
|
H A D | rsa_gen.c | 90 ERR_raise(ERR_LIB_RSA, RSA_R_KEY_SIZE_TOO_SMALL); in rsa_multiprime_keygen() 96 ERR_raise(ERR_LIB_RSA, RSA_R_PUB_EXPONENT_OUT_OF_RANGE); in rsa_multiprime_keygen() 102 ERR_raise(ERR_LIB_RSA, RSA_R_KEY_PRIME_NUM_INVALID); in rsa_multiprime_keygen() 415 ERR_raise(ERR_LIB_RSA, ERR_R_BN_LIB); in rsa_multiprime_keygen()
|
H A D | rsa_prn.c | 28 ERR_raise(ERR_LIB_RSA, ERR_R_BUF_LIB); in RSA_print_fp()
|
H A D | rsa_lib.c | 80 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_new_intern() 87 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in rsa_new_intern() 98 ERR_raise(ERR_LIB_RSA, ERR_R_ENGINE_LIB); in rsa_new_intern() 108 ERR_raise(ERR_LIB_RSA, ERR_R_ENGINE_LIB); in rsa_new_intern() 122 ERR_raise(ERR_LIB_RSA, ERR_R_INIT_FAIL); in rsa_new_intern() 795 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in DEFINE_STACK_OF()
|
H A D | rsa_backend.c | 393 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in ossl_rsa_dup() 535 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PSS_PARAMETERS); in ossl_rsa_param_decode() 560 ERR_raise(ERR_LIB_RSA, ERR_R_RSA_LIB); in ossl_rsa_key_from_pkcs8()
|
H A D | rsa_mp.c | 37 ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE); in ossl_rsa_multip_info_new()
|
/freebsd/crypto/openssl/providers/common/der/ |
H A D | der_rsa_key.c | 309 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_SALT_LENGTH); in ossl_DER_w_RSASSA_PSS_params() 313 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_TRAILER); in ossl_DER_w_RSASSA_PSS_params()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | err.h | 74 # define ERR_LIB_RSA 4 macro 161 # define RSAerr(f, r) ERR_raise_data(ERR_LIB_RSA, (r), NULL) 317 # define ERR_R_RSA_LIB (ERR_LIB_RSA/* 4 */ | ERR_RFLAG_COMMON)
|
H A D | err.h.in | 76 # define ERR_LIB_RSA 4 macro 163 # define RSAerr(f, r) ERR_raise_data(ERR_LIB_RSA, (r), NULL) 319 # define ERR_R_RSA_LIB (ERR_LIB_RSA/* 4 */ | ERR_RFLAG_COMMON)
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_rsa.c | 255 ERR_raise(ERR_LIB_RSA, RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE); in rsa_cms_verify()
|