diff options
| author | beck <> | 2024-04-09 13:52:42 +0000 |
|---|---|---|
| committer | beck <> | 2024-04-09 13:52:42 +0000 |
| commit | 9835bb3c82adc630df1f3aaa7dfbf7f0506b0bc4 (patch) | |
| tree | b9ee99887d6be79187ba476e0f6ac92f0820775f /src | |
| parent | ff7fd7aeaea1f0a05367ac6a249cc170a3000a10 (diff) | |
| download | openbsd-9835bb3c82adc630df1f3aaa7dfbf7f0506b0bc4.tar.gz openbsd-9835bb3c82adc630df1f3aaa7dfbf7f0506b0bc4.tar.bz2 openbsd-9835bb3c82adc630df1f3aaa7dfbf7f0506b0bc4.zip | |
Hide public symbols in evp.h
largely mechanically done by the guentherizer 9000
ok tb@
Diffstat (limited to 'src')
47 files changed, 1121 insertions, 45 deletions
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace index ae248759a6..e17e38e6f5 100644 --- a/src/lib/libcrypto/Symbols.namespace +++ b/src/lib/libcrypto/Symbols.namespace | |||
| @@ -2560,3 +2560,352 @@ _libre_AES_ctr128_encrypt | |||
| 2560 | _libre_AES_ige_encrypt | 2560 | _libre_AES_ige_encrypt |
| 2561 | _libre_AES_wrap_key | 2561 | _libre_AES_wrap_key |
| 2562 | _libre_AES_unwrap_key | 2562 | _libre_AES_unwrap_key |
| 2563 | _libre_EVP_MD_type | ||
| 2564 | _libre_EVP_MD_pkey_type | ||
| 2565 | _libre_EVP_MD_size | ||
| 2566 | _libre_EVP_MD_block_size | ||
| 2567 | _libre_EVP_MD_flags | ||
| 2568 | _libre_EVP_MD_CTX_md | ||
| 2569 | _libre_EVP_MD_CTX_md_data | ||
| 2570 | _libre_EVP_MD_CTX_pkey_ctx | ||
| 2571 | _libre_EVP_MD_CTX_set_pkey_ctx | ||
| 2572 | _libre_EVP_CIPHER_nid | ||
| 2573 | _libre_EVP_CIPHER_block_size | ||
| 2574 | _libre_EVP_CIPHER_key_length | ||
| 2575 | _libre_EVP_CIPHER_iv_length | ||
| 2576 | _libre_EVP_CIPHER_flags | ||
| 2577 | _libre_EVP_CIPHER_CTX_cipher | ||
| 2578 | _libre_EVP_CIPHER_CTX_encrypting | ||
| 2579 | _libre_EVP_CIPHER_CTX_nid | ||
| 2580 | _libre_EVP_CIPHER_CTX_block_size | ||
| 2581 | _libre_EVP_CIPHER_CTX_key_length | ||
| 2582 | _libre_EVP_CIPHER_CTX_iv_length | ||
| 2583 | _libre_EVP_CIPHER_CTX_get_iv | ||
| 2584 | _libre_EVP_CIPHER_CTX_set_iv | ||
| 2585 | _libre_EVP_CIPHER_CTX_copy | ||
| 2586 | _libre_EVP_CIPHER_CTX_get_app_data | ||
| 2587 | _libre_EVP_CIPHER_CTX_set_app_data | ||
| 2588 | _libre_EVP_CIPHER_CTX_get_cipher_data | ||
| 2589 | _libre_EVP_CIPHER_CTX_set_cipher_data | ||
| 2590 | _libre_EVP_CIPHER_CTX_buf_noconst | ||
| 2591 | _libre_EVP_CIPHER_CTX_flags | ||
| 2592 | _libre_EVP_CIPHER_meth_new | ||
| 2593 | _libre_EVP_CIPHER_meth_dup | ||
| 2594 | _libre_EVP_CIPHER_meth_free | ||
| 2595 | _libre_EVP_CIPHER_meth_set_iv_length | ||
| 2596 | _libre_EVP_CIPHER_meth_set_flags | ||
| 2597 | _libre_EVP_CIPHER_meth_set_impl_ctx_size | ||
| 2598 | _libre_EVP_CIPHER_meth_set_init | ||
| 2599 | _libre_EVP_CIPHER_meth_set_do_cipher | ||
| 2600 | _libre_EVP_CIPHER_meth_set_cleanup | ||
| 2601 | _libre_EVP_CIPHER_meth_set_set_asn1_params | ||
| 2602 | _libre_EVP_CIPHER_meth_set_get_asn1_params | ||
| 2603 | _libre_EVP_CIPHER_meth_set_ctrl | ||
| 2604 | _libre_EVP_PKEY_new_raw_private_key | ||
| 2605 | _libre_EVP_PKEY_new_raw_public_key | ||
| 2606 | _libre_EVP_PKEY_get_raw_private_key | ||
| 2607 | _libre_EVP_PKEY_get_raw_public_key | ||
| 2608 | _libre_EVP_Cipher | ||
| 2609 | _libre_EVP_MD_CTX_new | ||
| 2610 | _libre_EVP_MD_CTX_free | ||
| 2611 | _libre_EVP_MD_CTX_reset | ||
| 2612 | _libre_EVP_MD_CTX_create | ||
| 2613 | _libre_EVP_MD_CTX_destroy | ||
| 2614 | _libre_EVP_MD_CTX_cleanup | ||
| 2615 | _libre_EVP_MD_CTX_copy_ex | ||
| 2616 | _libre_EVP_MD_CTX_set_flags | ||
| 2617 | _libre_EVP_MD_CTX_clear_flags | ||
| 2618 | _libre_EVP_MD_CTX_ctrl | ||
| 2619 | _libre_EVP_MD_CTX_test_flags | ||
| 2620 | _libre_EVP_DigestInit_ex | ||
| 2621 | _libre_EVP_DigestUpdate | ||
| 2622 | _libre_EVP_DigestFinal_ex | ||
| 2623 | _libre_EVP_Digest | ||
| 2624 | _libre_EVP_MD_CTX_copy | ||
| 2625 | _libre_EVP_DigestInit | ||
| 2626 | _libre_EVP_DigestFinal | ||
| 2627 | _libre_EVP_read_pw_string | ||
| 2628 | _libre_EVP_read_pw_string_min | ||
| 2629 | _libre_EVP_set_pw_prompt | ||
| 2630 | _libre_EVP_get_pw_prompt | ||
| 2631 | _libre_EVP_BytesToKey | ||
| 2632 | _libre_EVP_CIPHER_CTX_set_flags | ||
| 2633 | _libre_EVP_CIPHER_CTX_clear_flags | ||
| 2634 | _libre_EVP_CIPHER_CTX_test_flags | ||
| 2635 | _libre_EVP_EncryptInit | ||
| 2636 | _libre_EVP_EncryptInit_ex | ||
| 2637 | _libre_EVP_EncryptUpdate | ||
| 2638 | _libre_EVP_EncryptFinal_ex | ||
| 2639 | _libre_EVP_DecryptInit | ||
| 2640 | _libre_EVP_DecryptInit_ex | ||
| 2641 | _libre_EVP_DecryptUpdate | ||
| 2642 | _libre_EVP_DecryptFinal_ex | ||
| 2643 | _libre_EVP_CipherInit | ||
| 2644 | _libre_EVP_CipherInit_ex | ||
| 2645 | _libre_EVP_CipherUpdate | ||
| 2646 | _libre_EVP_CipherFinal_ex | ||
| 2647 | _libre_EVP_SignFinal | ||
| 2648 | _libre_EVP_VerifyFinal | ||
| 2649 | _libre_EVP_DigestSignInit | ||
| 2650 | _libre_EVP_DigestSignFinal | ||
| 2651 | _libre_EVP_DigestSign | ||
| 2652 | _libre_EVP_DigestVerifyInit | ||
| 2653 | _libre_EVP_DigestVerifyFinal | ||
| 2654 | _libre_EVP_DigestVerify | ||
| 2655 | _libre_EVP_OpenInit | ||
| 2656 | _libre_EVP_OpenFinal | ||
| 2657 | _libre_EVP_SealInit | ||
| 2658 | _libre_EVP_SealFinal | ||
| 2659 | _libre_EVP_ENCODE_CTX_new | ||
| 2660 | _libre_EVP_ENCODE_CTX_free | ||
| 2661 | _libre_EVP_EncodeInit | ||
| 2662 | _libre_EVP_EncodeUpdate | ||
| 2663 | _libre_EVP_EncodeFinal | ||
| 2664 | _libre_EVP_EncodeBlock | ||
| 2665 | _libre_EVP_DecodeInit | ||
| 2666 | _libre_EVP_DecodeUpdate | ||
| 2667 | _libre_EVP_DecodeFinal | ||
| 2668 | _libre_EVP_DecodeBlock | ||
| 2669 | _libre_EVP_CIPHER_CTX_cleanup | ||
| 2670 | _libre_EVP_CIPHER_CTX_new | ||
| 2671 | _libre_EVP_CIPHER_CTX_free | ||
| 2672 | _libre_EVP_CIPHER_CTX_reset | ||
| 2673 | _libre_EVP_CIPHER_CTX_set_key_length | ||
| 2674 | _libre_EVP_CIPHER_CTX_set_padding | ||
| 2675 | _libre_EVP_CIPHER_CTX_ctrl | ||
| 2676 | _libre_EVP_CIPHER_CTX_rand_key | ||
| 2677 | _libre_BIO_f_md | ||
| 2678 | _libre_BIO_f_base64 | ||
| 2679 | _libre_BIO_f_cipher | ||
| 2680 | _libre_BIO_set_cipher | ||
| 2681 | _libre_EVP_md_null | ||
| 2682 | _libre_EVP_md4 | ||
| 2683 | _libre_EVP_md5 | ||
| 2684 | _libre_EVP_md5_sha1 | ||
| 2685 | _libre_EVP_sha1 | ||
| 2686 | _libre_EVP_sha224 | ||
| 2687 | _libre_EVP_sha256 | ||
| 2688 | _libre_EVP_sha384 | ||
| 2689 | _libre_EVP_sha512 | ||
| 2690 | _libre_EVP_sha512_224 | ||
| 2691 | _libre_EVP_sha512_256 | ||
| 2692 | _libre_EVP_sha3_224 | ||
| 2693 | _libre_EVP_sha3_256 | ||
| 2694 | _libre_EVP_sha3_384 | ||
| 2695 | _libre_EVP_sha3_512 | ||
| 2696 | _libre_EVP_sm3 | ||
| 2697 | _libre_EVP_ripemd160 | ||
| 2698 | _libre_EVP_whirlpool | ||
| 2699 | _libre_EVP_enc_null | ||
| 2700 | _libre_EVP_des_ecb | ||
| 2701 | _libre_EVP_des_ede | ||
| 2702 | _libre_EVP_des_ede3 | ||
| 2703 | _libre_EVP_des_ede_ecb | ||
| 2704 | _libre_EVP_des_ede3_ecb | ||
| 2705 | _libre_EVP_des_cfb64 | ||
| 2706 | _libre_EVP_des_cfb1 | ||
| 2707 | _libre_EVP_des_cfb8 | ||
| 2708 | _libre_EVP_des_ede_cfb64 | ||
| 2709 | _libre_EVP_des_ede3_cfb64 | ||
| 2710 | _libre_EVP_des_ede3_cfb1 | ||
| 2711 | _libre_EVP_des_ede3_cfb8 | ||
| 2712 | _libre_EVP_des_ofb | ||
| 2713 | _libre_EVP_des_ede_ofb | ||
| 2714 | _libre_EVP_des_ede3_ofb | ||
| 2715 | _libre_EVP_des_cbc | ||
| 2716 | _libre_EVP_des_ede_cbc | ||
| 2717 | _libre_EVP_des_ede3_cbc | ||
| 2718 | _libre_EVP_desx_cbc | ||
| 2719 | _libre_EVP_rc4 | ||
| 2720 | _libre_EVP_rc4_40 | ||
| 2721 | _libre_EVP_idea_ecb | ||
| 2722 | _libre_EVP_idea_cfb64 | ||
| 2723 | _libre_EVP_idea_ofb | ||
| 2724 | _libre_EVP_idea_cbc | ||
| 2725 | _libre_EVP_rc2_ecb | ||
| 2726 | _libre_EVP_rc2_cbc | ||
| 2727 | _libre_EVP_rc2_40_cbc | ||
| 2728 | _libre_EVP_rc2_64_cbc | ||
| 2729 | _libre_EVP_rc2_cfb64 | ||
| 2730 | _libre_EVP_rc2_ofb | ||
| 2731 | _libre_EVP_bf_ecb | ||
| 2732 | _libre_EVP_bf_cbc | ||
| 2733 | _libre_EVP_bf_cfb64 | ||
| 2734 | _libre_EVP_bf_ofb | ||
| 2735 | _libre_EVP_cast5_ecb | ||
| 2736 | _libre_EVP_cast5_cbc | ||
| 2737 | _libre_EVP_cast5_cfb64 | ||
| 2738 | _libre_EVP_cast5_ofb | ||
| 2739 | _libre_EVP_aes_128_ecb | ||
| 2740 | _libre_EVP_aes_128_cbc | ||
| 2741 | _libre_EVP_aes_128_cfb1 | ||
| 2742 | _libre_EVP_aes_128_cfb8 | ||
| 2743 | _libre_EVP_aes_128_cfb128 | ||
| 2744 | _libre_EVP_aes_128_ofb | ||
| 2745 | _libre_EVP_aes_128_ctr | ||
| 2746 | _libre_EVP_aes_128_ccm | ||
| 2747 | _libre_EVP_aes_128_gcm | ||
| 2748 | _libre_EVP_aes_128_wrap | ||
| 2749 | _libre_EVP_aes_128_xts | ||
| 2750 | _libre_EVP_aes_192_ecb | ||
| 2751 | _libre_EVP_aes_192_cbc | ||
| 2752 | _libre_EVP_aes_192_cfb1 | ||
| 2753 | _libre_EVP_aes_192_cfb8 | ||
| 2754 | _libre_EVP_aes_192_cfb128 | ||
| 2755 | _libre_EVP_aes_192_ofb | ||
| 2756 | _libre_EVP_aes_192_ctr | ||
| 2757 | _libre_EVP_aes_192_ccm | ||
| 2758 | _libre_EVP_aes_192_gcm | ||
| 2759 | _libre_EVP_aes_192_wrap | ||
| 2760 | _libre_EVP_aes_256_ecb | ||
| 2761 | _libre_EVP_aes_256_cbc | ||
| 2762 | _libre_EVP_aes_256_cfb1 | ||
| 2763 | _libre_EVP_aes_256_cfb8 | ||
| 2764 | _libre_EVP_aes_256_cfb128 | ||
| 2765 | _libre_EVP_aes_256_ofb | ||
| 2766 | _libre_EVP_aes_256_ctr | ||
| 2767 | _libre_EVP_aes_256_ccm | ||
| 2768 | _libre_EVP_aes_256_gcm | ||
| 2769 | _libre_EVP_aes_256_wrap | ||
| 2770 | _libre_EVP_aes_256_xts | ||
| 2771 | _libre_EVP_chacha20_poly1305 | ||
| 2772 | _libre_EVP_camellia_128_ecb | ||
| 2773 | _libre_EVP_camellia_128_cbc | ||
| 2774 | _libre_EVP_camellia_128_cfb1 | ||
| 2775 | _libre_EVP_camellia_128_cfb8 | ||
| 2776 | _libre_EVP_camellia_128_cfb128 | ||
| 2777 | _libre_EVP_camellia_128_ofb | ||
| 2778 | _libre_EVP_camellia_192_ecb | ||
| 2779 | _libre_EVP_camellia_192_cbc | ||
| 2780 | _libre_EVP_camellia_192_cfb1 | ||
| 2781 | _libre_EVP_camellia_192_cfb8 | ||
| 2782 | _libre_EVP_camellia_192_cfb128 | ||
| 2783 | _libre_EVP_camellia_192_ofb | ||
| 2784 | _libre_EVP_camellia_256_ecb | ||
| 2785 | _libre_EVP_camellia_256_cbc | ||
| 2786 | _libre_EVP_camellia_256_cfb1 | ||
| 2787 | _libre_EVP_camellia_256_cfb8 | ||
| 2788 | _libre_EVP_camellia_256_cfb128 | ||
| 2789 | _libre_EVP_camellia_256_ofb | ||
| 2790 | _libre_EVP_chacha20 | ||
| 2791 | _libre_EVP_sm4_ecb | ||
| 2792 | _libre_EVP_sm4_cbc | ||
| 2793 | _libre_EVP_sm4_cfb128 | ||
| 2794 | _libre_EVP_sm4_ofb | ||
| 2795 | _libre_EVP_sm4_ctr | ||
| 2796 | _libre_OPENSSL_add_all_algorithms_noconf | ||
| 2797 | _libre_OPENSSL_add_all_algorithms_conf | ||
| 2798 | _libre_OpenSSL_add_all_ciphers | ||
| 2799 | _libre_OpenSSL_add_all_digests | ||
| 2800 | _libre_EVP_get_cipherbyname | ||
| 2801 | _libre_EVP_get_digestbyname | ||
| 2802 | _libre_EVP_cleanup | ||
| 2803 | _libre_EVP_CIPHER_do_all | ||
| 2804 | _libre_EVP_CIPHER_do_all_sorted | ||
| 2805 | _libre_EVP_MD_do_all | ||
| 2806 | _libre_EVP_MD_do_all_sorted | ||
| 2807 | _libre_EVP_PKEY_decrypt_old | ||
| 2808 | _libre_EVP_PKEY_encrypt_old | ||
| 2809 | _libre_EVP_PKEY_type | ||
| 2810 | _libre_EVP_PKEY_id | ||
| 2811 | _libre_EVP_PKEY_base_id | ||
| 2812 | _libre_EVP_PKEY_bits | ||
| 2813 | _libre_EVP_PKEY_security_bits | ||
| 2814 | _libre_EVP_PKEY_size | ||
| 2815 | _libre_EVP_PKEY_set_type | ||
| 2816 | _libre_EVP_PKEY_set_type_str | ||
| 2817 | _libre_EVP_PKEY_assign | ||
| 2818 | _libre_EVP_PKEY_get0 | ||
| 2819 | _libre_EVP_PKEY_get0_hmac | ||
| 2820 | _libre_EVP_PKEY_get0_RSA | ||
| 2821 | _libre_EVP_PKEY_get1_RSA | ||
| 2822 | _libre_EVP_PKEY_set1_RSA | ||
| 2823 | _libre_EVP_PKEY_get0_DSA | ||
| 2824 | _libre_EVP_PKEY_get1_DSA | ||
| 2825 | _libre_EVP_PKEY_set1_DSA | ||
| 2826 | _libre_EVP_PKEY_get0_DH | ||
| 2827 | _libre_EVP_PKEY_get1_DH | ||
| 2828 | _libre_EVP_PKEY_set1_DH | ||
| 2829 | _libre_EVP_PKEY_get0_EC_KEY | ||
| 2830 | _libre_EVP_PKEY_get1_EC_KEY | ||
| 2831 | _libre_EVP_PKEY_set1_EC_KEY | ||
| 2832 | _libre_EVP_PKEY_new | ||
| 2833 | _libre_EVP_PKEY_free | ||
| 2834 | _libre_EVP_PKEY_up_ref | ||
| 2835 | _libre_d2i_PublicKey | ||
| 2836 | _libre_i2d_PublicKey | ||
| 2837 | _libre_d2i_PrivateKey | ||
| 2838 | _libre_d2i_AutoPrivateKey | ||
| 2839 | _libre_i2d_PrivateKey | ||
| 2840 | _libre_EVP_PKEY_copy_parameters | ||
| 2841 | _libre_EVP_PKEY_missing_parameters | ||
| 2842 | _libre_EVP_PKEY_save_parameters | ||
| 2843 | _libre_EVP_PKEY_cmp_parameters | ||
| 2844 | _libre_EVP_PKEY_cmp | ||
| 2845 | _libre_EVP_PKEY_print_public | ||
| 2846 | _libre_EVP_PKEY_print_private | ||
| 2847 | _libre_EVP_PKEY_print_params | ||
| 2848 | _libre_EVP_PKEY_get_default_digest_nid | ||
| 2849 | _libre_EVP_CIPHER_type | ||
| 2850 | _libre_PKCS5_PBKDF2_HMAC_SHA1 | ||
| 2851 | _libre_PKCS5_PBKDF2_HMAC | ||
| 2852 | _libre_EVP_PKEY_asn1_get_count | ||
| 2853 | _libre_EVP_PKEY_asn1_get0 | ||
| 2854 | _libre_EVP_PKEY_asn1_find | ||
| 2855 | _libre_EVP_PKEY_asn1_find_str | ||
| 2856 | _libre_EVP_PKEY_asn1_get0_info | ||
| 2857 | _libre_EVP_PKEY_get0_asn1 | ||
| 2858 | _libre_EVP_PKEY_CTX_new | ||
| 2859 | _libre_EVP_PKEY_CTX_new_id | ||
| 2860 | _libre_EVP_PKEY_CTX_dup | ||
| 2861 | _libre_EVP_PKEY_CTX_free | ||
| 2862 | _libre_EVP_PKEY_CTX_ctrl | ||
| 2863 | _libre_EVP_PKEY_CTX_ctrl_str | ||
| 2864 | _libre_EVP_PKEY_CTX_get_operation | ||
| 2865 | _libre_EVP_PKEY_CTX_set0_keygen_info | ||
| 2866 | _libre_EVP_PKEY_new_mac_key | ||
| 2867 | _libre_EVP_PKEY_new_CMAC_key | ||
| 2868 | _libre_EVP_PKEY_CTX_set_data | ||
| 2869 | _libre_EVP_PKEY_CTX_get_data | ||
| 2870 | _libre_EVP_PKEY_CTX_get0_pkey | ||
| 2871 | _libre_EVP_PKEY_CTX_get0_peerkey | ||
| 2872 | _libre_EVP_PKEY_CTX_set_app_data | ||
| 2873 | _libre_EVP_PKEY_CTX_get_app_data | ||
| 2874 | _libre_EVP_PKEY_sign_init | ||
| 2875 | _libre_EVP_PKEY_sign | ||
| 2876 | _libre_EVP_PKEY_verify_init | ||
| 2877 | _libre_EVP_PKEY_verify | ||
| 2878 | _libre_EVP_PKEY_verify_recover_init | ||
| 2879 | _libre_EVP_PKEY_verify_recover | ||
| 2880 | _libre_EVP_PKEY_encrypt_init | ||
| 2881 | _libre_EVP_PKEY_encrypt | ||
| 2882 | _libre_EVP_PKEY_decrypt_init | ||
| 2883 | _libre_EVP_PKEY_decrypt | ||
| 2884 | _libre_EVP_PKEY_derive_init | ||
| 2885 | _libre_EVP_PKEY_derive_set_peer | ||
| 2886 | _libre_EVP_PKEY_derive | ||
| 2887 | _libre_EVP_PKEY_paramgen_init | ||
| 2888 | _libre_EVP_PKEY_paramgen | ||
| 2889 | _libre_EVP_PKEY_keygen_init | ||
| 2890 | _libre_EVP_PKEY_keygen | ||
| 2891 | _libre_EVP_PKEY_check | ||
| 2892 | _libre_EVP_PKEY_public_check | ||
| 2893 | _libre_EVP_PKEY_param_check | ||
| 2894 | _libre_EVP_PKEY_CTX_set_cb | ||
| 2895 | _libre_EVP_PKEY_CTX_get_cb | ||
| 2896 | _libre_EVP_PKEY_CTX_get_keygen_info | ||
| 2897 | _libre_EVP_aead_aes_128_gcm | ||
| 2898 | _libre_EVP_aead_aes_256_gcm | ||
| 2899 | _libre_EVP_aead_chacha20_poly1305 | ||
| 2900 | _libre_EVP_aead_xchacha20_poly1305 | ||
| 2901 | _libre_EVP_AEAD_key_length | ||
| 2902 | _libre_EVP_AEAD_nonce_length | ||
| 2903 | _libre_EVP_AEAD_max_overhead | ||
| 2904 | _libre_EVP_AEAD_max_tag_len | ||
| 2905 | _libre_EVP_AEAD_CTX_new | ||
| 2906 | _libre_EVP_AEAD_CTX_free | ||
| 2907 | _libre_EVP_AEAD_CTX_init | ||
| 2908 | _libre_EVP_AEAD_CTX_cleanup | ||
| 2909 | _libre_EVP_AEAD_CTX_seal | ||
| 2910 | _libre_EVP_AEAD_CTX_open | ||
| 2911 | _libre_ERR_load_EVP_strings | ||
diff --git a/src/lib/libcrypto/asn1/a_pkey.c b/src/lib/libcrypto/asn1/a_pkey.c index 1e8ebc913f..a730728076 100644 --- a/src/lib/libcrypto/asn1/a_pkey.c +++ b/src/lib/libcrypto/asn1/a_pkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_pkey.c,v 1.7 2023/11/19 15:46:09 tb Exp $ */ | 1 | /* $OpenBSD: a_pkey.c,v 1.8 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -115,6 +115,7 @@ d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp, long length) | |||
| 115 | EVP_PKEY_free(ret); | 115 | EVP_PKEY_free(ret); |
| 116 | return (NULL); | 116 | return (NULL); |
| 117 | } | 117 | } |
| 118 | LCRYPTO_ALIAS(d2i_PrivateKey); | ||
| 118 | 119 | ||
| 119 | int | 120 | int |
| 120 | i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | 121 | i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) |
| @@ -131,6 +132,7 @@ i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | |||
| 131 | ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); | 132 | ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); |
| 132 | return (-1); | 133 | return (-1); |
| 133 | } | 134 | } |
| 135 | LCRYPTO_ALIAS(i2d_PrivateKey); | ||
| 134 | 136 | ||
| 135 | /* This works like d2i_PrivateKey() except it automatically works out the type */ | 137 | /* This works like d2i_PrivateKey() except it automatically works out the type */ |
| 136 | 138 | ||
| @@ -176,3 +178,4 @@ d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp, long length) | |||
| 176 | sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); | 178 | sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); |
| 177 | return d2i_PrivateKey(keytype, a, pp, length); | 179 | return d2i_PrivateKey(keytype, a, pp, length); |
| 178 | } | 180 | } |
| 181 | LCRYPTO_ALIAS(d2i_AutoPrivateKey); | ||
diff --git a/src/lib/libcrypto/asn1/a_pubkey.c b/src/lib/libcrypto/asn1/a_pubkey.c index 5e022d34ec..544f3d2cf0 100644 --- a/src/lib/libcrypto/asn1/a_pubkey.c +++ b/src/lib/libcrypto/asn1/a_pubkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_pubkey.c,v 1.6 2023/07/07 19:37:52 beck Exp $ */ | 1 | /* $OpenBSD: a_pubkey.c,v 1.7 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -136,6 +136,7 @@ d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, long length) | |||
| 136 | EVP_PKEY_free(ret); | 136 | EVP_PKEY_free(ret); |
| 137 | return (NULL); | 137 | return (NULL); |
| 138 | } | 138 | } |
| 139 | LCRYPTO_ALIAS(d2i_PublicKey); | ||
| 139 | 140 | ||
| 140 | int | 141 | int |
| 141 | i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) | 142 | i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) |
| @@ -158,3 +159,4 @@ i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) | |||
| 158 | return (-1); | 159 | return (-1); |
| 159 | } | 160 | } |
| 160 | } | 161 | } |
| 162 | LCRYPTO_ALIAS(i2d_PublicKey); | ||
diff --git a/src/lib/libcrypto/crypto_init.c b/src/lib/libcrypto/crypto_init.c index ddd3ec19bc..4521036639 100644 --- a/src/lib/libcrypto/crypto_init.c +++ b/src/lib/libcrypto/crypto_init.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto_init.c,v 1.19 2024/03/19 19:27:33 tb Exp $ */ | 1 | /* $OpenBSD: crypto_init.c,v 1.20 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -98,19 +98,23 @@ void | |||
| 98 | OpenSSL_add_all_ciphers(void) | 98 | OpenSSL_add_all_ciphers(void) |
| 99 | { | 99 | { |
| 100 | } | 100 | } |
| 101 | LCRYPTO_ALIAS(OpenSSL_add_all_ciphers); | ||
| 101 | 102 | ||
| 102 | void | 103 | void |
| 103 | OpenSSL_add_all_digests(void) | 104 | OpenSSL_add_all_digests(void) |
| 104 | { | 105 | { |
| 105 | } | 106 | } |
| 107 | LCRYPTO_ALIAS(OpenSSL_add_all_digests); | ||
| 106 | 108 | ||
| 107 | void | 109 | void |
| 108 | OPENSSL_add_all_algorithms_noconf(void) | 110 | OPENSSL_add_all_algorithms_noconf(void) |
| 109 | { | 111 | { |
| 110 | } | 112 | } |
| 113 | LCRYPTO_ALIAS(OPENSSL_add_all_algorithms_noconf); | ||
| 111 | 114 | ||
| 112 | void | 115 | void |
| 113 | OPENSSL_add_all_algorithms_conf(void) | 116 | OPENSSL_add_all_algorithms_conf(void) |
| 114 | { | 117 | { |
| 115 | OPENSSL_config(NULL); | 118 | OPENSSL_config(NULL); |
| 116 | } | 119 | } |
| 120 | LCRYPTO_ALIAS(OPENSSL_add_all_algorithms_conf); | ||
diff --git a/src/lib/libcrypto/evp/bio_b64.c b/src/lib/libcrypto/evp/bio_b64.c index 3c47628f54..32cd1f06df 100644 --- a/src/lib/libcrypto/evp/bio_b64.c +++ b/src/lib/libcrypto/evp/bio_b64.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio_b64.c,v 1.28 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: bio_b64.c,v 1.29 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -111,6 +111,7 @@ BIO_f_base64(void) | |||
| 111 | { | 111 | { |
| 112 | return (&methods_b64); | 112 | return (&methods_b64); |
| 113 | } | 113 | } |
| 114 | LCRYPTO_ALIAS(BIO_f_base64); | ||
| 114 | 115 | ||
| 115 | static int | 116 | static int |
| 116 | b64_new(BIO *bi) | 117 | b64_new(BIO *bi) |
diff --git a/src/lib/libcrypto/evp/bio_enc.c b/src/lib/libcrypto/evp/bio_enc.c index f9a95f53ec..62712830a8 100644 --- a/src/lib/libcrypto/evp/bio_enc.c +++ b/src/lib/libcrypto/evp/bio_enc.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio_enc.c,v 1.31 2024/03/25 04:05:22 joshua Exp $ */ | 1 | /* $OpenBSD: bio_enc.c,v 1.32 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -107,6 +107,7 @@ BIO_f_cipher(void) | |||
| 107 | { | 107 | { |
| 108 | return (&methods_enc); | 108 | return (&methods_enc); |
| 109 | } | 109 | } |
| 110 | LCRYPTO_ALIAS(BIO_f_cipher); | ||
| 110 | 111 | ||
| 111 | static void | 112 | static void |
| 112 | bio_enc_ctx_free(BIO_ENC_CTX *ctx) | 113 | bio_enc_ctx_free(BIO_ENC_CTX *ctx) |
| @@ -426,3 +427,4 @@ BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, | |||
| 426 | 427 | ||
| 427 | return 1; | 428 | return 1; |
| 428 | } | 429 | } |
| 430 | LCRYPTO_ALIAS(BIO_set_cipher); | ||
diff --git a/src/lib/libcrypto/evp/bio_md.c b/src/lib/libcrypto/evp/bio_md.c index ccfcd1ea1d..420192d23c 100644 --- a/src/lib/libcrypto/evp/bio_md.c +++ b/src/lib/libcrypto/evp/bio_md.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio_md.c,v 1.21 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: bio_md.c,v 1.22 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -94,6 +94,7 @@ BIO_f_md(void) | |||
| 94 | { | 94 | { |
| 95 | return (&methods_md); | 95 | return (&methods_md); |
| 96 | } | 96 | } |
| 97 | LCRYPTO_ALIAS(BIO_f_md); | ||
| 97 | 98 | ||
| 98 | static int | 99 | static int |
| 99 | md_new(BIO *bi) | 100 | md_new(BIO *bi) |
diff --git a/src/lib/libcrypto/evp/e_aes.c b/src/lib/libcrypto/evp/e_aes.c index 1102b21c15..6135c7d84a 100644 --- a/src/lib/libcrypto/evp/e_aes.c +++ b/src/lib/libcrypto/evp/e_aes.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_aes.c,v 1.57 2024/04/09 13:48:51 beck Exp $ */ | 1 | /* $OpenBSD: e_aes.c,v 1.58 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -572,6 +572,7 @@ EVP_aes_128_cbc(void) | |||
| 572 | return &aes_128_cbc; | 572 | return &aes_128_cbc; |
| 573 | #endif | 573 | #endif |
| 574 | } | 574 | } |
| 575 | LCRYPTO_ALIAS(EVP_aes_128_cbc); | ||
| 575 | 576 | ||
| 576 | #ifdef AESNI_CAPABLE | 577 | #ifdef AESNI_CAPABLE |
| 577 | static const EVP_CIPHER aesni_128_ecb = { | 578 | static const EVP_CIPHER aesni_128_ecb = { |
| @@ -606,6 +607,7 @@ EVP_aes_128_ecb(void) | |||
| 606 | return &aes_128_ecb; | 607 | return &aes_128_ecb; |
| 607 | #endif | 608 | #endif |
| 608 | } | 609 | } |
| 610 | LCRYPTO_ALIAS(EVP_aes_128_ecb); | ||
| 609 | 611 | ||
| 610 | #ifdef AESNI_CAPABLE | 612 | #ifdef AESNI_CAPABLE |
| 611 | static const EVP_CIPHER aesni_128_ofb = { | 613 | static const EVP_CIPHER aesni_128_ofb = { |
| @@ -640,6 +642,7 @@ EVP_aes_128_ofb(void) | |||
| 640 | return &aes_128_ofb; | 642 | return &aes_128_ofb; |
| 641 | #endif | 643 | #endif |
| 642 | } | 644 | } |
| 645 | LCRYPTO_ALIAS(EVP_aes_128_ofb); | ||
| 643 | 646 | ||
| 644 | #ifdef AESNI_CAPABLE | 647 | #ifdef AESNI_CAPABLE |
| 645 | static const EVP_CIPHER aesni_128_cfb = { | 648 | static const EVP_CIPHER aesni_128_cfb = { |
| @@ -674,6 +677,7 @@ EVP_aes_128_cfb128(void) | |||
| 674 | return &aes_128_cfb; | 677 | return &aes_128_cfb; |
| 675 | #endif | 678 | #endif |
| 676 | } | 679 | } |
| 680 | LCRYPTO_ALIAS(EVP_aes_128_cfb128); | ||
| 677 | 681 | ||
| 678 | #ifdef AESNI_CAPABLE | 682 | #ifdef AESNI_CAPABLE |
| 679 | static const EVP_CIPHER aesni_128_cfb1 = { | 683 | static const EVP_CIPHER aesni_128_cfb1 = { |
| @@ -708,6 +712,7 @@ EVP_aes_128_cfb1(void) | |||
| 708 | return &aes_128_cfb1; | 712 | return &aes_128_cfb1; |
| 709 | #endif | 713 | #endif |
| 710 | } | 714 | } |
| 715 | LCRYPTO_ALIAS(EVP_aes_128_cfb1); | ||
| 711 | 716 | ||
| 712 | #ifdef AESNI_CAPABLE | 717 | #ifdef AESNI_CAPABLE |
| 713 | static const EVP_CIPHER aesni_128_cfb8 = { | 718 | static const EVP_CIPHER aesni_128_cfb8 = { |
| @@ -742,6 +747,7 @@ EVP_aes_128_cfb8(void) | |||
| 742 | return &aes_128_cfb8; | 747 | return &aes_128_cfb8; |
| 743 | #endif | 748 | #endif |
| 744 | } | 749 | } |
| 750 | LCRYPTO_ALIAS(EVP_aes_128_cfb8); | ||
| 745 | 751 | ||
| 746 | #ifdef AESNI_CAPABLE | 752 | #ifdef AESNI_CAPABLE |
| 747 | static const EVP_CIPHER aesni_128_ctr = { | 753 | static const EVP_CIPHER aesni_128_ctr = { |
| @@ -776,6 +782,7 @@ EVP_aes_128_ctr(void) | |||
| 776 | return &aes_128_ctr; | 782 | return &aes_128_ctr; |
| 777 | #endif | 783 | #endif |
| 778 | } | 784 | } |
| 785 | LCRYPTO_ALIAS(EVP_aes_128_ctr); | ||
| 779 | 786 | ||
| 780 | 787 | ||
| 781 | #ifdef AESNI_CAPABLE | 788 | #ifdef AESNI_CAPABLE |
| @@ -811,6 +818,7 @@ EVP_aes_192_cbc(void) | |||
| 811 | return &aes_192_cbc; | 818 | return &aes_192_cbc; |
| 812 | #endif | 819 | #endif |
| 813 | } | 820 | } |
| 821 | LCRYPTO_ALIAS(EVP_aes_192_cbc); | ||
| 814 | 822 | ||
| 815 | #ifdef AESNI_CAPABLE | 823 | #ifdef AESNI_CAPABLE |
| 816 | static const EVP_CIPHER aesni_192_ecb = { | 824 | static const EVP_CIPHER aesni_192_ecb = { |
| @@ -845,6 +853,7 @@ EVP_aes_192_ecb(void) | |||
| 845 | return &aes_192_ecb; | 853 | return &aes_192_ecb; |
| 846 | #endif | 854 | #endif |
| 847 | } | 855 | } |
| 856 | LCRYPTO_ALIAS(EVP_aes_192_ecb); | ||
| 848 | 857 | ||
| 849 | #ifdef AESNI_CAPABLE | 858 | #ifdef AESNI_CAPABLE |
| 850 | static const EVP_CIPHER aesni_192_ofb = { | 859 | static const EVP_CIPHER aesni_192_ofb = { |
| @@ -879,6 +888,7 @@ EVP_aes_192_ofb(void) | |||
| 879 | return &aes_192_ofb; | 888 | return &aes_192_ofb; |
| 880 | #endif | 889 | #endif |
| 881 | } | 890 | } |
| 891 | LCRYPTO_ALIAS(EVP_aes_192_ofb); | ||
| 882 | 892 | ||
| 883 | #ifdef AESNI_CAPABLE | 893 | #ifdef AESNI_CAPABLE |
| 884 | static const EVP_CIPHER aesni_192_cfb = { | 894 | static const EVP_CIPHER aesni_192_cfb = { |
| @@ -913,6 +923,7 @@ EVP_aes_192_cfb128(void) | |||
| 913 | return &aes_192_cfb; | 923 | return &aes_192_cfb; |
| 914 | #endif | 924 | #endif |
| 915 | } | 925 | } |
| 926 | LCRYPTO_ALIAS(EVP_aes_192_cfb128); | ||
| 916 | 927 | ||
| 917 | #ifdef AESNI_CAPABLE | 928 | #ifdef AESNI_CAPABLE |
| 918 | static const EVP_CIPHER aesni_192_cfb1 = { | 929 | static const EVP_CIPHER aesni_192_cfb1 = { |
| @@ -947,6 +958,7 @@ EVP_aes_192_cfb1(void) | |||
| 947 | return &aes_192_cfb1; | 958 | return &aes_192_cfb1; |
| 948 | #endif | 959 | #endif |
| 949 | } | 960 | } |
| 961 | LCRYPTO_ALIAS(EVP_aes_192_cfb1); | ||
| 950 | 962 | ||
| 951 | #ifdef AESNI_CAPABLE | 963 | #ifdef AESNI_CAPABLE |
| 952 | static const EVP_CIPHER aesni_192_cfb8 = { | 964 | static const EVP_CIPHER aesni_192_cfb8 = { |
| @@ -981,6 +993,7 @@ EVP_aes_192_cfb8(void) | |||
| 981 | return &aes_192_cfb8; | 993 | return &aes_192_cfb8; |
| 982 | #endif | 994 | #endif |
| 983 | } | 995 | } |
| 996 | LCRYPTO_ALIAS(EVP_aes_192_cfb8); | ||
| 984 | 997 | ||
| 985 | #ifdef AESNI_CAPABLE | 998 | #ifdef AESNI_CAPABLE |
| 986 | static const EVP_CIPHER aesni_192_ctr = { | 999 | static const EVP_CIPHER aesni_192_ctr = { |
| @@ -1015,6 +1028,7 @@ EVP_aes_192_ctr(void) | |||
| 1015 | return &aes_192_ctr; | 1028 | return &aes_192_ctr; |
| 1016 | #endif | 1029 | #endif |
| 1017 | } | 1030 | } |
| 1031 | LCRYPTO_ALIAS(EVP_aes_192_ctr); | ||
| 1018 | 1032 | ||
| 1019 | 1033 | ||
| 1020 | #ifdef AESNI_CAPABLE | 1034 | #ifdef AESNI_CAPABLE |
| @@ -1050,6 +1064,7 @@ EVP_aes_256_cbc(void) | |||
| 1050 | return &aes_256_cbc; | 1064 | return &aes_256_cbc; |
| 1051 | #endif | 1065 | #endif |
| 1052 | } | 1066 | } |
| 1067 | LCRYPTO_ALIAS(EVP_aes_256_cbc); | ||
| 1053 | 1068 | ||
| 1054 | #ifdef AESNI_CAPABLE | 1069 | #ifdef AESNI_CAPABLE |
| 1055 | static const EVP_CIPHER aesni_256_ecb = { | 1070 | static const EVP_CIPHER aesni_256_ecb = { |
| @@ -1084,6 +1099,7 @@ EVP_aes_256_ecb(void) | |||
| 1084 | return &aes_256_ecb; | 1099 | return &aes_256_ecb; |
| 1085 | #endif | 1100 | #endif |
| 1086 | } | 1101 | } |
| 1102 | LCRYPTO_ALIAS(EVP_aes_256_ecb); | ||
| 1087 | 1103 | ||
| 1088 | #ifdef AESNI_CAPABLE | 1104 | #ifdef AESNI_CAPABLE |
| 1089 | static const EVP_CIPHER aesni_256_ofb = { | 1105 | static const EVP_CIPHER aesni_256_ofb = { |
| @@ -1118,6 +1134,7 @@ EVP_aes_256_ofb(void) | |||
| 1118 | return &aes_256_ofb; | 1134 | return &aes_256_ofb; |
| 1119 | #endif | 1135 | #endif |
| 1120 | } | 1136 | } |
| 1137 | LCRYPTO_ALIAS(EVP_aes_256_ofb); | ||
| 1121 | 1138 | ||
| 1122 | #ifdef AESNI_CAPABLE | 1139 | #ifdef AESNI_CAPABLE |
| 1123 | static const EVP_CIPHER aesni_256_cfb = { | 1140 | static const EVP_CIPHER aesni_256_cfb = { |
| @@ -1152,6 +1169,7 @@ EVP_aes_256_cfb128(void) | |||
| 1152 | return &aes_256_cfb; | 1169 | return &aes_256_cfb; |
| 1153 | #endif | 1170 | #endif |
| 1154 | } | 1171 | } |
| 1172 | LCRYPTO_ALIAS(EVP_aes_256_cfb128); | ||
| 1155 | 1173 | ||
| 1156 | #ifdef AESNI_CAPABLE | 1174 | #ifdef AESNI_CAPABLE |
| 1157 | static const EVP_CIPHER aesni_256_cfb1 = { | 1175 | static const EVP_CIPHER aesni_256_cfb1 = { |
| @@ -1186,6 +1204,7 @@ EVP_aes_256_cfb1(void) | |||
| 1186 | return &aes_256_cfb1; | 1204 | return &aes_256_cfb1; |
| 1187 | #endif | 1205 | #endif |
| 1188 | } | 1206 | } |
| 1207 | LCRYPTO_ALIAS(EVP_aes_256_cfb1); | ||
| 1189 | 1208 | ||
| 1190 | #ifdef AESNI_CAPABLE | 1209 | #ifdef AESNI_CAPABLE |
| 1191 | static const EVP_CIPHER aesni_256_cfb8 = { | 1210 | static const EVP_CIPHER aesni_256_cfb8 = { |
| @@ -1220,6 +1239,7 @@ EVP_aes_256_cfb8(void) | |||
| 1220 | return &aes_256_cfb8; | 1239 | return &aes_256_cfb8; |
| 1221 | #endif | 1240 | #endif |
| 1222 | } | 1241 | } |
| 1242 | LCRYPTO_ALIAS(EVP_aes_256_cfb8); | ||
| 1223 | 1243 | ||
| 1224 | #ifdef AESNI_CAPABLE | 1244 | #ifdef AESNI_CAPABLE |
| 1225 | static const EVP_CIPHER aesni_256_ctr = { | 1245 | static const EVP_CIPHER aesni_256_ctr = { |
| @@ -1254,6 +1274,7 @@ EVP_aes_256_ctr(void) | |||
| 1254 | return &aes_256_ctr; | 1274 | return &aes_256_ctr; |
| 1255 | #endif | 1275 | #endif |
| 1256 | } | 1276 | } |
| 1277 | LCRYPTO_ALIAS(EVP_aes_256_ctr); | ||
| 1257 | 1278 | ||
| 1258 | static int | 1279 | static int |
| 1259 | aes_gcm_cleanup(EVP_CIPHER_CTX *c) | 1280 | aes_gcm_cleanup(EVP_CIPHER_CTX *c) |
| @@ -1677,6 +1698,7 @@ EVP_aes_128_gcm(void) | |||
| 1677 | return &aes_128_gcm; | 1698 | return &aes_128_gcm; |
| 1678 | #endif | 1699 | #endif |
| 1679 | } | 1700 | } |
| 1701 | LCRYPTO_ALIAS(EVP_aes_128_gcm); | ||
| 1680 | 1702 | ||
| 1681 | #ifdef AESNI_CAPABLE | 1703 | #ifdef AESNI_CAPABLE |
| 1682 | static const EVP_CIPHER aesni_192_gcm = { | 1704 | static const EVP_CIPHER aesni_192_gcm = { |
| @@ -1715,6 +1737,7 @@ EVP_aes_192_gcm(void) | |||
| 1715 | return &aes_192_gcm; | 1737 | return &aes_192_gcm; |
| 1716 | #endif | 1738 | #endif |
| 1717 | } | 1739 | } |
| 1740 | LCRYPTO_ALIAS(EVP_aes_192_gcm); | ||
| 1718 | 1741 | ||
| 1719 | #ifdef AESNI_CAPABLE | 1742 | #ifdef AESNI_CAPABLE |
| 1720 | static const EVP_CIPHER aesni_256_gcm = { | 1743 | static const EVP_CIPHER aesni_256_gcm = { |
| @@ -1753,6 +1776,7 @@ EVP_aes_256_gcm(void) | |||
| 1753 | return &aes_256_gcm; | 1776 | return &aes_256_gcm; |
| 1754 | #endif | 1777 | #endif |
| 1755 | } | 1778 | } |
| 1779 | LCRYPTO_ALIAS(EVP_aes_256_gcm); | ||
| 1756 | 1780 | ||
| 1757 | static int | 1781 | static int |
| 1758 | aes_xts_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) | 1782 | aes_xts_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) |
| @@ -1919,6 +1943,7 @@ EVP_aes_128_xts(void) | |||
| 1919 | return &aes_128_xts; | 1943 | return &aes_128_xts; |
| 1920 | #endif | 1944 | #endif |
| 1921 | } | 1945 | } |
| 1946 | LCRYPTO_ALIAS(EVP_aes_128_xts); | ||
| 1922 | 1947 | ||
| 1923 | #ifdef AESNI_CAPABLE | 1948 | #ifdef AESNI_CAPABLE |
| 1924 | static const EVP_CIPHER aesni_256_xts = { | 1949 | static const EVP_CIPHER aesni_256_xts = { |
| @@ -1957,6 +1982,7 @@ EVP_aes_256_xts(void) | |||
| 1957 | return &aes_256_xts; | 1982 | return &aes_256_xts; |
| 1958 | #endif | 1983 | #endif |
| 1959 | } | 1984 | } |
| 1985 | LCRYPTO_ALIAS(EVP_aes_256_xts); | ||
| 1960 | 1986 | ||
| 1961 | static int | 1987 | static int |
| 1962 | aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) | 1988 | aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) |
| @@ -2157,6 +2183,7 @@ EVP_aes_128_ccm(void) | |||
| 2157 | return &aes_128_ccm; | 2183 | return &aes_128_ccm; |
| 2158 | #endif | 2184 | #endif |
| 2159 | } | 2185 | } |
| 2186 | LCRYPTO_ALIAS(EVP_aes_128_ccm); | ||
| 2160 | 2187 | ||
| 2161 | #ifdef AESNI_CAPABLE | 2188 | #ifdef AESNI_CAPABLE |
| 2162 | static const EVP_CIPHER aesni_192_ccm = { | 2189 | static const EVP_CIPHER aesni_192_ccm = { |
| @@ -2195,6 +2222,7 @@ EVP_aes_192_ccm(void) | |||
| 2195 | return &aes_192_ccm; | 2222 | return &aes_192_ccm; |
| 2196 | #endif | 2223 | #endif |
| 2197 | } | 2224 | } |
| 2225 | LCRYPTO_ALIAS(EVP_aes_192_ccm); | ||
| 2198 | 2226 | ||
| 2199 | #ifdef AESNI_CAPABLE | 2227 | #ifdef AESNI_CAPABLE |
| 2200 | static const EVP_CIPHER aesni_256_ccm = { | 2228 | static const EVP_CIPHER aesni_256_ccm = { |
| @@ -2233,6 +2261,7 @@ EVP_aes_256_ccm(void) | |||
| 2233 | return &aes_256_ccm; | 2261 | return &aes_256_ccm; |
| 2234 | #endif | 2262 | #endif |
| 2235 | } | 2263 | } |
| 2264 | LCRYPTO_ALIAS(EVP_aes_256_ccm); | ||
| 2236 | 2265 | ||
| 2237 | #define EVP_AEAD_AES_GCM_TAG_LEN 16 | 2266 | #define EVP_AEAD_AES_GCM_TAG_LEN 16 |
| 2238 | 2267 | ||
| @@ -2423,12 +2452,14 @@ EVP_aead_aes_128_gcm(void) | |||
| 2423 | { | 2452 | { |
| 2424 | return &aead_aes_128_gcm; | 2453 | return &aead_aes_128_gcm; |
| 2425 | } | 2454 | } |
| 2455 | LCRYPTO_ALIAS(EVP_aead_aes_128_gcm); | ||
| 2426 | 2456 | ||
| 2427 | const EVP_AEAD * | 2457 | const EVP_AEAD * |
| 2428 | EVP_aead_aes_256_gcm(void) | 2458 | EVP_aead_aes_256_gcm(void) |
| 2429 | { | 2459 | { |
| 2430 | return &aead_aes_256_gcm; | 2460 | return &aead_aes_256_gcm; |
| 2431 | } | 2461 | } |
| 2462 | LCRYPTO_ALIAS(EVP_aead_aes_256_gcm); | ||
| 2432 | 2463 | ||
| 2433 | typedef struct { | 2464 | typedef struct { |
| 2434 | union { | 2465 | union { |
| @@ -2557,6 +2588,7 @@ EVP_aes_128_wrap(void) | |||
| 2557 | { | 2588 | { |
| 2558 | return &aes_128_wrap; | 2589 | return &aes_128_wrap; |
| 2559 | } | 2590 | } |
| 2591 | LCRYPTO_ALIAS(EVP_aes_128_wrap); | ||
| 2560 | 2592 | ||
| 2561 | static const EVP_CIPHER aes_192_wrap = { | 2593 | static const EVP_CIPHER aes_192_wrap = { |
| 2562 | .nid = NID_id_aes192_wrap, | 2594 | .nid = NID_id_aes192_wrap, |
| @@ -2578,6 +2610,7 @@ EVP_aes_192_wrap(void) | |||
| 2578 | { | 2610 | { |
| 2579 | return &aes_192_wrap; | 2611 | return &aes_192_wrap; |
| 2580 | } | 2612 | } |
| 2613 | LCRYPTO_ALIAS(EVP_aes_192_wrap); | ||
| 2581 | 2614 | ||
| 2582 | static const EVP_CIPHER aes_256_wrap = { | 2615 | static const EVP_CIPHER aes_256_wrap = { |
| 2583 | .nid = NID_id_aes256_wrap, | 2616 | .nid = NID_id_aes256_wrap, |
| @@ -2599,5 +2632,6 @@ EVP_aes_256_wrap(void) | |||
| 2599 | { | 2632 | { |
| 2600 | return &aes_256_wrap; | 2633 | return &aes_256_wrap; |
| 2601 | } | 2634 | } |
| 2635 | LCRYPTO_ALIAS(EVP_aes_256_wrap); | ||
| 2602 | 2636 | ||
| 2603 | #endif | 2637 | #endif |
diff --git a/src/lib/libcrypto/evp/e_bf.c b/src/lib/libcrypto/evp/e_bf.c index 90a589c608..4f3799975b 100644 --- a/src/lib/libcrypto/evp/e_bf.c +++ b/src/lib/libcrypto/evp/e_bf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_bf.c,v 1.18 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_bf.c,v 1.19 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -177,6 +177,7 @@ EVP_bf_cbc(void) | |||
| 177 | { | 177 | { |
| 178 | return &bf_cbc; | 178 | return &bf_cbc; |
| 179 | } | 179 | } |
| 180 | LCRYPTO_ALIAS(EVP_bf_cbc); | ||
| 180 | 181 | ||
| 181 | static const EVP_CIPHER bf_cfb64 = { | 182 | static const EVP_CIPHER bf_cfb64 = { |
| 182 | .nid = NID_bf_cfb64, | 183 | .nid = NID_bf_cfb64, |
| @@ -198,6 +199,7 @@ EVP_bf_cfb64(void) | |||
| 198 | { | 199 | { |
| 199 | return &bf_cfb64; | 200 | return &bf_cfb64; |
| 200 | } | 201 | } |
| 202 | LCRYPTO_ALIAS(EVP_bf_cfb64); | ||
| 201 | 203 | ||
| 202 | static const EVP_CIPHER bf_ofb = { | 204 | static const EVP_CIPHER bf_ofb = { |
| 203 | .nid = NID_bf_ofb64, | 205 | .nid = NID_bf_ofb64, |
| @@ -219,6 +221,7 @@ EVP_bf_ofb(void) | |||
| 219 | { | 221 | { |
| 220 | return &bf_ofb; | 222 | return &bf_ofb; |
| 221 | } | 223 | } |
| 224 | LCRYPTO_ALIAS(EVP_bf_ofb); | ||
| 222 | 225 | ||
| 223 | static const EVP_CIPHER bf_ecb = { | 226 | static const EVP_CIPHER bf_ecb = { |
| 224 | .nid = NID_bf_ecb, | 227 | .nid = NID_bf_ecb, |
| @@ -240,4 +243,5 @@ EVP_bf_ecb(void) | |||
| 240 | { | 243 | { |
| 241 | return &bf_ecb; | 244 | return &bf_ecb; |
| 242 | } | 245 | } |
| 246 | LCRYPTO_ALIAS(EVP_bf_ecb); | ||
| 243 | #endif | 247 | #endif |
diff --git a/src/lib/libcrypto/evp/e_camellia.c b/src/lib/libcrypto/evp/e_camellia.c index 6d9bedbbcd..55dcc79922 100644 --- a/src/lib/libcrypto/evp/e_camellia.c +++ b/src/lib/libcrypto/evp/e_camellia.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_camellia.c,v 1.19 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_camellia.c,v 1.20 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -178,6 +178,7 @@ EVP_camellia_128_cbc(void) | |||
| 178 | { | 178 | { |
| 179 | return &camellia_128_cbc; | 179 | return &camellia_128_cbc; |
| 180 | } | 180 | } |
| 181 | LCRYPTO_ALIAS(EVP_camellia_128_cbc); | ||
| 181 | 182 | ||
| 182 | static const EVP_CIPHER camellia_128_cfb128 = { | 183 | static const EVP_CIPHER camellia_128_cfb128 = { |
| 183 | .nid = NID_camellia_128_cfb128, | 184 | .nid = NID_camellia_128_cfb128, |
| @@ -199,6 +200,7 @@ EVP_camellia_128_cfb128(void) | |||
| 199 | { | 200 | { |
| 200 | return &camellia_128_cfb128; | 201 | return &camellia_128_cfb128; |
| 201 | } | 202 | } |
| 203 | LCRYPTO_ALIAS(EVP_camellia_128_cfb128); | ||
| 202 | 204 | ||
| 203 | static const EVP_CIPHER camellia_128_ofb = { | 205 | static const EVP_CIPHER camellia_128_ofb = { |
| 204 | .nid = NID_camellia_128_ofb128, | 206 | .nid = NID_camellia_128_ofb128, |
| @@ -220,6 +222,7 @@ EVP_camellia_128_ofb(void) | |||
| 220 | { | 222 | { |
| 221 | return &camellia_128_ofb; | 223 | return &camellia_128_ofb; |
| 222 | } | 224 | } |
| 225 | LCRYPTO_ALIAS(EVP_camellia_128_ofb); | ||
| 223 | 226 | ||
| 224 | static const EVP_CIPHER camellia_128_ecb = { | 227 | static const EVP_CIPHER camellia_128_ecb = { |
| 225 | .nid = NID_camellia_128_ecb, | 228 | .nid = NID_camellia_128_ecb, |
| @@ -241,6 +244,7 @@ EVP_camellia_128_ecb(void) | |||
| 241 | { | 244 | { |
| 242 | return &camellia_128_ecb; | 245 | return &camellia_128_ecb; |
| 243 | } | 246 | } |
| 247 | LCRYPTO_ALIAS(EVP_camellia_128_ecb); | ||
| 244 | 248 | ||
| 245 | static int | 249 | static int |
| 246 | camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 250 | camellia_192_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -332,6 +336,7 @@ EVP_camellia_192_cbc(void) | |||
| 332 | { | 336 | { |
| 333 | return &camellia_192_cbc; | 337 | return &camellia_192_cbc; |
| 334 | } | 338 | } |
| 339 | LCRYPTO_ALIAS(EVP_camellia_192_cbc); | ||
| 335 | 340 | ||
| 336 | static const EVP_CIPHER camellia_192_cfb128 = { | 341 | static const EVP_CIPHER camellia_192_cfb128 = { |
| 337 | .nid = NID_camellia_192_cfb128, | 342 | .nid = NID_camellia_192_cfb128, |
| @@ -353,6 +358,7 @@ EVP_camellia_192_cfb128(void) | |||
| 353 | { | 358 | { |
| 354 | return &camellia_192_cfb128; | 359 | return &camellia_192_cfb128; |
| 355 | } | 360 | } |
| 361 | LCRYPTO_ALIAS(EVP_camellia_192_cfb128); | ||
| 356 | 362 | ||
| 357 | static const EVP_CIPHER camellia_192_ofb = { | 363 | static const EVP_CIPHER camellia_192_ofb = { |
| 358 | .nid = NID_camellia_192_ofb128, | 364 | .nid = NID_camellia_192_ofb128, |
| @@ -374,6 +380,7 @@ EVP_camellia_192_ofb(void) | |||
| 374 | { | 380 | { |
| 375 | return &camellia_192_ofb; | 381 | return &camellia_192_ofb; |
| 376 | } | 382 | } |
| 383 | LCRYPTO_ALIAS(EVP_camellia_192_ofb); | ||
| 377 | 384 | ||
| 378 | static const EVP_CIPHER camellia_192_ecb = { | 385 | static const EVP_CIPHER camellia_192_ecb = { |
| 379 | .nid = NID_camellia_192_ecb, | 386 | .nid = NID_camellia_192_ecb, |
| @@ -395,6 +402,7 @@ EVP_camellia_192_ecb(void) | |||
| 395 | { | 402 | { |
| 396 | return &camellia_192_ecb; | 403 | return &camellia_192_ecb; |
| 397 | } | 404 | } |
| 405 | LCRYPTO_ALIAS(EVP_camellia_192_ecb); | ||
| 398 | 406 | ||
| 399 | static int | 407 | static int |
| 400 | camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 408 | camellia_256_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -486,6 +494,7 @@ EVP_camellia_256_cbc(void) | |||
| 486 | { | 494 | { |
| 487 | return &camellia_256_cbc; | 495 | return &camellia_256_cbc; |
| 488 | } | 496 | } |
| 497 | LCRYPTO_ALIAS(EVP_camellia_256_cbc); | ||
| 489 | 498 | ||
| 490 | static const EVP_CIPHER camellia_256_cfb128 = { | 499 | static const EVP_CIPHER camellia_256_cfb128 = { |
| 491 | .nid = NID_camellia_256_cfb128, | 500 | .nid = NID_camellia_256_cfb128, |
| @@ -507,6 +516,7 @@ EVP_camellia_256_cfb128(void) | |||
| 507 | { | 516 | { |
| 508 | return &camellia_256_cfb128; | 517 | return &camellia_256_cfb128; |
| 509 | } | 518 | } |
| 519 | LCRYPTO_ALIAS(EVP_camellia_256_cfb128); | ||
| 510 | 520 | ||
| 511 | static const EVP_CIPHER camellia_256_ofb = { | 521 | static const EVP_CIPHER camellia_256_ofb = { |
| 512 | .nid = NID_camellia_256_ofb128, | 522 | .nid = NID_camellia_256_ofb128, |
| @@ -528,6 +538,7 @@ EVP_camellia_256_ofb(void) | |||
| 528 | { | 538 | { |
| 529 | return &camellia_256_ofb; | 539 | return &camellia_256_ofb; |
| 530 | } | 540 | } |
| 541 | LCRYPTO_ALIAS(EVP_camellia_256_ofb); | ||
| 531 | 542 | ||
| 532 | static const EVP_CIPHER camellia_256_ecb = { | 543 | static const EVP_CIPHER camellia_256_ecb = { |
| 533 | .nid = NID_camellia_256_ecb, | 544 | .nid = NID_camellia_256_ecb, |
| @@ -549,6 +560,7 @@ EVP_camellia_256_ecb(void) | |||
| 549 | { | 560 | { |
| 550 | return &camellia_256_ecb; | 561 | return &camellia_256_ecb; |
| 551 | } | 562 | } |
| 563 | LCRYPTO_ALIAS(EVP_camellia_256_ecb); | ||
| 552 | 564 | ||
| 553 | static int | 565 | static int |
| 554 | camellia_128_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 566 | camellia_128_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -592,6 +604,7 @@ EVP_camellia_128_cfb1(void) | |||
| 592 | { | 604 | { |
| 593 | return &camellia_128_cfb1; | 605 | return &camellia_128_cfb1; |
| 594 | } | 606 | } |
| 607 | LCRYPTO_ALIAS(EVP_camellia_128_cfb1); | ||
| 595 | 608 | ||
| 596 | static int | 609 | static int |
| 597 | camellia_192_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 610 | camellia_192_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -635,6 +648,7 @@ EVP_camellia_192_cfb1(void) | |||
| 635 | { | 648 | { |
| 636 | return &camellia_192_cfb1; | 649 | return &camellia_192_cfb1; |
| 637 | } | 650 | } |
| 651 | LCRYPTO_ALIAS(EVP_camellia_192_cfb1); | ||
| 638 | 652 | ||
| 639 | static int | 653 | static int |
| 640 | camellia_256_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 654 | camellia_256_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -678,6 +692,7 @@ EVP_camellia_256_cfb1(void) | |||
| 678 | { | 692 | { |
| 679 | return &camellia_256_cfb1; | 693 | return &camellia_256_cfb1; |
| 680 | } | 694 | } |
| 695 | LCRYPTO_ALIAS(EVP_camellia_256_cfb1); | ||
| 681 | 696 | ||
| 682 | 697 | ||
| 683 | static int | 698 | static int |
| @@ -720,6 +735,7 @@ EVP_camellia_128_cfb8(void) | |||
| 720 | { | 735 | { |
| 721 | return &camellia_128_cfb8; | 736 | return &camellia_128_cfb8; |
| 722 | } | 737 | } |
| 738 | LCRYPTO_ALIAS(EVP_camellia_128_cfb8); | ||
| 723 | 739 | ||
| 724 | static int | 740 | static int |
| 725 | camellia_192_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 741 | camellia_192_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -761,6 +777,7 @@ EVP_camellia_192_cfb8(void) | |||
| 761 | { | 777 | { |
| 762 | return &camellia_192_cfb8; | 778 | return &camellia_192_cfb8; |
| 763 | } | 779 | } |
| 780 | LCRYPTO_ALIAS(EVP_camellia_192_cfb8); | ||
| 764 | 781 | ||
| 765 | static int | 782 | static int |
| 766 | camellia_256_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) | 783 | camellia_256_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) |
| @@ -802,4 +819,5 @@ EVP_camellia_256_cfb8(void) | |||
| 802 | { | 819 | { |
| 803 | return &camellia_256_cfb8; | 820 | return &camellia_256_cfb8; |
| 804 | } | 821 | } |
| 822 | LCRYPTO_ALIAS(EVP_camellia_256_cfb8); | ||
| 805 | #endif | 823 | #endif |
diff --git a/src/lib/libcrypto/evp/e_cast.c b/src/lib/libcrypto/evp/e_cast.c index 5c3e504835..1575a7a5bb 100644 --- a/src/lib/libcrypto/evp/e_cast.c +++ b/src/lib/libcrypto/evp/e_cast.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_cast.c,v 1.17 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_cast.c,v 1.18 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -177,6 +177,7 @@ EVP_cast5_cbc(void) | |||
| 177 | { | 177 | { |
| 178 | return &cast5_cbc; | 178 | return &cast5_cbc; |
| 179 | } | 179 | } |
| 180 | LCRYPTO_ALIAS(EVP_cast5_cbc); | ||
| 180 | 181 | ||
| 181 | static const EVP_CIPHER cast5_cfb64 = { | 182 | static const EVP_CIPHER cast5_cfb64 = { |
| 182 | .nid = NID_cast5_cfb64, | 183 | .nid = NID_cast5_cfb64, |
| @@ -198,6 +199,7 @@ EVP_cast5_cfb64(void) | |||
| 198 | { | 199 | { |
| 199 | return &cast5_cfb64; | 200 | return &cast5_cfb64; |
| 200 | } | 201 | } |
| 202 | LCRYPTO_ALIAS(EVP_cast5_cfb64); | ||
| 201 | 203 | ||
| 202 | static const EVP_CIPHER cast5_ofb = { | 204 | static const EVP_CIPHER cast5_ofb = { |
| 203 | .nid = NID_cast5_ofb64, | 205 | .nid = NID_cast5_ofb64, |
| @@ -219,6 +221,7 @@ EVP_cast5_ofb(void) | |||
| 219 | { | 221 | { |
| 220 | return &cast5_ofb; | 222 | return &cast5_ofb; |
| 221 | } | 223 | } |
| 224 | LCRYPTO_ALIAS(EVP_cast5_ofb); | ||
| 222 | 225 | ||
| 223 | static const EVP_CIPHER cast5_ecb = { | 226 | static const EVP_CIPHER cast5_ecb = { |
| 224 | .nid = NID_cast5_ecb, | 227 | .nid = NID_cast5_ecb, |
| @@ -240,4 +243,5 @@ EVP_cast5_ecb(void) | |||
| 240 | { | 243 | { |
| 241 | return &cast5_ecb; | 244 | return &cast5_ecb; |
| 242 | } | 245 | } |
| 246 | LCRYPTO_ALIAS(EVP_cast5_ecb); | ||
| 243 | #endif | 247 | #endif |
diff --git a/src/lib/libcrypto/evp/e_chacha.c b/src/lib/libcrypto/evp/e_chacha.c index 5cd03c7c8d..4c801b3920 100644 --- a/src/lib/libcrypto/evp/e_chacha.c +++ b/src/lib/libcrypto/evp/e_chacha.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_chacha.c,v 1.13 2023/08/24 04:20:57 tb Exp $ */ | 1 | /* $OpenBSD: e_chacha.c,v 1.14 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -72,5 +72,6 @@ EVP_chacha20(void) | |||
| 72 | { | 72 | { |
| 73 | return (&chacha20_cipher); | 73 | return (&chacha20_cipher); |
| 74 | } | 74 | } |
| 75 | LCRYPTO_ALIAS(EVP_chacha20); | ||
| 75 | 76 | ||
| 76 | #endif | 77 | #endif |
diff --git a/src/lib/libcrypto/evp/e_chacha20poly1305.c b/src/lib/libcrypto/evp/e_chacha20poly1305.c index 796824aeeb..cc2e0157e6 100644 --- a/src/lib/libcrypto/evp/e_chacha20poly1305.c +++ b/src/lib/libcrypto/evp/e_chacha20poly1305.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_chacha20poly1305.c,v 1.34 2023/12/30 18:24:09 tb Exp $ */ | 1 | /* $OpenBSD: e_chacha20poly1305.c,v 1.35 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
| @@ -349,6 +349,7 @@ EVP_aead_chacha20_poly1305(void) | |||
| 349 | { | 349 | { |
| 350 | return &aead_chacha20_poly1305; | 350 | return &aead_chacha20_poly1305; |
| 351 | } | 351 | } |
| 352 | LCRYPTO_ALIAS(EVP_aead_chacha20_poly1305); | ||
| 352 | 353 | ||
| 353 | static const EVP_AEAD aead_xchacha20_poly1305 = { | 354 | static const EVP_AEAD aead_xchacha20_poly1305 = { |
| 354 | .key_len = 32, | 355 | .key_len = 32, |
| @@ -367,6 +368,7 @@ EVP_aead_xchacha20_poly1305(void) | |||
| 367 | { | 368 | { |
| 368 | return &aead_xchacha20_poly1305; | 369 | return &aead_xchacha20_poly1305; |
| 369 | } | 370 | } |
| 371 | LCRYPTO_ALIAS(EVP_aead_xchacha20_poly1305); | ||
| 370 | 372 | ||
| 371 | struct chacha20_poly1305_ctx { | 373 | struct chacha20_poly1305_ctx { |
| 372 | ChaCha_ctx chacha; | 374 | ChaCha_ctx chacha; |
| @@ -614,5 +616,6 @@ EVP_chacha20_poly1305(void) | |||
| 614 | { | 616 | { |
| 615 | return &cipher_chacha20_poly1305; | 617 | return &cipher_chacha20_poly1305; |
| 616 | } | 618 | } |
| 619 | LCRYPTO_ALIAS(EVP_chacha20_poly1305); | ||
| 617 | 620 | ||
| 618 | #endif /* !OPENSSL_NO_CHACHA && !OPENSSL_NO_POLY1305 */ | 621 | #endif /* !OPENSSL_NO_CHACHA && !OPENSSL_NO_POLY1305 */ |
diff --git a/src/lib/libcrypto/evp/e_des.c b/src/lib/libcrypto/evp/e_des.c index 7a0b24c1ab..fb335e95b1 100644 --- a/src/lib/libcrypto/evp/e_des.c +++ b/src/lib/libcrypto/evp/e_des.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_des.c,v 1.23 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_des.c,v 1.24 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -241,6 +241,7 @@ EVP_des_cbc(void) | |||
| 241 | { | 241 | { |
| 242 | return &des_cbc; | 242 | return &des_cbc; |
| 243 | } | 243 | } |
| 244 | LCRYPTO_ALIAS(EVP_des_cbc); | ||
| 244 | 245 | ||
| 245 | static const EVP_CIPHER des_cfb64 = { | 246 | static const EVP_CIPHER des_cfb64 = { |
| 246 | .nid = NID_des_cfb64, | 247 | .nid = NID_des_cfb64, |
| @@ -262,6 +263,7 @@ EVP_des_cfb64(void) | |||
| 262 | { | 263 | { |
| 263 | return &des_cfb64; | 264 | return &des_cfb64; |
| 264 | } | 265 | } |
| 266 | LCRYPTO_ALIAS(EVP_des_cfb64); | ||
| 265 | 267 | ||
| 266 | static const EVP_CIPHER des_ofb = { | 268 | static const EVP_CIPHER des_ofb = { |
| 267 | .nid = NID_des_ofb64, | 269 | .nid = NID_des_ofb64, |
| @@ -283,6 +285,7 @@ EVP_des_ofb(void) | |||
| 283 | { | 285 | { |
| 284 | return &des_ofb; | 286 | return &des_ofb; |
| 285 | } | 287 | } |
| 288 | LCRYPTO_ALIAS(EVP_des_ofb); | ||
| 286 | 289 | ||
| 287 | static const EVP_CIPHER des_ecb = { | 290 | static const EVP_CIPHER des_ecb = { |
| 288 | .nid = NID_des_ecb, | 291 | .nid = NID_des_ecb, |
| @@ -304,6 +307,7 @@ EVP_des_ecb(void) | |||
| 304 | { | 307 | { |
| 305 | return &des_ecb; | 308 | return &des_ecb; |
| 306 | } | 309 | } |
| 310 | LCRYPTO_ALIAS(EVP_des_ecb); | ||
| 307 | 311 | ||
| 308 | static const EVP_CIPHER des_cfb1 = { | 312 | static const EVP_CIPHER des_cfb1 = { |
| 309 | .nid = NID_des_cfb1, | 313 | .nid = NID_des_cfb1, |
| @@ -325,6 +329,7 @@ EVP_des_cfb1(void) | |||
| 325 | { | 329 | { |
| 326 | return &des_cfb1; | 330 | return &des_cfb1; |
| 327 | } | 331 | } |
| 332 | LCRYPTO_ALIAS(EVP_des_cfb1); | ||
| 328 | 333 | ||
| 329 | static const EVP_CIPHER des_cfb8 = { | 334 | static const EVP_CIPHER des_cfb8 = { |
| 330 | .nid = NID_des_cfb8, | 335 | .nid = NID_des_cfb8, |
| @@ -346,4 +351,5 @@ EVP_des_cfb8(void) | |||
| 346 | { | 351 | { |
| 347 | return &des_cfb8; | 352 | return &des_cfb8; |
| 348 | } | 353 | } |
| 354 | LCRYPTO_ALIAS(EVP_des_cfb8); | ||
| 349 | #endif | 355 | #endif |
diff --git a/src/lib/libcrypto/evp/e_des3.c b/src/lib/libcrypto/evp/e_des3.c index f283be2912..48fbcdb366 100644 --- a/src/lib/libcrypto/evp/e_des3.c +++ b/src/lib/libcrypto/evp/e_des3.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_des3.c,v 1.29 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_des3.c,v 1.30 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -273,6 +273,7 @@ EVP_des_ede_cbc(void) | |||
| 273 | { | 273 | { |
| 274 | return &des_ede_cbc; | 274 | return &des_ede_cbc; |
| 275 | } | 275 | } |
| 276 | LCRYPTO_ALIAS(EVP_des_ede_cbc); | ||
| 276 | 277 | ||
| 277 | static const EVP_CIPHER des_ede_cfb64 = { | 278 | static const EVP_CIPHER des_ede_cfb64 = { |
| 278 | .nid = NID_des_ede_cfb64, | 279 | .nid = NID_des_ede_cfb64, |
| @@ -294,6 +295,7 @@ EVP_des_ede_cfb64(void) | |||
| 294 | { | 295 | { |
| 295 | return &des_ede_cfb64; | 296 | return &des_ede_cfb64; |
| 296 | } | 297 | } |
| 298 | LCRYPTO_ALIAS(EVP_des_ede_cfb64); | ||
| 297 | 299 | ||
| 298 | static const EVP_CIPHER des_ede_ofb = { | 300 | static const EVP_CIPHER des_ede_ofb = { |
| 299 | .nid = NID_des_ede_ofb64, | 301 | .nid = NID_des_ede_ofb64, |
| @@ -315,6 +317,7 @@ EVP_des_ede_ofb(void) | |||
| 315 | { | 317 | { |
| 316 | return &des_ede_ofb; | 318 | return &des_ede_ofb; |
| 317 | } | 319 | } |
| 320 | LCRYPTO_ALIAS(EVP_des_ede_ofb); | ||
| 318 | 321 | ||
| 319 | static const EVP_CIPHER des_ede_ecb = { | 322 | static const EVP_CIPHER des_ede_ecb = { |
| 320 | .nid = NID_des_ede_ecb, | 323 | .nid = NID_des_ede_ecb, |
| @@ -336,6 +339,7 @@ EVP_des_ede_ecb(void) | |||
| 336 | { | 339 | { |
| 337 | return &des_ede_ecb; | 340 | return &des_ede_ecb; |
| 338 | } | 341 | } |
| 342 | LCRYPTO_ALIAS(EVP_des_ede_ecb); | ||
| 339 | 343 | ||
| 340 | 344 | ||
| 341 | #define des_ede3_cfb64_cipher des_ede_cfb64_cipher | 345 | #define des_ede3_cfb64_cipher des_ede_cfb64_cipher |
| @@ -363,6 +367,7 @@ EVP_des_ede3_cbc(void) | |||
| 363 | { | 367 | { |
| 364 | return &des_ede3_cbc; | 368 | return &des_ede3_cbc; |
| 365 | } | 369 | } |
| 370 | LCRYPTO_ALIAS(EVP_des_ede3_cbc); | ||
| 366 | 371 | ||
| 367 | static const EVP_CIPHER des_ede3_cfb64 = { | 372 | static const EVP_CIPHER des_ede3_cfb64 = { |
| 368 | .nid = NID_des_ede3_cfb64, | 373 | .nid = NID_des_ede3_cfb64, |
| @@ -384,6 +389,7 @@ EVP_des_ede3_cfb64(void) | |||
| 384 | { | 389 | { |
| 385 | return &des_ede3_cfb64; | 390 | return &des_ede3_cfb64; |
| 386 | } | 391 | } |
| 392 | LCRYPTO_ALIAS(EVP_des_ede3_cfb64); | ||
| 387 | 393 | ||
| 388 | static const EVP_CIPHER des_ede3_ofb = { | 394 | static const EVP_CIPHER des_ede3_ofb = { |
| 389 | .nid = NID_des_ede3_ofb64, | 395 | .nid = NID_des_ede3_ofb64, |
| @@ -405,6 +411,7 @@ EVP_des_ede3_ofb(void) | |||
| 405 | { | 411 | { |
| 406 | return &des_ede3_ofb; | 412 | return &des_ede3_ofb; |
| 407 | } | 413 | } |
| 414 | LCRYPTO_ALIAS(EVP_des_ede3_ofb); | ||
| 408 | 415 | ||
| 409 | static const EVP_CIPHER des_ede3_ecb = { | 416 | static const EVP_CIPHER des_ede3_ecb = { |
| 410 | .nid = NID_des_ede3_ecb, | 417 | .nid = NID_des_ede3_ecb, |
| @@ -426,6 +433,7 @@ EVP_des_ede3_ecb(void) | |||
| 426 | { | 433 | { |
| 427 | return &des_ede3_ecb; | 434 | return &des_ede3_ecb; |
| 428 | } | 435 | } |
| 436 | LCRYPTO_ALIAS(EVP_des_ede3_ecb); | ||
| 429 | 437 | ||
| 430 | 438 | ||
| 431 | static const EVP_CIPHER des_ede3_cfb1 = { | 439 | static const EVP_CIPHER des_ede3_cfb1 = { |
| @@ -448,6 +456,7 @@ EVP_des_ede3_cfb1(void) | |||
| 448 | { | 456 | { |
| 449 | return &des_ede3_cfb1; | 457 | return &des_ede3_cfb1; |
| 450 | } | 458 | } |
| 459 | LCRYPTO_ALIAS(EVP_des_ede3_cfb1); | ||
| 451 | 460 | ||
| 452 | 461 | ||
| 453 | static const EVP_CIPHER des_ede3_cfb8 = { | 462 | static const EVP_CIPHER des_ede3_cfb8 = { |
| @@ -470,16 +479,19 @@ EVP_des_ede3_cfb8(void) | |||
| 470 | { | 479 | { |
| 471 | return &des_ede3_cfb8; | 480 | return &des_ede3_cfb8; |
| 472 | } | 481 | } |
| 482 | LCRYPTO_ALIAS(EVP_des_ede3_cfb8); | ||
| 473 | 483 | ||
| 474 | const EVP_CIPHER * | 484 | const EVP_CIPHER * |
| 475 | EVP_des_ede(void) | 485 | EVP_des_ede(void) |
| 476 | { | 486 | { |
| 477 | return &des_ede_ecb; | 487 | return &des_ede_ecb; |
| 478 | } | 488 | } |
| 489 | LCRYPTO_ALIAS(EVP_des_ede); | ||
| 479 | 490 | ||
| 480 | const EVP_CIPHER * | 491 | const EVP_CIPHER * |
| 481 | EVP_des_ede3(void) | 492 | EVP_des_ede3(void) |
| 482 | { | 493 | { |
| 483 | return &des_ede3_ecb; | 494 | return &des_ede3_ecb; |
| 484 | } | 495 | } |
| 496 | LCRYPTO_ALIAS(EVP_des_ede3); | ||
| 485 | #endif | 497 | #endif |
diff --git a/src/lib/libcrypto/evp/e_idea.c b/src/lib/libcrypto/evp/e_idea.c index 025a1f5087..86cf77602a 100644 --- a/src/lib/libcrypto/evp/e_idea.c +++ b/src/lib/libcrypto/evp/e_idea.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_idea.c,v 1.21 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_idea.c,v 1.22 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -196,6 +196,7 @@ EVP_idea_cbc(void) | |||
| 196 | { | 196 | { |
| 197 | return &idea_cbc; | 197 | return &idea_cbc; |
| 198 | } | 198 | } |
| 199 | LCRYPTO_ALIAS(EVP_idea_cbc); | ||
| 199 | 200 | ||
| 200 | static const EVP_CIPHER idea_cfb64 = { | 201 | static const EVP_CIPHER idea_cfb64 = { |
| 201 | .nid = NID_idea_cfb64, | 202 | .nid = NID_idea_cfb64, |
| @@ -217,6 +218,7 @@ EVP_idea_cfb64(void) | |||
| 217 | { | 218 | { |
| 218 | return &idea_cfb64; | 219 | return &idea_cfb64; |
| 219 | } | 220 | } |
| 221 | LCRYPTO_ALIAS(EVP_idea_cfb64); | ||
| 220 | 222 | ||
| 221 | static const EVP_CIPHER idea_ofb = { | 223 | static const EVP_CIPHER idea_ofb = { |
| 222 | .nid = NID_idea_ofb64, | 224 | .nid = NID_idea_ofb64, |
| @@ -238,6 +240,7 @@ EVP_idea_ofb(void) | |||
| 238 | { | 240 | { |
| 239 | return &idea_ofb; | 241 | return &idea_ofb; |
| 240 | } | 242 | } |
| 243 | LCRYPTO_ALIAS(EVP_idea_ofb); | ||
| 241 | 244 | ||
| 242 | static const EVP_CIPHER idea_ecb = { | 245 | static const EVP_CIPHER idea_ecb = { |
| 243 | .nid = NID_idea_ecb, | 246 | .nid = NID_idea_ecb, |
| @@ -259,4 +262,5 @@ EVP_idea_ecb(void) | |||
| 259 | { | 262 | { |
| 260 | return &idea_ecb; | 263 | return &idea_ecb; |
| 261 | } | 264 | } |
| 265 | LCRYPTO_ALIAS(EVP_idea_ecb); | ||
| 262 | #endif | 266 | #endif |
diff --git a/src/lib/libcrypto/evp/e_null.c b/src/lib/libcrypto/evp/e_null.c index be46c1ccac..bcb8a1e560 100644 --- a/src/lib/libcrypto/evp/e_null.c +++ b/src/lib/libcrypto/evp/e_null.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_null.c,v 1.20 2024/01/07 15:42:57 tb Exp $ */ | 1 | /* $OpenBSD: e_null.c,v 1.21 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -89,6 +89,7 @@ EVP_enc_null(void) | |||
| 89 | { | 89 | { |
| 90 | return (&n_cipher); | 90 | return (&n_cipher); |
| 91 | } | 91 | } |
| 92 | LCRYPTO_ALIAS(EVP_enc_null); | ||
| 92 | 93 | ||
| 93 | static int | 94 | static int |
| 94 | null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 95 | null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
diff --git a/src/lib/libcrypto/evp/e_rc2.c b/src/lib/libcrypto/evp/e_rc2.c index 25caef6e3a..dc404cff20 100644 --- a/src/lib/libcrypto/evp/e_rc2.c +++ b/src/lib/libcrypto/evp/e_rc2.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_rc2.c,v 1.28 2024/03/26 06:58:21 tb Exp $ */ | 1 | /* $OpenBSD: e_rc2.c,v 1.29 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -179,6 +179,7 @@ EVP_rc2_cbc(void) | |||
| 179 | { | 179 | { |
| 180 | return &rc2_cbc; | 180 | return &rc2_cbc; |
| 181 | } | 181 | } |
| 182 | LCRYPTO_ALIAS(EVP_rc2_cbc); | ||
| 182 | 183 | ||
| 183 | static const EVP_CIPHER rc2_cfb64 = { | 184 | static const EVP_CIPHER rc2_cfb64 = { |
| 184 | .nid = NID_rc2_cfb64, | 185 | .nid = NID_rc2_cfb64, |
| @@ -200,6 +201,7 @@ EVP_rc2_cfb64(void) | |||
| 200 | { | 201 | { |
| 201 | return &rc2_cfb64; | 202 | return &rc2_cfb64; |
| 202 | } | 203 | } |
| 204 | LCRYPTO_ALIAS(EVP_rc2_cfb64); | ||
| 203 | 205 | ||
| 204 | static const EVP_CIPHER rc2_ofb = { | 206 | static const EVP_CIPHER rc2_ofb = { |
| 205 | .nid = NID_rc2_ofb64, | 207 | .nid = NID_rc2_ofb64, |
| @@ -221,6 +223,7 @@ EVP_rc2_ofb(void) | |||
| 221 | { | 223 | { |
| 222 | return &rc2_ofb; | 224 | return &rc2_ofb; |
| 223 | } | 225 | } |
| 226 | LCRYPTO_ALIAS(EVP_rc2_ofb); | ||
| 224 | 227 | ||
| 225 | static const EVP_CIPHER rc2_ecb = { | 228 | static const EVP_CIPHER rc2_ecb = { |
| 226 | .nid = NID_rc2_ecb, | 229 | .nid = NID_rc2_ecb, |
| @@ -242,6 +245,7 @@ EVP_rc2_ecb(void) | |||
| 242 | { | 245 | { |
| 243 | return &rc2_ecb; | 246 | return &rc2_ecb; |
| 244 | } | 247 | } |
| 248 | LCRYPTO_ALIAS(EVP_rc2_ecb); | ||
| 245 | 249 | ||
| 246 | #define RC2_40_MAGIC 0xa0 | 250 | #define RC2_40_MAGIC 0xa0 |
| 247 | #define RC2_64_MAGIC 0x78 | 251 | #define RC2_64_MAGIC 0x78 |
| @@ -282,12 +286,14 @@ EVP_rc2_64_cbc(void) | |||
| 282 | { | 286 | { |
| 283 | return (&r2_64_cbc_cipher); | 287 | return (&r2_64_cbc_cipher); |
| 284 | } | 288 | } |
| 289 | LCRYPTO_ALIAS(EVP_rc2_64_cbc); | ||
| 285 | 290 | ||
| 286 | const EVP_CIPHER * | 291 | const EVP_CIPHER * |
| 287 | EVP_rc2_40_cbc(void) | 292 | EVP_rc2_40_cbc(void) |
| 288 | { | 293 | { |
| 289 | return (&r2_40_cbc_cipher); | 294 | return (&r2_40_cbc_cipher); |
| 290 | } | 295 | } |
| 296 | LCRYPTO_ALIAS(EVP_rc2_40_cbc); | ||
| 291 | 297 | ||
| 292 | static int | 298 | static int |
| 293 | rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 299 | rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
diff --git a/src/lib/libcrypto/evp/e_rc4.c b/src/lib/libcrypto/evp/e_rc4.c index c0f12fb03c..df07483416 100644 --- a/src/lib/libcrypto/evp/e_rc4.c +++ b/src/lib/libcrypto/evp/e_rc4.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_rc4.c,v 1.19 2024/01/07 15:42:57 tb Exp $ */ | 1 | /* $OpenBSD: e_rc4.c,v 1.20 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -117,12 +117,14 @@ EVP_rc4(void) | |||
| 117 | { | 117 | { |
| 118 | return (&r4_cipher); | 118 | return (&r4_cipher); |
| 119 | } | 119 | } |
| 120 | LCRYPTO_ALIAS(EVP_rc4); | ||
| 120 | 121 | ||
| 121 | const EVP_CIPHER * | 122 | const EVP_CIPHER * |
| 122 | EVP_rc4_40(void) | 123 | EVP_rc4_40(void) |
| 123 | { | 124 | { |
| 124 | return (&r4_40_cipher); | 125 | return (&r4_40_cipher); |
| 125 | } | 126 | } |
| 127 | LCRYPTO_ALIAS(EVP_rc4_40); | ||
| 126 | 128 | ||
| 127 | static int | 129 | static int |
| 128 | rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 130 | rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
diff --git a/src/lib/libcrypto/evp/e_sm4.c b/src/lib/libcrypto/evp/e_sm4.c index 85b4d3ca04..cde2f6c64b 100644 --- a/src/lib/libcrypto/evp/e_sm4.c +++ b/src/lib/libcrypto/evp/e_sm4.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_sm4.c,v 1.12 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_sm4.c,v 1.13 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
| 4 | * | 4 | * |
| @@ -164,6 +164,7 @@ EVP_sm4_cbc(void) | |||
| 164 | { | 164 | { |
| 165 | return &sm4_cbc; | 165 | return &sm4_cbc; |
| 166 | } | 166 | } |
| 167 | LCRYPTO_ALIAS(EVP_sm4_cbc); | ||
| 167 | 168 | ||
| 168 | static const EVP_CIPHER sm4_cfb128 = { | 169 | static const EVP_CIPHER sm4_cfb128 = { |
| 169 | .nid = NID_sm4_cfb128, | 170 | .nid = NID_sm4_cfb128, |
| @@ -185,6 +186,7 @@ EVP_sm4_cfb128(void) | |||
| 185 | { | 186 | { |
| 186 | return &sm4_cfb128; | 187 | return &sm4_cfb128; |
| 187 | } | 188 | } |
| 189 | LCRYPTO_ALIAS(EVP_sm4_cfb128); | ||
| 188 | 190 | ||
| 189 | static const EVP_CIPHER sm4_ofb = { | 191 | static const EVP_CIPHER sm4_ofb = { |
| 190 | .nid = NID_sm4_ofb128, | 192 | .nid = NID_sm4_ofb128, |
| @@ -206,6 +208,7 @@ EVP_sm4_ofb(void) | |||
| 206 | { | 208 | { |
| 207 | return &sm4_ofb; | 209 | return &sm4_ofb; |
| 208 | } | 210 | } |
| 211 | LCRYPTO_ALIAS(EVP_sm4_ofb); | ||
| 209 | 212 | ||
| 210 | static const EVP_CIPHER sm4_ecb = { | 213 | static const EVP_CIPHER sm4_ecb = { |
| 211 | .nid = NID_sm4_ecb, | 214 | .nid = NID_sm4_ecb, |
| @@ -227,6 +230,7 @@ EVP_sm4_ecb(void) | |||
| 227 | { | 230 | { |
| 228 | return &sm4_ecb; | 231 | return &sm4_ecb; |
| 229 | } | 232 | } |
| 233 | LCRYPTO_ALIAS(EVP_sm4_ecb); | ||
| 230 | 234 | ||
| 231 | static int | 235 | static int |
| 232 | sm4_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, | 236 | sm4_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, |
| @@ -259,4 +263,5 @@ EVP_sm4_ctr(void) | |||
| 259 | { | 263 | { |
| 260 | return &sm4_ctr_mode; | 264 | return &sm4_ctr_mode; |
| 261 | } | 265 | } |
| 266 | LCRYPTO_ALIAS(EVP_sm4_ctr); | ||
| 262 | #endif | 267 | #endif |
diff --git a/src/lib/libcrypto/evp/e_xcbc_d.c b/src/lib/libcrypto/evp/e_xcbc_d.c index dc01cbb982..1e3bee0791 100644 --- a/src/lib/libcrypto/evp/e_xcbc_d.c +++ b/src/lib/libcrypto/evp/e_xcbc_d.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_xcbc_d.c,v 1.17 2024/01/07 15:42:57 tb Exp $ */ | 1 | /* $OpenBSD: e_xcbc_d.c,v 1.18 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -103,6 +103,7 @@ EVP_desx_cbc(void) | |||
| 103 | { | 103 | { |
| 104 | return (&d_xcbc_cipher); | 104 | return (&d_xcbc_cipher); |
| 105 | } | 105 | } |
| 106 | LCRYPTO_ALIAS(EVP_desx_cbc); | ||
| 106 | 107 | ||
| 107 | static int | 108 | static int |
| 108 | desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 109 | desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
diff --git a/src/lib/libcrypto/evp/evp_aead.c b/src/lib/libcrypto/evp/evp_aead.c index 3579533e5b..b35f5157ed 100644 --- a/src/lib/libcrypto/evp/evp_aead.c +++ b/src/lib/libcrypto/evp/evp_aead.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_aead.c,v 1.10 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: evp_aead.c,v 1.11 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
| 4 | * | 4 | * |
| @@ -28,24 +28,28 @@ EVP_AEAD_key_length(const EVP_AEAD *aead) | |||
| 28 | { | 28 | { |
| 29 | return aead->key_len; | 29 | return aead->key_len; |
| 30 | } | 30 | } |
| 31 | LCRYPTO_ALIAS(EVP_AEAD_key_length); | ||
| 31 | 32 | ||
| 32 | size_t | 33 | size_t |
| 33 | EVP_AEAD_nonce_length(const EVP_AEAD *aead) | 34 | EVP_AEAD_nonce_length(const EVP_AEAD *aead) |
| 34 | { | 35 | { |
| 35 | return aead->nonce_len; | 36 | return aead->nonce_len; |
| 36 | } | 37 | } |
| 38 | LCRYPTO_ALIAS(EVP_AEAD_nonce_length); | ||
| 37 | 39 | ||
| 38 | size_t | 40 | size_t |
| 39 | EVP_AEAD_max_overhead(const EVP_AEAD *aead) | 41 | EVP_AEAD_max_overhead(const EVP_AEAD *aead) |
| 40 | { | 42 | { |
| 41 | return aead->overhead; | 43 | return aead->overhead; |
| 42 | } | 44 | } |
| 45 | LCRYPTO_ALIAS(EVP_AEAD_max_overhead); | ||
| 43 | 46 | ||
| 44 | size_t | 47 | size_t |
| 45 | EVP_AEAD_max_tag_len(const EVP_AEAD *aead) | 48 | EVP_AEAD_max_tag_len(const EVP_AEAD *aead) |
| 46 | { | 49 | { |
| 47 | return aead->max_tag_len; | 50 | return aead->max_tag_len; |
| 48 | } | 51 | } |
| 52 | LCRYPTO_ALIAS(EVP_AEAD_max_tag_len); | ||
| 49 | 53 | ||
| 50 | int | 54 | int |
| 51 | EVP_AEAD_CTX_init(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, | 55 | EVP_AEAD_CTX_init(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, |
| @@ -58,6 +62,7 @@ EVP_AEAD_CTX_init(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, | |||
| 58 | } | 62 | } |
| 59 | return aead->init(ctx, key, key_len, tag_len); | 63 | return aead->init(ctx, key, key_len, tag_len); |
| 60 | } | 64 | } |
| 65 | LCRYPTO_ALIAS(EVP_AEAD_CTX_init); | ||
| 61 | 66 | ||
| 62 | void | 67 | void |
| 63 | EVP_AEAD_CTX_cleanup(EVP_AEAD_CTX *ctx) | 68 | EVP_AEAD_CTX_cleanup(EVP_AEAD_CTX *ctx) |
| @@ -67,12 +72,14 @@ EVP_AEAD_CTX_cleanup(EVP_AEAD_CTX *ctx) | |||
| 67 | ctx->aead->cleanup(ctx); | 72 | ctx->aead->cleanup(ctx); |
| 68 | ctx->aead = NULL; | 73 | ctx->aead = NULL; |
| 69 | } | 74 | } |
| 75 | LCRYPTO_ALIAS(EVP_AEAD_CTX_cleanup); | ||
| 70 | 76 | ||
| 71 | EVP_AEAD_CTX * | 77 | EVP_AEAD_CTX * |
| 72 | EVP_AEAD_CTX_new(void) | 78 | EVP_AEAD_CTX_new(void) |
| 73 | { | 79 | { |
| 74 | return calloc(1, sizeof(EVP_AEAD_CTX)); | 80 | return calloc(1, sizeof(EVP_AEAD_CTX)); |
| 75 | } | 81 | } |
| 82 | LCRYPTO_ALIAS(EVP_AEAD_CTX_new); | ||
| 76 | 83 | ||
| 77 | void | 84 | void |
| 78 | EVP_AEAD_CTX_free(EVP_AEAD_CTX *ctx) | 85 | EVP_AEAD_CTX_free(EVP_AEAD_CTX *ctx) |
| @@ -83,6 +90,7 @@ EVP_AEAD_CTX_free(EVP_AEAD_CTX *ctx) | |||
| 83 | EVP_AEAD_CTX_cleanup(ctx); | 90 | EVP_AEAD_CTX_cleanup(ctx); |
| 84 | free(ctx); | 91 | free(ctx); |
| 85 | } | 92 | } |
| 93 | LCRYPTO_ALIAS(EVP_AEAD_CTX_free); | ||
| 86 | 94 | ||
| 87 | /* check_alias returns 0 if out points within the buffer determined by in | 95 | /* check_alias returns 0 if out points within the buffer determined by in |
| 88 | * and in_len and 1 otherwise. | 96 | * and in_len and 1 otherwise. |
| @@ -133,6 +141,7 @@ error: | |||
| 133 | *out_len = 0; | 141 | *out_len = 0; |
| 134 | return 0; | 142 | return 0; |
| 135 | } | 143 | } |
| 144 | LCRYPTO_ALIAS(EVP_AEAD_CTX_seal); | ||
| 136 | 145 | ||
| 137 | int | 146 | int |
| 138 | EVP_AEAD_CTX_open(const EVP_AEAD_CTX *ctx, unsigned char *out, size_t *out_len, | 147 | EVP_AEAD_CTX_open(const EVP_AEAD_CTX *ctx, unsigned char *out, size_t *out_len, |
| @@ -158,3 +167,4 @@ error: | |||
| 158 | *out_len = 0; | 167 | *out_len = 0; |
| 159 | return 0; | 168 | return 0; |
| 160 | } | 169 | } |
| 170 | LCRYPTO_ALIAS(EVP_AEAD_CTX_open); | ||
diff --git a/src/lib/libcrypto/evp/evp_cipher.c b/src/lib/libcrypto/evp/evp_cipher.c index 48aaea0f1b..c4b5034c25 100644 --- a/src/lib/libcrypto/evp/evp_cipher.c +++ b/src/lib/libcrypto/evp/evp_cipher.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_cipher.c,v 1.21 2024/03/02 09:55:30 tb Exp $ */ | 1 | /* $OpenBSD: evp_cipher.c,v 1.22 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -127,6 +127,7 @@ EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, | |||
| 127 | { | 127 | { |
| 128 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc); | 128 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc); |
| 129 | } | 129 | } |
| 130 | LCRYPTO_ALIAS(EVP_CipherInit); | ||
| 130 | 131 | ||
| 131 | int | 132 | int |
| 132 | EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, | 133 | EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, |
| @@ -242,6 +243,7 @@ EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, | |||
| 242 | 243 | ||
| 243 | return 1; | 244 | return 1; |
| 244 | } | 245 | } |
| 246 | LCRYPTO_ALIAS(EVP_CipherInit_ex); | ||
| 245 | 247 | ||
| 246 | int | 248 | int |
| 247 | EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, | 249 | EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, |
| @@ -252,6 +254,7 @@ EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, | |||
| 252 | 254 | ||
| 253 | return EVP_DecryptUpdate(ctx, out, out_len, in, in_len); | 255 | return EVP_DecryptUpdate(ctx, out, out_len, in, in_len); |
| 254 | } | 256 | } |
| 257 | LCRYPTO_ALIAS(EVP_CipherUpdate); | ||
| 255 | 258 | ||
| 256 | int | 259 | int |
| 257 | EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | 260 | EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) |
| @@ -270,6 +273,7 @@ EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | |||
| 270 | 273 | ||
| 271 | return EVP_DecryptFinal_ex(ctx, out, out_len); | 274 | return EVP_DecryptFinal_ex(ctx, out, out_len); |
| 272 | } | 275 | } |
| 276 | LCRYPTO_ALIAS(EVP_CipherFinal_ex); | ||
| 273 | 277 | ||
| 274 | int | 278 | int |
| 275 | EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, | 279 | EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, |
| @@ -277,6 +281,7 @@ EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, | |||
| 277 | { | 281 | { |
| 278 | return EVP_CipherInit(ctx, cipher, key, iv, 1); | 282 | return EVP_CipherInit(ctx, cipher, key, iv, 1); |
| 279 | } | 283 | } |
| 284 | LCRYPTO_ALIAS(EVP_EncryptInit); | ||
| 280 | 285 | ||
| 281 | int | 286 | int |
| 282 | EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, | 287 | EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, |
| @@ -284,6 +289,7 @@ EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine | |||
| 284 | { | 289 | { |
| 285 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1); | 290 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1); |
| 286 | } | 291 | } |
| 292 | LCRYPTO_ALIAS(EVP_EncryptInit_ex); | ||
| 287 | 293 | ||
| 288 | /* | 294 | /* |
| 289 | * EVP_Cipher() is an implementation detail of EVP_Cipher{Update,Final}(). | 295 | * EVP_Cipher() is an implementation detail of EVP_Cipher{Update,Final}(). |
| @@ -303,6 +309,7 @@ EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, | |||
| 303 | { | 309 | { |
| 304 | return ctx->cipher->do_cipher(ctx, out, in, in_len); | 310 | return ctx->cipher->do_cipher(ctx, out, in, in_len); |
| 305 | } | 311 | } |
| 312 | LCRYPTO_ALIAS(EVP_Cipher); | ||
| 306 | 313 | ||
| 307 | static int | 314 | static int |
| 308 | evp_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, | 315 | evp_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, |
| @@ -413,6 +420,7 @@ EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, | |||
| 413 | 420 | ||
| 414 | return 1; | 421 | return 1; |
| 415 | } | 422 | } |
| 423 | LCRYPTO_ALIAS(EVP_EncryptUpdate); | ||
| 416 | 424 | ||
| 417 | int | 425 | int |
| 418 | EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | 426 | EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) |
| @@ -453,6 +461,7 @@ EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | |||
| 453 | 461 | ||
| 454 | return evp_cipher(ctx, out, out_len, ctx->buf, block_size); | 462 | return evp_cipher(ctx, out, out_len, ctx->buf, block_size); |
| 455 | } | 463 | } |
| 464 | LCRYPTO_ALIAS(EVP_EncryptFinal_ex); | ||
| 456 | 465 | ||
| 457 | int | 466 | int |
| 458 | EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, | 467 | EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, |
| @@ -460,6 +469,7 @@ EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, | |||
| 460 | { | 469 | { |
| 461 | return EVP_CipherInit(ctx, cipher, key, iv, 0); | 470 | return EVP_CipherInit(ctx, cipher, key, iv, 0); |
| 462 | } | 471 | } |
| 472 | LCRYPTO_ALIAS(EVP_DecryptInit); | ||
| 463 | 473 | ||
| 464 | int | 474 | int |
| 465 | EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, | 475 | EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, |
| @@ -467,6 +477,7 @@ EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine | |||
| 467 | { | 477 | { |
| 468 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0); | 478 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0); |
| 469 | } | 479 | } |
| 480 | LCRYPTO_ALIAS(EVP_DecryptInit_ex); | ||
| 470 | 481 | ||
| 471 | int | 482 | int |
| 472 | EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, | 483 | EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, |
| @@ -536,6 +547,7 @@ EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, | |||
| 536 | 547 | ||
| 537 | return 1; | 548 | return 1; |
| 538 | } | 549 | } |
| 550 | LCRYPTO_ALIAS(EVP_DecryptUpdate); | ||
| 539 | 551 | ||
| 540 | int | 552 | int |
| 541 | EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | 553 | EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) |
| @@ -594,12 +606,14 @@ EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | |||
| 594 | 606 | ||
| 595 | return 1; | 607 | return 1; |
| 596 | } | 608 | } |
| 609 | LCRYPTO_ALIAS(EVP_DecryptFinal_ex); | ||
| 597 | 610 | ||
| 598 | EVP_CIPHER_CTX * | 611 | EVP_CIPHER_CTX * |
| 599 | EVP_CIPHER_CTX_new(void) | 612 | EVP_CIPHER_CTX_new(void) |
| 600 | { | 613 | { |
| 601 | return calloc(1, sizeof(EVP_CIPHER_CTX)); | 614 | return calloc(1, sizeof(EVP_CIPHER_CTX)); |
| 602 | } | 615 | } |
| 616 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_new); | ||
| 603 | 617 | ||
| 604 | void | 618 | void |
| 605 | EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) | 619 | EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) |
| @@ -611,6 +625,7 @@ EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) | |||
| 611 | 625 | ||
| 612 | free(ctx); | 626 | free(ctx); |
| 613 | } | 627 | } |
| 628 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_free); | ||
| 614 | 629 | ||
| 615 | void | 630 | void |
| 616 | EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx) | 631 | EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx) |
| @@ -629,6 +644,7 @@ EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) | |||
| 629 | { | 644 | { |
| 630 | return EVP_CIPHER_CTX_cleanup(ctx); | 645 | return EVP_CIPHER_CTX_cleanup(ctx); |
| 631 | } | 646 | } |
| 647 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_reset); | ||
| 632 | 648 | ||
| 633 | int | 649 | int |
| 634 | EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx) | 650 | EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx) |
| @@ -651,6 +667,7 @@ EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx) | |||
| 651 | 667 | ||
| 652 | return 1; | 668 | return 1; |
| 653 | } | 669 | } |
| 670 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_cleanup); | ||
| 654 | 671 | ||
| 655 | int | 672 | int |
| 656 | EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) | 673 | EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) |
| @@ -674,6 +691,7 @@ EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) | |||
| 674 | } | 691 | } |
| 675 | return ret; | 692 | return ret; |
| 676 | } | 693 | } |
| 694 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_ctrl); | ||
| 677 | 695 | ||
| 678 | int | 696 | int |
| 679 | EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key) | 697 | EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key) |
| @@ -683,6 +701,7 @@ EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key) | |||
| 683 | arc4random_buf(key, ctx->key_len); | 701 | arc4random_buf(key, ctx->key_len); |
| 684 | return 1; | 702 | return 1; |
| 685 | } | 703 | } |
| 704 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_rand_key); | ||
| 686 | 705 | ||
| 687 | int | 706 | int |
| 688 | EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) | 707 | EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) |
| @@ -722,6 +741,7 @@ EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) | |||
| 722 | 741 | ||
| 723 | return 1; | 742 | return 1; |
| 724 | } | 743 | } |
| 744 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_copy); | ||
| 725 | 745 | ||
| 726 | /* | 746 | /* |
| 727 | * EVP_CIPHER_CTX accessors. | 747 | * EVP_CIPHER_CTX accessors. |
| @@ -732,12 +752,14 @@ EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx) | |||
| 732 | { | 752 | { |
| 733 | return ctx->cipher; | 753 | return ctx->cipher; |
| 734 | } | 754 | } |
| 755 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_cipher); | ||
| 735 | 756 | ||
| 736 | int | 757 | int |
| 737 | EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx) | 758 | EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx) |
| 738 | { | 759 | { |
| 739 | return ctx->encrypt; | 760 | return ctx->encrypt; |
| 740 | } | 761 | } |
| 762 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_encrypting); | ||
| 741 | 763 | ||
| 742 | int | 764 | int |
| 743 | EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len) | 765 | EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len) |
| @@ -757,6 +779,7 @@ EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len) | |||
| 757 | } | 779 | } |
| 758 | return 1; | 780 | return 1; |
| 759 | } | 781 | } |
| 782 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_get_iv); | ||
| 760 | 783 | ||
| 761 | int | 784 | int |
| 762 | EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len) | 785 | EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len) |
| @@ -776,30 +799,35 @@ EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len) | |||
| 776 | } | 799 | } |
| 777 | return 1; | 800 | return 1; |
| 778 | } | 801 | } |
| 802 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_iv); | ||
| 779 | 803 | ||
| 780 | unsigned char * | 804 | unsigned char * |
| 781 | EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx) | 805 | EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx) |
| 782 | { | 806 | { |
| 783 | return ctx->buf; | 807 | return ctx->buf; |
| 784 | } | 808 | } |
| 809 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_buf_noconst); | ||
| 785 | 810 | ||
| 786 | void * | 811 | void * |
| 787 | EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx) | 812 | EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx) |
| 788 | { | 813 | { |
| 789 | return ctx->app_data; | 814 | return ctx->app_data; |
| 790 | } | 815 | } |
| 816 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_get_app_data); | ||
| 791 | 817 | ||
| 792 | void | 818 | void |
| 793 | EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) | 819 | EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) |
| 794 | { | 820 | { |
| 795 | ctx->app_data = data; | 821 | ctx->app_data = data; |
| 796 | } | 822 | } |
| 823 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_app_data); | ||
| 797 | 824 | ||
| 798 | int | 825 | int |
| 799 | EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx) | 826 | EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx) |
| 800 | { | 827 | { |
| 801 | return ctx->key_len; | 828 | return ctx->key_len; |
| 802 | } | 829 | } |
| 830 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_key_length); | ||
| 803 | 831 | ||
| 804 | int | 832 | int |
| 805 | EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, int key_len) | 833 | EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, int key_len) |
| @@ -813,6 +841,7 @@ EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *ctx, int key_len) | |||
| 813 | EVPerror(EVP_R_INVALID_KEY_LENGTH); | 841 | EVPerror(EVP_R_INVALID_KEY_LENGTH); |
| 814 | return 0; | 842 | return 0; |
| 815 | } | 843 | } |
| 844 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_key_length); | ||
| 816 | 845 | ||
| 817 | int | 846 | int |
| 818 | EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad) | 847 | EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad) |
| @@ -823,30 +852,35 @@ EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad) | |||
| 823 | ctx->flags |= EVP_CIPH_NO_PADDING; | 852 | ctx->flags |= EVP_CIPH_NO_PADDING; |
| 824 | return 1; | 853 | return 1; |
| 825 | } | 854 | } |
| 855 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_padding); | ||
| 826 | 856 | ||
| 827 | void | 857 | void |
| 828 | EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags) | 858 | EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags) |
| 829 | { | 859 | { |
| 830 | ctx->flags |= flags; | 860 | ctx->flags |= flags; |
| 831 | } | 861 | } |
| 862 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_flags); | ||
| 832 | 863 | ||
| 833 | void | 864 | void |
| 834 | EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags) | 865 | EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags) |
| 835 | { | 866 | { |
| 836 | ctx->flags &= ~flags; | 867 | ctx->flags &= ~flags; |
| 837 | } | 868 | } |
| 869 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_clear_flags); | ||
| 838 | 870 | ||
| 839 | int | 871 | int |
| 840 | EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags) | 872 | EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags) |
| 841 | { | 873 | { |
| 842 | return (ctx->flags & flags); | 874 | return (ctx->flags & flags); |
| 843 | } | 875 | } |
| 876 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_test_flags); | ||
| 844 | 877 | ||
| 845 | void * | 878 | void * |
| 846 | EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx) | 879 | EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx) |
| 847 | { | 880 | { |
| 848 | return ctx->cipher_data; | 881 | return ctx->cipher_data; |
| 849 | } | 882 | } |
| 883 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_get_cipher_data); | ||
| 850 | 884 | ||
| 851 | void * | 885 | void * |
| 852 | EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) | 886 | EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) |
| @@ -858,6 +892,7 @@ EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) | |||
| 858 | 892 | ||
| 859 | return old_cipher_data; | 893 | return old_cipher_data; |
| 860 | } | 894 | } |
| 895 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_set_cipher_data); | ||
| 861 | 896 | ||
| 862 | /* | 897 | /* |
| 863 | * EVP_CIPHER_CTX getters that reach into the cipher attached to the context. | 898 | * EVP_CIPHER_CTX getters that reach into the cipher attached to the context. |
| @@ -868,12 +903,14 @@ EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx) | |||
| 868 | { | 903 | { |
| 869 | return ctx->cipher->nid; | 904 | return ctx->cipher->nid; |
| 870 | } | 905 | } |
| 906 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_nid); | ||
| 871 | 907 | ||
| 872 | int | 908 | int |
| 873 | EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx) | 909 | EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx) |
| 874 | { | 910 | { |
| 875 | return ctx->cipher->block_size; | 911 | return ctx->cipher->block_size; |
| 876 | } | 912 | } |
| 913 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_block_size); | ||
| 877 | 914 | ||
| 878 | int | 915 | int |
| 879 | EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) | 916 | EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) |
| @@ -893,12 +930,14 @@ EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) | |||
| 893 | 930 | ||
| 894 | return iv_length; | 931 | return iv_length; |
| 895 | } | 932 | } |
| 933 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_iv_length); | ||
| 896 | 934 | ||
| 897 | unsigned long | 935 | unsigned long |
| 898 | EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx) | 936 | EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx) |
| 899 | { | 937 | { |
| 900 | return ctx->cipher->flags; | 938 | return ctx->cipher->flags; |
| 901 | } | 939 | } |
| 940 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_flags); | ||
| 902 | 941 | ||
| 903 | /* | 942 | /* |
| 904 | * Used by CMS and its predecessors. Only GOST and RC2 have a custom method. | 943 | * Used by CMS and its predecessors. Only GOST and RC2 have a custom method. |
| @@ -1020,6 +1059,7 @@ EVP_CIPHER_type(const EVP_CIPHER *cipher) | |||
| 1020 | return nid; | 1059 | return nid; |
| 1021 | } | 1060 | } |
| 1022 | } | 1061 | } |
| 1062 | LCRYPTO_ALIAS(EVP_CIPHER_type); | ||
| 1023 | 1063 | ||
| 1024 | /* | 1064 | /* |
| 1025 | * Accessors. First the trivial getters, then the setters for the method API. | 1065 | * Accessors. First the trivial getters, then the setters for the method API. |
| @@ -1030,30 +1070,35 @@ EVP_CIPHER_nid(const EVP_CIPHER *cipher) | |||
| 1030 | { | 1070 | { |
| 1031 | return cipher->nid; | 1071 | return cipher->nid; |
| 1032 | } | 1072 | } |
| 1073 | LCRYPTO_ALIAS(EVP_CIPHER_nid); | ||
| 1033 | 1074 | ||
| 1034 | int | 1075 | int |
| 1035 | EVP_CIPHER_block_size(const EVP_CIPHER *cipher) | 1076 | EVP_CIPHER_block_size(const EVP_CIPHER *cipher) |
| 1036 | { | 1077 | { |
| 1037 | return cipher->block_size; | 1078 | return cipher->block_size; |
| 1038 | } | 1079 | } |
| 1080 | LCRYPTO_ALIAS(EVP_CIPHER_block_size); | ||
| 1039 | 1081 | ||
| 1040 | int | 1082 | int |
| 1041 | EVP_CIPHER_key_length(const EVP_CIPHER *cipher) | 1083 | EVP_CIPHER_key_length(const EVP_CIPHER *cipher) |
| 1042 | { | 1084 | { |
| 1043 | return cipher->key_len; | 1085 | return cipher->key_len; |
| 1044 | } | 1086 | } |
| 1087 | LCRYPTO_ALIAS(EVP_CIPHER_key_length); | ||
| 1045 | 1088 | ||
| 1046 | int | 1089 | int |
| 1047 | EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) | 1090 | EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) |
| 1048 | { | 1091 | { |
| 1049 | return cipher->iv_len; | 1092 | return cipher->iv_len; |
| 1050 | } | 1093 | } |
| 1094 | LCRYPTO_ALIAS(EVP_CIPHER_iv_length); | ||
| 1051 | 1095 | ||
| 1052 | unsigned long | 1096 | unsigned long |
| 1053 | EVP_CIPHER_flags(const EVP_CIPHER *cipher) | 1097 | EVP_CIPHER_flags(const EVP_CIPHER *cipher) |
| 1054 | { | 1098 | { |
| 1055 | return cipher->flags; | 1099 | return cipher->flags; |
| 1056 | } | 1100 | } |
| 1101 | LCRYPTO_ALIAS(EVP_CIPHER_flags); | ||
| 1057 | 1102 | ||
| 1058 | EVP_CIPHER * | 1103 | EVP_CIPHER * |
| 1059 | EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) | 1104 | EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) |
| @@ -1076,6 +1121,7 @@ EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) | |||
| 1076 | 1121 | ||
| 1077 | return cipher; | 1122 | return cipher; |
| 1078 | } | 1123 | } |
| 1124 | LCRYPTO_ALIAS(EVP_CIPHER_meth_new); | ||
| 1079 | 1125 | ||
| 1080 | EVP_CIPHER * | 1126 | EVP_CIPHER * |
| 1081 | EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) | 1127 | EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) |
| @@ -1089,12 +1135,14 @@ EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) | |||
| 1089 | 1135 | ||
| 1090 | return copy; | 1136 | return copy; |
| 1091 | } | 1137 | } |
| 1138 | LCRYPTO_ALIAS(EVP_CIPHER_meth_dup); | ||
| 1092 | 1139 | ||
| 1093 | void | 1140 | void |
| 1094 | EVP_CIPHER_meth_free(EVP_CIPHER *cipher) | 1141 | EVP_CIPHER_meth_free(EVP_CIPHER *cipher) |
| 1095 | { | 1142 | { |
| 1096 | free(cipher); | 1143 | free(cipher); |
| 1097 | } | 1144 | } |
| 1145 | LCRYPTO_ALIAS(EVP_CIPHER_meth_free); | ||
| 1098 | 1146 | ||
| 1099 | int | 1147 | int |
| 1100 | EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) | 1148 | EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) |
| @@ -1103,6 +1151,7 @@ EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) | |||
| 1103 | 1151 | ||
| 1104 | return 1; | 1152 | return 1; |
| 1105 | } | 1153 | } |
| 1154 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_iv_length); | ||
| 1106 | 1155 | ||
| 1107 | int | 1156 | int |
| 1108 | EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) | 1157 | EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) |
| @@ -1111,6 +1160,7 @@ EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) | |||
| 1111 | 1160 | ||
| 1112 | return 1; | 1161 | return 1; |
| 1113 | } | 1162 | } |
| 1163 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_flags); | ||
| 1114 | 1164 | ||
| 1115 | int | 1165 | int |
| 1116 | EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) | 1166 | EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) |
| @@ -1119,6 +1169,7 @@ EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) | |||
| 1119 | 1169 | ||
| 1120 | return 1; | 1170 | return 1; |
| 1121 | } | 1171 | } |
| 1172 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_impl_ctx_size); | ||
| 1122 | 1173 | ||
| 1123 | int | 1174 | int |
| 1124 | EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | 1175 | EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, |
| @@ -1129,6 +1180,7 @@ EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | |||
| 1129 | 1180 | ||
| 1130 | return 1; | 1181 | return 1; |
| 1131 | } | 1182 | } |
| 1183 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_init); | ||
| 1132 | 1184 | ||
| 1133 | int | 1185 | int |
| 1134 | EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, | 1186 | EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, |
| @@ -1139,6 +1191,7 @@ EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, | |||
| 1139 | 1191 | ||
| 1140 | return 1; | 1192 | return 1; |
| 1141 | } | 1193 | } |
| 1194 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_do_cipher); | ||
| 1142 | 1195 | ||
| 1143 | int | 1196 | int |
| 1144 | EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, | 1197 | EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, |
| @@ -1148,6 +1201,7 @@ EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, | |||
| 1148 | 1201 | ||
| 1149 | return 1; | 1202 | return 1; |
| 1150 | } | 1203 | } |
| 1204 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_cleanup); | ||
| 1151 | 1205 | ||
| 1152 | int | 1206 | int |
| 1153 | EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | 1207 | EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, |
| @@ -1157,6 +1211,7 @@ EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | |||
| 1157 | 1211 | ||
| 1158 | return 1; | 1212 | return 1; |
| 1159 | } | 1213 | } |
| 1214 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_set_asn1_params); | ||
| 1160 | 1215 | ||
| 1161 | int | 1216 | int |
| 1162 | EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | 1217 | EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, |
| @@ -1166,6 +1221,7 @@ EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | |||
| 1166 | 1221 | ||
| 1167 | return 1; | 1222 | return 1; |
| 1168 | } | 1223 | } |
| 1224 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_get_asn1_params); | ||
| 1169 | 1225 | ||
| 1170 | int | 1226 | int |
| 1171 | EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | 1227 | EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, |
| @@ -1175,3 +1231,4 @@ EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | |||
| 1175 | 1231 | ||
| 1176 | return 1; | 1232 | return 1; |
| 1177 | } | 1233 | } |
| 1234 | LCRYPTO_ALIAS(EVP_CIPHER_meth_set_ctrl); | ||
diff --git a/src/lib/libcrypto/evp/evp_digest.c b/src/lib/libcrypto/evp/evp_digest.c index d360760295..3eb6c258bf 100644 --- a/src/lib/libcrypto/evp/evp_digest.c +++ b/src/lib/libcrypto/evp/evp_digest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_digest.c,v 1.12 2024/03/02 09:59:56 tb Exp $ */ | 1 | /* $OpenBSD: evp_digest.c,v 1.13 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -126,6 +126,7 @@ EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) | |||
| 126 | EVP_MD_CTX_legacy_clear(ctx); | 126 | EVP_MD_CTX_legacy_clear(ctx); |
| 127 | return EVP_DigestInit_ex(ctx, type, NULL); | 127 | return EVP_DigestInit_ex(ctx, type, NULL); |
| 128 | } | 128 | } |
| 129 | LCRYPTO_ALIAS(EVP_DigestInit); | ||
| 129 | 130 | ||
| 130 | int | 131 | int |
| 131 | EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) | 132 | EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) |
| @@ -161,12 +162,14 @@ EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) | |||
| 161 | return 1; | 162 | return 1; |
| 162 | return ctx->digest->init(ctx); | 163 | return ctx->digest->init(ctx); |
| 163 | } | 164 | } |
| 165 | LCRYPTO_ALIAS(EVP_DigestInit_ex); | ||
| 164 | 166 | ||
| 165 | int | 167 | int |
| 166 | EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t count) | 168 | EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t count) |
| 167 | { | 169 | { |
| 168 | return ctx->update(ctx, data, count); | 170 | return ctx->update(ctx, data, count); |
| 169 | } | 171 | } |
| 172 | LCRYPTO_ALIAS(EVP_DigestUpdate); | ||
| 170 | 173 | ||
| 171 | /* The caller can assume that this removes any secret data from the context */ | 174 | /* The caller can assume that this removes any secret data from the context */ |
| 172 | int | 175 | int |
| @@ -178,6 +181,7 @@ EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size) | |||
| 178 | EVP_MD_CTX_cleanup(ctx); | 181 | EVP_MD_CTX_cleanup(ctx); |
| 179 | return ret; | 182 | return ret; |
| 180 | } | 183 | } |
| 184 | LCRYPTO_ALIAS(EVP_DigestFinal); | ||
| 181 | 185 | ||
| 182 | /* The caller can assume that this removes any secret data from the context */ | 186 | /* The caller can assume that this removes any secret data from the context */ |
| 183 | int | 187 | int |
| @@ -199,6 +203,7 @@ EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size) | |||
| 199 | memset(ctx->md_data, 0, ctx->digest->ctx_size); | 203 | memset(ctx->md_data, 0, ctx->digest->ctx_size); |
| 200 | return ret; | 204 | return ret; |
| 201 | } | 205 | } |
| 206 | LCRYPTO_ALIAS(EVP_DigestFinal_ex); | ||
| 202 | 207 | ||
| 203 | int | 208 | int |
| 204 | EVP_Digest(const void *data, size_t count, | 209 | EVP_Digest(const void *data, size_t count, |
| @@ -216,12 +221,14 @@ EVP_Digest(const void *data, size_t count, | |||
| 216 | 221 | ||
| 217 | return ret; | 222 | return ret; |
| 218 | } | 223 | } |
| 224 | LCRYPTO_ALIAS(EVP_Digest); | ||
| 219 | 225 | ||
| 220 | EVP_MD_CTX * | 226 | EVP_MD_CTX * |
| 221 | EVP_MD_CTX_new(void) | 227 | EVP_MD_CTX_new(void) |
| 222 | { | 228 | { |
| 223 | return calloc(1, sizeof(EVP_MD_CTX)); | 229 | return calloc(1, sizeof(EVP_MD_CTX)); |
| 224 | } | 230 | } |
| 231 | LCRYPTO_ALIAS(EVP_MD_CTX_new); | ||
| 225 | 232 | ||
| 226 | void | 233 | void |
| 227 | EVP_MD_CTX_free(EVP_MD_CTX *ctx) | 234 | EVP_MD_CTX_free(EVP_MD_CTX *ctx) |
| @@ -233,18 +240,21 @@ EVP_MD_CTX_free(EVP_MD_CTX *ctx) | |||
| 233 | 240 | ||
| 234 | free(ctx); | 241 | free(ctx); |
| 235 | } | 242 | } |
| 243 | LCRYPTO_ALIAS(EVP_MD_CTX_free); | ||
| 236 | 244 | ||
| 237 | EVP_MD_CTX * | 245 | EVP_MD_CTX * |
| 238 | EVP_MD_CTX_create(void) | 246 | EVP_MD_CTX_create(void) |
| 239 | { | 247 | { |
| 240 | return EVP_MD_CTX_new(); | 248 | return EVP_MD_CTX_new(); |
| 241 | } | 249 | } |
| 250 | LCRYPTO_ALIAS(EVP_MD_CTX_create); | ||
| 242 | 251 | ||
| 243 | void | 252 | void |
| 244 | EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) | 253 | EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) |
| 245 | { | 254 | { |
| 246 | EVP_MD_CTX_free(ctx); | 255 | EVP_MD_CTX_free(ctx); |
| 247 | } | 256 | } |
| 257 | LCRYPTO_ALIAS(EVP_MD_CTX_destroy); | ||
| 248 | 258 | ||
| 249 | void | 259 | void |
| 250 | EVP_MD_CTX_legacy_clear(EVP_MD_CTX *ctx) | 260 | EVP_MD_CTX_legacy_clear(EVP_MD_CTX *ctx) |
| @@ -263,6 +273,7 @@ EVP_MD_CTX_reset(EVP_MD_CTX *ctx) | |||
| 263 | { | 273 | { |
| 264 | return EVP_MD_CTX_cleanup(ctx); | 274 | return EVP_MD_CTX_cleanup(ctx); |
| 265 | } | 275 | } |
| 276 | LCRYPTO_ALIAS(EVP_MD_CTX_reset); | ||
| 266 | 277 | ||
| 267 | int | 278 | int |
| 268 | EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) | 279 | EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) |
| @@ -290,6 +301,7 @@ EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) | |||
| 290 | 301 | ||
| 291 | return 1; | 302 | return 1; |
| 292 | } | 303 | } |
| 304 | LCRYPTO_ALIAS(EVP_MD_CTX_cleanup); | ||
| 293 | 305 | ||
| 294 | int | 306 | int |
| 295 | EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in) | 307 | EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in) |
| @@ -297,6 +309,7 @@ EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in) | |||
| 297 | EVP_MD_CTX_legacy_clear(out); | 309 | EVP_MD_CTX_legacy_clear(out); |
| 298 | return EVP_MD_CTX_copy_ex(out, in); | 310 | return EVP_MD_CTX_copy_ex(out, in); |
| 299 | } | 311 | } |
| 312 | LCRYPTO_ALIAS(EVP_MD_CTX_copy); | ||
| 300 | 313 | ||
| 301 | int | 314 | int |
| 302 | EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in) | 315 | EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in) |
| @@ -352,6 +365,7 @@ EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in) | |||
| 352 | 365 | ||
| 353 | return 1; | 366 | return 1; |
| 354 | } | 367 | } |
| 368 | LCRYPTO_ALIAS(EVP_MD_CTX_copy_ex); | ||
| 355 | 369 | ||
| 356 | int | 370 | int |
| 357 | EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr) | 371 | EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr) |
| @@ -375,6 +389,7 @@ EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr) | |||
| 375 | } | 389 | } |
| 376 | return ret; | 390 | return ret; |
| 377 | } | 391 | } |
| 392 | LCRYPTO_ALIAS(EVP_MD_CTX_ctrl); | ||
| 378 | 393 | ||
| 379 | const EVP_MD * | 394 | const EVP_MD * |
| 380 | EVP_MD_CTX_md(const EVP_MD_CTX *ctx) | 395 | EVP_MD_CTX_md(const EVP_MD_CTX *ctx) |
| @@ -383,36 +398,42 @@ EVP_MD_CTX_md(const EVP_MD_CTX *ctx) | |||
| 383 | return NULL; | 398 | return NULL; |
| 384 | return ctx->digest; | 399 | return ctx->digest; |
| 385 | } | 400 | } |
| 401 | LCRYPTO_ALIAS(EVP_MD_CTX_md); | ||
| 386 | 402 | ||
| 387 | void | 403 | void |
| 388 | EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags) | 404 | EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags) |
| 389 | { | 405 | { |
| 390 | ctx->flags &= ~flags; | 406 | ctx->flags &= ~flags; |
| 391 | } | 407 | } |
| 408 | LCRYPTO_ALIAS(EVP_MD_CTX_clear_flags); | ||
| 392 | 409 | ||
| 393 | void | 410 | void |
| 394 | EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags) | 411 | EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags) |
| 395 | { | 412 | { |
| 396 | ctx->flags |= flags; | 413 | ctx->flags |= flags; |
| 397 | } | 414 | } |
| 415 | LCRYPTO_ALIAS(EVP_MD_CTX_set_flags); | ||
| 398 | 416 | ||
| 399 | int | 417 | int |
| 400 | EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags) | 418 | EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags) |
| 401 | { | 419 | { |
| 402 | return (ctx->flags & flags); | 420 | return (ctx->flags & flags); |
| 403 | } | 421 | } |
| 422 | LCRYPTO_ALIAS(EVP_MD_CTX_test_flags); | ||
| 404 | 423 | ||
| 405 | void * | 424 | void * |
| 406 | EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx) | 425 | EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx) |
| 407 | { | 426 | { |
| 408 | return ctx->md_data; | 427 | return ctx->md_data; |
| 409 | } | 428 | } |
| 429 | LCRYPTO_ALIAS(EVP_MD_CTX_md_data); | ||
| 410 | 430 | ||
| 411 | EVP_PKEY_CTX * | 431 | EVP_PKEY_CTX * |
| 412 | EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx) | 432 | EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx) |
| 413 | { | 433 | { |
| 414 | return ctx->pctx; | 434 | return ctx->pctx; |
| 415 | } | 435 | } |
| 436 | LCRYPTO_ALIAS(EVP_MD_CTX_pkey_ctx); | ||
| 416 | 437 | ||
| 417 | void | 438 | void |
| 418 | EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx) | 439 | EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx) |
| @@ -436,18 +457,21 @@ EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx) | |||
| 436 | EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_KEEP_PKEY_CTX); | 457 | EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_KEEP_PKEY_CTX); |
| 437 | } | 458 | } |
| 438 | } | 459 | } |
| 460 | LCRYPTO_ALIAS(EVP_MD_CTX_set_pkey_ctx); | ||
| 439 | 461 | ||
| 440 | int | 462 | int |
| 441 | EVP_MD_type(const EVP_MD *md) | 463 | EVP_MD_type(const EVP_MD *md) |
| 442 | { | 464 | { |
| 443 | return md->type; | 465 | return md->type; |
| 444 | } | 466 | } |
| 467 | LCRYPTO_ALIAS(EVP_MD_type); | ||
| 445 | 468 | ||
| 446 | int | 469 | int |
| 447 | EVP_MD_pkey_type(const EVP_MD *md) | 470 | EVP_MD_pkey_type(const EVP_MD *md) |
| 448 | { | 471 | { |
| 449 | return md->pkey_type; | 472 | return md->pkey_type; |
| 450 | } | 473 | } |
| 474 | LCRYPTO_ALIAS(EVP_MD_pkey_type); | ||
| 451 | 475 | ||
| 452 | int | 476 | int |
| 453 | EVP_MD_size(const EVP_MD *md) | 477 | EVP_MD_size(const EVP_MD *md) |
| @@ -458,15 +482,18 @@ EVP_MD_size(const EVP_MD *md) | |||
| 458 | } | 482 | } |
| 459 | return md->md_size; | 483 | return md->md_size; |
| 460 | } | 484 | } |
| 485 | LCRYPTO_ALIAS(EVP_MD_size); | ||
| 461 | 486 | ||
| 462 | unsigned long | 487 | unsigned long |
| 463 | EVP_MD_flags(const EVP_MD *md) | 488 | EVP_MD_flags(const EVP_MD *md) |
| 464 | { | 489 | { |
| 465 | return md->flags; | 490 | return md->flags; |
| 466 | } | 491 | } |
| 492 | LCRYPTO_ALIAS(EVP_MD_flags); | ||
| 467 | 493 | ||
| 468 | int | 494 | int |
| 469 | EVP_MD_block_size(const EVP_MD *md) | 495 | EVP_MD_block_size(const EVP_MD *md) |
| 470 | { | 496 | { |
| 471 | return md->block_size; | 497 | return md->block_size; |
| 472 | } | 498 | } |
| 499 | LCRYPTO_ALIAS(EVP_MD_block_size); | ||
diff --git a/src/lib/libcrypto/evp/evp_encode.c b/src/lib/libcrypto/evp/evp_encode.c index 199bdfa27e..ae6ec476e3 100644 --- a/src/lib/libcrypto/evp/evp_encode.c +++ b/src/lib/libcrypto/evp/evp_encode.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_encode.c,v 1.2 2023/12/29 10:31:50 tb Exp $ */ | 1 | /* $OpenBSD: evp_encode.c,v 1.3 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -128,12 +128,14 @@ EVP_ENCODE_CTX_new(void) | |||
| 128 | { | 128 | { |
| 129 | return calloc(1, sizeof(EVP_ENCODE_CTX)); | 129 | return calloc(1, sizeof(EVP_ENCODE_CTX)); |
| 130 | } | 130 | } |
| 131 | LCRYPTO_ALIAS(EVP_ENCODE_CTX_new); | ||
| 131 | 132 | ||
| 132 | void | 133 | void |
| 133 | EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) | 134 | EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) |
| 134 | { | 135 | { |
| 135 | free(ctx); | 136 | free(ctx); |
| 136 | } | 137 | } |
| 138 | LCRYPTO_ALIAS(EVP_ENCODE_CTX_free); | ||
| 137 | 139 | ||
| 138 | void | 140 | void |
| 139 | EVP_EncodeInit(EVP_ENCODE_CTX *ctx) | 141 | EVP_EncodeInit(EVP_ENCODE_CTX *ctx) |
| @@ -142,6 +144,7 @@ EVP_EncodeInit(EVP_ENCODE_CTX *ctx) | |||
| 142 | ctx->num = 0; | 144 | ctx->num = 0; |
| 143 | ctx->line_num = 0; | 145 | ctx->line_num = 0; |
| 144 | } | 146 | } |
| 147 | LCRYPTO_ALIAS(EVP_EncodeInit); | ||
| 145 | 148 | ||
| 146 | int | 149 | int |
| 147 | EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | 150 | EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, |
| @@ -192,6 +195,7 @@ EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | |||
| 192 | 195 | ||
| 193 | return 1; | 196 | return 1; |
| 194 | } | 197 | } |
| 198 | LCRYPTO_ALIAS(EVP_EncodeUpdate); | ||
| 195 | 199 | ||
| 196 | void | 200 | void |
| 197 | EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | 201 | EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) |
| @@ -206,6 +210,7 @@ EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | |||
| 206 | } | 210 | } |
| 207 | *outl = ret; | 211 | *outl = ret; |
| 208 | } | 212 | } |
| 213 | LCRYPTO_ALIAS(EVP_EncodeFinal); | ||
| 209 | 214 | ||
| 210 | int | 215 | int |
| 211 | EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) | 216 | EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) |
| @@ -238,6 +243,7 @@ EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) | |||
| 238 | *t = '\0'; | 243 | *t = '\0'; |
| 239 | return (ret); | 244 | return (ret); |
| 240 | } | 245 | } |
| 246 | LCRYPTO_ALIAS(EVP_EncodeBlock); | ||
| 241 | 247 | ||
| 242 | void | 248 | void |
| 243 | EVP_DecodeInit(EVP_ENCODE_CTX *ctx) | 249 | EVP_DecodeInit(EVP_ENCODE_CTX *ctx) |
| @@ -247,6 +253,7 @@ EVP_DecodeInit(EVP_ENCODE_CTX *ctx) | |||
| 247 | ctx->line_num = 0; | 253 | ctx->line_num = 0; |
| 248 | ctx->expect_nl = 0; | 254 | ctx->expect_nl = 0; |
| 249 | } | 255 | } |
| 256 | LCRYPTO_ALIAS(EVP_DecodeInit); | ||
| 250 | 257 | ||
| 251 | int | 258 | int |
| 252 | EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | 259 | EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, |
| @@ -355,6 +362,7 @@ EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | |||
| 355 | ctx->num = n; | 362 | ctx->num = n; |
| 356 | return (rv); | 363 | return (rv); |
| 357 | } | 364 | } |
| 365 | LCRYPTO_ALIAS(EVP_DecodeUpdate); | ||
| 358 | 366 | ||
| 359 | int | 367 | int |
| 360 | EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) | 368 | EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) |
| @@ -395,6 +403,7 @@ EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) | |||
| 395 | } | 403 | } |
| 396 | return (ret); | 404 | return (ret); |
| 397 | } | 405 | } |
| 406 | LCRYPTO_ALIAS(EVP_DecodeBlock); | ||
| 398 | 407 | ||
| 399 | int | 408 | int |
| 400 | EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | 409 | EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) |
| @@ -412,3 +421,4 @@ EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | |||
| 412 | } else | 421 | } else |
| 413 | return (1); | 422 | return (1); |
| 414 | } | 423 | } |
| 424 | LCRYPTO_ALIAS(EVP_DecodeFinal); | ||
diff --git a/src/lib/libcrypto/evp/evp_err.c b/src/lib/libcrypto/evp/evp_err.c index 039e17e6cf..07515f4d99 100644 --- a/src/lib/libcrypto/evp/evp_err.c +++ b/src/lib/libcrypto/evp/evp_err.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_err.c,v 1.32 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: evp_err.c,v 1.33 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -164,3 +164,4 @@ ERR_load_EVP_strings(void) | |||
| 164 | } | 164 | } |
| 165 | #endif | 165 | #endif |
| 166 | } | 166 | } |
| 167 | LCRYPTO_ALIAS(ERR_load_EVP_strings); | ||
diff --git a/src/lib/libcrypto/evp/evp_key.c b/src/lib/libcrypto/evp/evp_key.c index da103c853f..e7c7ec3294 100644 --- a/src/lib/libcrypto/evp/evp_key.c +++ b/src/lib/libcrypto/evp/evp_key.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_key.c,v 1.35 2024/03/25 10:58:06 joshua Exp $ */ | 1 | /* $OpenBSD: evp_key.c,v 1.36 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -78,6 +78,7 @@ EVP_set_pw_prompt(const char *prompt) | |||
| 78 | else | 78 | else |
| 79 | strlcpy(prompt_string, prompt, sizeof(prompt_string)); | 79 | strlcpy(prompt_string, prompt, sizeof(prompt_string)); |
| 80 | } | 80 | } |
| 81 | LCRYPTO_ALIAS(EVP_set_pw_prompt); | ||
| 81 | 82 | ||
| 82 | char * | 83 | char * |
| 83 | EVP_get_pw_prompt(void) | 84 | EVP_get_pw_prompt(void) |
| @@ -87,12 +88,14 @@ EVP_get_pw_prompt(void) | |||
| 87 | 88 | ||
| 88 | return prompt_string; | 89 | return prompt_string; |
| 89 | } | 90 | } |
| 91 | LCRYPTO_ALIAS(EVP_get_pw_prompt); | ||
| 90 | 92 | ||
| 91 | int | 93 | int |
| 92 | EVP_read_pw_string(char *buf, int len, const char *prompt, int verify) | 94 | EVP_read_pw_string(char *buf, int len, const char *prompt, int verify) |
| 93 | { | 95 | { |
| 94 | return EVP_read_pw_string_min(buf, 0, len, prompt, verify); | 96 | return EVP_read_pw_string_min(buf, 0, len, prompt, verify); |
| 95 | } | 97 | } |
| 98 | LCRYPTO_ALIAS(EVP_read_pw_string); | ||
| 96 | 99 | ||
| 97 | int | 100 | int |
| 98 | EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt, | 101 | EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt, |
| @@ -129,6 +132,7 @@ EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt, | |||
| 129 | 132 | ||
| 130 | return ret; | 133 | return ret; |
| 131 | } | 134 | } |
| 135 | LCRYPTO_ALIAS(EVP_read_pw_string_min); | ||
| 132 | 136 | ||
| 133 | int | 137 | int |
| 134 | EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, | 138 | EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, |
| @@ -216,3 +220,4 @@ err: | |||
| 216 | explicit_bzero(md_buf, sizeof md_buf); | 220 | explicit_bzero(md_buf, sizeof md_buf); |
| 217 | return rv; | 221 | return rv; |
| 218 | } | 222 | } |
| 223 | LCRYPTO_ALIAS(EVP_BytesToKey); | ||
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c index d1e21d2793..99ad53e3ac 100644 --- a/src/lib/libcrypto/evp/evp_names.c +++ b/src/lib/libcrypto/evp/evp_names.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_names.c,v 1.15 2024/03/24 13:56:35 jca Exp $ */ | 1 | /* $OpenBSD: evp_names.c,v 1.16 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -1495,6 +1495,7 @@ EVP_CIPHER_do_all_sorted(void (*fn)(const EVP_CIPHER *, const char *, | |||
| 1495 | fn(evp_cipher, cipher->name, NULL, arg); | 1495 | fn(evp_cipher, cipher->name, NULL, arg); |
| 1496 | } | 1496 | } |
| 1497 | } | 1497 | } |
| 1498 | LCRYPTO_ALIAS(EVP_CIPHER_do_all_sorted); | ||
| 1498 | 1499 | ||
| 1499 | void | 1500 | void |
| 1500 | EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *, const char *, const char *, | 1501 | EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *, const char *, const char *, |
| @@ -1502,6 +1503,7 @@ EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *, const char *, const char *, | |||
| 1502 | { | 1503 | { |
| 1503 | EVP_CIPHER_do_all_sorted(fn, arg); | 1504 | EVP_CIPHER_do_all_sorted(fn, arg); |
| 1504 | } | 1505 | } |
| 1506 | LCRYPTO_ALIAS(EVP_CIPHER_do_all); | ||
| 1505 | 1507 | ||
| 1506 | void | 1508 | void |
| 1507 | EVP_MD_do_all_sorted(void (*fn)(const EVP_MD *, const char *, const char *, | 1509 | EVP_MD_do_all_sorted(void (*fn)(const EVP_MD *, const char *, const char *, |
| @@ -1525,6 +1527,7 @@ EVP_MD_do_all_sorted(void (*fn)(const EVP_MD *, const char *, const char *, | |||
| 1525 | fn(evp_md, digest->name, NULL, arg); | 1527 | fn(evp_md, digest->name, NULL, arg); |
| 1526 | } | 1528 | } |
| 1527 | } | 1529 | } |
| 1530 | LCRYPTO_ALIAS(EVP_MD_do_all_sorted); | ||
| 1528 | 1531 | ||
| 1529 | void | 1532 | void |
| 1530 | EVP_MD_do_all(void (*fn)(const EVP_MD *, const char *, const char *, void *), | 1533 | EVP_MD_do_all(void (*fn)(const EVP_MD *, const char *, const char *, void *), |
| @@ -1532,6 +1535,7 @@ EVP_MD_do_all(void (*fn)(const EVP_MD *, const char *, const char *, void *), | |||
| 1532 | { | 1535 | { |
| 1533 | EVP_MD_do_all_sorted(fn, arg); | 1536 | EVP_MD_do_all_sorted(fn, arg); |
| 1534 | } | 1537 | } |
| 1538 | LCRYPTO_ALIAS(EVP_MD_do_all); | ||
| 1535 | 1539 | ||
| 1536 | /* | 1540 | /* |
| 1537 | * The OBJ_NAME API is completely misnamed. It has little to do with objects | 1541 | * The OBJ_NAME API is completely misnamed. It has little to do with objects |
| @@ -1652,6 +1656,7 @@ EVP_get_cipherbyname(const char *name) | |||
| 1652 | 1656 | ||
| 1653 | return cipher->cipher(); | 1657 | return cipher->cipher(); |
| 1654 | } | 1658 | } |
| 1659 | LCRYPTO_ALIAS(EVP_get_cipherbyname); | ||
| 1655 | 1660 | ||
| 1656 | static int | 1661 | static int |
| 1657 | digest_cmp(const void *a, const void *b) | 1662 | digest_cmp(const void *a, const void *b) |
| @@ -1676,6 +1681,7 @@ EVP_get_digestbyname(const char *name) | |||
| 1676 | 1681 | ||
| 1677 | return digest->digest(); | 1682 | return digest->digest(); |
| 1678 | } | 1683 | } |
| 1684 | LCRYPTO_ALIAS(EVP_get_digestbyname); | ||
| 1679 | 1685 | ||
| 1680 | /* | 1686 | /* |
| 1681 | * XXX - this is here because most of its job was to clean up the dynamic | 1687 | * XXX - this is here because most of its job was to clean up the dynamic |
| @@ -1687,3 +1693,4 @@ void | |||
| 1687 | EVP_cleanup(void) | 1693 | EVP_cleanup(void) |
| 1688 | { | 1694 | { |
| 1689 | } | 1695 | } |
| 1696 | LCRYPTO_ALIAS(EVP_cleanup); | ||
diff --git a/src/lib/libcrypto/evp/evp_pbe.c b/src/lib/libcrypto/evp/evp_pbe.c index 81fa0446ed..88ceb14033 100644 --- a/src/lib/libcrypto/evp/evp_pbe.c +++ b/src/lib/libcrypto/evp/evp_pbe.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_pbe.c,v 1.49 2024/03/25 11:38:47 joshua Exp $ */ | 1 | /* $OpenBSD: evp_pbe.c,v 1.50 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -398,6 +398,7 @@ PKCS5_PBKDF2_HMAC(const char *pass, int passlen, const unsigned char *salt, | |||
| 398 | HMAC_CTX_cleanup(&hctx_tpl); | 398 | HMAC_CTX_cleanup(&hctx_tpl); |
| 399 | return 1; | 399 | return 1; |
| 400 | } | 400 | } |
| 401 | LCRYPTO_ALIAS(PKCS5_PBKDF2_HMAC); | ||
| 401 | 402 | ||
| 402 | int | 403 | int |
| 403 | PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, const unsigned char *salt, | 404 | PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, const unsigned char *salt, |
| @@ -406,6 +407,7 @@ PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, const unsigned char *salt, | |||
| 406 | return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, | 407 | return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, |
| 407 | EVP_sha1(), keylen, out); | 408 | EVP_sha1(), keylen, out); |
| 408 | } | 409 | } |
| 410 | LCRYPTO_ALIAS(PKCS5_PBKDF2_HMAC_SHA1); | ||
| 409 | 411 | ||
| 410 | /* | 412 | /* |
| 411 | * Now the key derivation function itself. This is a bit evil because | 413 | * Now the key derivation function itself. This is a bit evil because |
diff --git a/src/lib/libcrypto/evp/m_md4.c b/src/lib/libcrypto/evp/m_md4.c index 199dba8489..a9d3150948 100644 --- a/src/lib/libcrypto/evp/m_md4.c +++ b/src/lib/libcrypto/evp/m_md4.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_md4.c,v 1.21 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_md4.c,v 1.22 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -110,4 +110,5 @@ EVP_md4(void) | |||
| 110 | { | 110 | { |
| 111 | return (&md4_md); | 111 | return (&md4_md); |
| 112 | } | 112 | } |
| 113 | LCRYPTO_ALIAS(EVP_md4); | ||
| 113 | #endif | 114 | #endif |
diff --git a/src/lib/libcrypto/evp/m_md5.c b/src/lib/libcrypto/evp/m_md5.c index 0dfad89aaf..1bba8c4e1b 100644 --- a/src/lib/libcrypto/evp/m_md5.c +++ b/src/lib/libcrypto/evp/m_md5.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_md5.c,v 1.20 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_md5.c,v 1.21 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -110,4 +110,5 @@ EVP_md5(void) | |||
| 110 | { | 110 | { |
| 111 | return (&md5_md); | 111 | return (&md5_md); |
| 112 | } | 112 | } |
| 113 | LCRYPTO_ALIAS(EVP_md5); | ||
| 113 | #endif | 114 | #endif |
diff --git a/src/lib/libcrypto/evp/m_md5_sha1.c b/src/lib/libcrypto/evp/m_md5_sha1.c index 7dd1ae1278..87a801f013 100644 --- a/src/lib/libcrypto/evp/m_md5_sha1.c +++ b/src/lib/libcrypto/evp/m_md5_sha1.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_md5_sha1.c,v 1.8 2023/09/02 04:55:18 tb Exp $ */ | 1 | /* $OpenBSD: m_md5_sha1.c,v 1.9 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -87,3 +87,4 @@ EVP_md5_sha1(void) | |||
| 87 | { | 87 | { |
| 88 | return &md5_sha1_md; | 88 | return &md5_sha1_md; |
| 89 | } | 89 | } |
| 90 | LCRYPTO_ALIAS(EVP_md5_sha1); | ||
diff --git a/src/lib/libcrypto/evp/m_null.c b/src/lib/libcrypto/evp/m_null.c index 28634d2da5..65af387eaa 100644 --- a/src/lib/libcrypto/evp/m_null.c +++ b/src/lib/libcrypto/evp/m_null.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_null.c,v 1.14 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_null.c,v 1.15 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -101,3 +101,4 @@ EVP_md_null(void) | |||
| 101 | { | 101 | { |
| 102 | return (&null_md); | 102 | return (&null_md); |
| 103 | } | 103 | } |
| 104 | LCRYPTO_ALIAS(EVP_md_null); | ||
diff --git a/src/lib/libcrypto/evp/m_ripemd.c b/src/lib/libcrypto/evp/m_ripemd.c index 638d0cd274..d771510868 100644 --- a/src/lib/libcrypto/evp/m_ripemd.c +++ b/src/lib/libcrypto/evp/m_ripemd.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_ripemd.c,v 1.17 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_ripemd.c,v 1.18 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -110,4 +110,5 @@ EVP_ripemd160(void) | |||
| 110 | { | 110 | { |
| 111 | return (&ripemd160_md); | 111 | return (&ripemd160_md); |
| 112 | } | 112 | } |
| 113 | LCRYPTO_ALIAS(EVP_ripemd160); | ||
| 113 | #endif | 114 | #endif |
diff --git a/src/lib/libcrypto/evp/m_sha1.c b/src/lib/libcrypto/evp/m_sha1.c index c65e0515c8..cdceb99aaf 100644 --- a/src/lib/libcrypto/evp/m_sha1.c +++ b/src/lib/libcrypto/evp/m_sha1.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_sha1.c,v 1.25 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_sha1.c,v 1.26 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -110,6 +110,7 @@ EVP_sha1(void) | |||
| 110 | { | 110 | { |
| 111 | return &sha1_md; | 111 | return &sha1_md; |
| 112 | } | 112 | } |
| 113 | LCRYPTO_ALIAS(EVP_sha1); | ||
| 113 | #endif | 114 | #endif |
| 114 | 115 | ||
| 115 | #ifndef OPENSSL_NO_SHA256 | 116 | #ifndef OPENSSL_NO_SHA256 |
| @@ -155,6 +156,7 @@ EVP_sha224(void) | |||
| 155 | { | 156 | { |
| 156 | return &sha224_md; | 157 | return &sha224_md; |
| 157 | } | 158 | } |
| 159 | LCRYPTO_ALIAS(EVP_sha224); | ||
| 158 | 160 | ||
| 159 | static int | 161 | static int |
| 160 | sha256_init(EVP_MD_CTX *ctx) | 162 | sha256_init(EVP_MD_CTX *ctx) |
| @@ -193,6 +195,7 @@ EVP_sha256(void) | |||
| 193 | { | 195 | { |
| 194 | return &sha256_md; | 196 | return &sha256_md; |
| 195 | } | 197 | } |
| 198 | LCRYPTO_ALIAS(EVP_sha256); | ||
| 196 | #endif /* ifndef OPENSSL_NO_SHA256 */ | 199 | #endif /* ifndef OPENSSL_NO_SHA256 */ |
| 197 | 200 | ||
| 198 | #ifndef OPENSSL_NO_SHA512 | 201 | #ifndef OPENSSL_NO_SHA512 |
| @@ -234,6 +237,7 @@ EVP_sha384(void) | |||
| 234 | { | 237 | { |
| 235 | return &sha384_md; | 238 | return &sha384_md; |
| 236 | } | 239 | } |
| 240 | LCRYPTO_ALIAS(EVP_sha384); | ||
| 237 | 241 | ||
| 238 | static int | 242 | static int |
| 239 | sha512_init(EVP_MD_CTX *ctx) | 243 | sha512_init(EVP_MD_CTX *ctx) |
| @@ -272,6 +276,7 @@ EVP_sha512(void) | |||
| 272 | { | 276 | { |
| 273 | return &sha512_md; | 277 | return &sha512_md; |
| 274 | } | 278 | } |
| 279 | LCRYPTO_ALIAS(EVP_sha512); | ||
| 275 | 280 | ||
| 276 | static int | 281 | static int |
| 277 | sha512_224_init(EVP_MD_CTX *ctx) | 282 | sha512_224_init(EVP_MD_CTX *ctx) |
| @@ -310,6 +315,7 @@ EVP_sha512_224(void) | |||
| 310 | { | 315 | { |
| 311 | return &sha512_224_md; | 316 | return &sha512_224_md; |
| 312 | } | 317 | } |
| 318 | LCRYPTO_ALIAS(EVP_sha512_224); | ||
| 313 | 319 | ||
| 314 | static int | 320 | static int |
| 315 | sha512_256_init(EVP_MD_CTX *ctx) | 321 | sha512_256_init(EVP_MD_CTX *ctx) |
| @@ -348,4 +354,5 @@ EVP_sha512_256(void) | |||
| 348 | { | 354 | { |
| 349 | return &sha512_256_md; | 355 | return &sha512_256_md; |
| 350 | } | 356 | } |
| 357 | LCRYPTO_ALIAS(EVP_sha512_256); | ||
| 351 | #endif /* ifndef OPENSSL_NO_SHA512 */ | 358 | #endif /* ifndef OPENSSL_NO_SHA512 */ |
diff --git a/src/lib/libcrypto/evp/m_sha3.c b/src/lib/libcrypto/evp/m_sha3.c index 67f94f7956..a21833b605 100644 --- a/src/lib/libcrypto/evp/m_sha3.c +++ b/src/lib/libcrypto/evp/m_sha3.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_sha3.c,v 1.3 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_sha3.c,v 1.4 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -57,6 +57,7 @@ EVP_sha3_224(void) | |||
| 57 | { | 57 | { |
| 58 | return &sha3_224_md; | 58 | return &sha3_224_md; |
| 59 | } | 59 | } |
| 60 | LCRYPTO_ALIAS(EVP_sha3_224); | ||
| 60 | 61 | ||
| 61 | static int | 62 | static int |
| 62 | sha3_256_init(EVP_MD_CTX *ctx) | 63 | sha3_256_init(EVP_MD_CTX *ctx) |
| @@ -95,6 +96,7 @@ EVP_sha3_256(void) | |||
| 95 | { | 96 | { |
| 96 | return &sha3_256_md; | 97 | return &sha3_256_md; |
| 97 | } | 98 | } |
| 99 | LCRYPTO_ALIAS(EVP_sha3_256); | ||
| 98 | 100 | ||
| 99 | static int | 101 | static int |
| 100 | sha3_384_init(EVP_MD_CTX *ctx) | 102 | sha3_384_init(EVP_MD_CTX *ctx) |
| @@ -133,6 +135,7 @@ EVP_sha3_384(void) | |||
| 133 | { | 135 | { |
| 134 | return &sha3_384_md; | 136 | return &sha3_384_md; |
| 135 | } | 137 | } |
| 138 | LCRYPTO_ALIAS(EVP_sha3_384); | ||
| 136 | 139 | ||
| 137 | static int | 140 | static int |
| 138 | sha3_512_init(EVP_MD_CTX *ctx) | 141 | sha3_512_init(EVP_MD_CTX *ctx) |
| @@ -171,3 +174,4 @@ EVP_sha3_512(void) | |||
| 171 | { | 174 | { |
| 172 | return &sha3_512_md; | 175 | return &sha3_512_md; |
| 173 | } | 176 | } |
| 177 | LCRYPTO_ALIAS(EVP_sha3_512); | ||
diff --git a/src/lib/libcrypto/evp/m_sigver.c b/src/lib/libcrypto/evp/m_sigver.c index d427e05db0..a3353854f1 100644 --- a/src/lib/libcrypto/evp/m_sigver.c +++ b/src/lib/libcrypto/evp/m_sigver.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_sigver.c,v 1.26 2024/03/27 07:36:59 tb Exp $ */ | 1 | /* $OpenBSD: m_sigver.c,v 1.27 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -128,6 +128,7 @@ EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, | |||
| 128 | { | 128 | { |
| 129 | return do_sigver_init(ctx, pctx, type, pkey, 0); | 129 | return do_sigver_init(ctx, pctx, type, pkey, 0); |
| 130 | } | 130 | } |
| 131 | LCRYPTO_ALIAS(EVP_DigestSignInit); | ||
| 131 | 132 | ||
| 132 | int | 133 | int |
| 133 | EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, | 134 | EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, |
| @@ -135,6 +136,7 @@ EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, | |||
| 135 | { | 136 | { |
| 136 | return do_sigver_init(ctx, pctx, type, pkey, 1); | 137 | return do_sigver_init(ctx, pctx, type, pkey, 1); |
| 137 | } | 138 | } |
| 139 | LCRYPTO_ALIAS(EVP_DigestVerifyInit); | ||
| 138 | 140 | ||
| 139 | static int | 141 | static int |
| 140 | evp_digestsignfinal_sigctx_custom(EVP_MD_CTX *ctx, unsigned char *sigret, | 142 | evp_digestsignfinal_sigctx_custom(EVP_MD_CTX *ctx, unsigned char *sigret, |
| @@ -215,6 +217,7 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) | |||
| 215 | 217 | ||
| 216 | return ret; | 218 | return ret; |
| 217 | } | 219 | } |
| 220 | LCRYPTO_ALIAS(EVP_DigestSignFinal); | ||
| 218 | 221 | ||
| 219 | int | 222 | int |
| 220 | EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen, | 223 | EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen, |
| @@ -231,6 +234,7 @@ EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen, | |||
| 231 | 234 | ||
| 232 | return EVP_DigestSignFinal(ctx, sigret, siglen); | 235 | return EVP_DigestSignFinal(ctx, sigret, siglen); |
| 233 | } | 236 | } |
| 237 | LCRYPTO_ALIAS(EVP_DigestSign); | ||
| 234 | 238 | ||
| 235 | int | 239 | int |
| 236 | EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen) | 240 | EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen) |
| @@ -249,6 +253,7 @@ EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen) | |||
| 249 | return r; | 253 | return r; |
| 250 | return EVP_PKEY_verify(ctx->pctx, sig, siglen, md, mdlen); | 254 | return EVP_PKEY_verify(ctx->pctx, sig, siglen, md, mdlen); |
| 251 | } | 255 | } |
| 256 | LCRYPTO_ALIAS(EVP_DigestVerifyFinal); | ||
| 252 | 257 | ||
| 253 | int | 258 | int |
| 254 | EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret, size_t siglen, | 259 | EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret, size_t siglen, |
| @@ -263,3 +268,4 @@ EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret, size_t siglen, | |||
| 263 | 268 | ||
| 264 | return EVP_DigestVerifyFinal(ctx, sigret, siglen); | 269 | return EVP_DigestVerifyFinal(ctx, sigret, siglen); |
| 265 | } | 270 | } |
| 271 | LCRYPTO_ALIAS(EVP_DigestVerify); | ||
diff --git a/src/lib/libcrypto/evp/m_sm3.c b/src/lib/libcrypto/evp/m_sm3.c index ea30d8d222..672d06f9fd 100644 --- a/src/lib/libcrypto/evp/m_sm3.c +++ b/src/lib/libcrypto/evp/m_sm3.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_sm3.c,v 1.6 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_sm3.c,v 1.7 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018, Ribose Inc | 3 | * Copyright (c) 2018, Ribose Inc |
| 4 | * | 4 | * |
| @@ -64,5 +64,6 @@ EVP_sm3(void) | |||
| 64 | { | 64 | { |
| 65 | return &sm3_md; | 65 | return &sm3_md; |
| 66 | } | 66 | } |
| 67 | LCRYPTO_ALIAS(EVP_sm3); | ||
| 67 | 68 | ||
| 68 | #endif /* OPENSSL_NO_SM3 */ | 69 | #endif /* OPENSSL_NO_SM3 */ |
diff --git a/src/lib/libcrypto/evp/m_wp.c b/src/lib/libcrypto/evp/m_wp.c index 44d13b1484..6755d56e44 100644 --- a/src/lib/libcrypto/evp/m_wp.c +++ b/src/lib/libcrypto/evp/m_wp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_wp.c,v 1.13 2023/07/07 19:37:54 beck Exp $ */ | 1 | /* $OpenBSD: m_wp.c,v 1.14 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | 2 | ||
| 3 | #include <stdio.h> | 3 | #include <stdio.h> |
| 4 | 4 | ||
| @@ -50,4 +50,5 @@ EVP_whirlpool(void) | |||
| 50 | { | 50 | { |
| 51 | return (&whirlpool_md); | 51 | return (&whirlpool_md); |
| 52 | } | 52 | } |
| 53 | LCRYPTO_ALIAS(EVP_whirlpool); | ||
| 53 | #endif | 54 | #endif |
diff --git a/src/lib/libcrypto/evp/p_legacy.c b/src/lib/libcrypto/evp/p_legacy.c index adb6dc9174..01cfdbcd6a 100644 --- a/src/lib/libcrypto/evp/p_legacy.c +++ b/src/lib/libcrypto/evp/p_legacy.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: p_legacy.c,v 1.5 2024/03/28 01:42:02 tb Exp $ */ | 1 | /* $OpenBSD: p_legacy.c,v 1.6 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -77,6 +77,7 @@ EVP_PKEY_decrypt_old(unsigned char *to, const unsigned char *from, int from_len, | |||
| 77 | return RSA_private_decrypt(from_len, from, to, pkey->pkey.rsa, | 77 | return RSA_private_decrypt(from_len, from, to, pkey->pkey.rsa, |
| 78 | RSA_PKCS1_PADDING); | 78 | RSA_PKCS1_PADDING); |
| 79 | } | 79 | } |
| 80 | LCRYPTO_ALIAS(EVP_PKEY_decrypt_old); | ||
| 80 | 81 | ||
| 81 | int | 82 | int |
| 82 | EVP_PKEY_encrypt_old(unsigned char *to, const unsigned char *from, int from_len, | 83 | EVP_PKEY_encrypt_old(unsigned char *to, const unsigned char *from, int from_len, |
| @@ -90,6 +91,7 @@ EVP_PKEY_encrypt_old(unsigned char *to, const unsigned char *from, int from_len, | |||
| 90 | return RSA_public_encrypt(from_len, from, to, pkey->pkey.rsa, | 91 | return RSA_public_encrypt(from_len, from, to, pkey->pkey.rsa, |
| 91 | RSA_PKCS1_PADDING); | 92 | RSA_PKCS1_PADDING); |
| 92 | } | 93 | } |
| 94 | LCRYPTO_ALIAS(EVP_PKEY_encrypt_old); | ||
| 93 | 95 | ||
| 94 | int | 96 | int |
| 95 | EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | 97 | EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, |
| @@ -135,6 +137,7 @@ err: | |||
| 135 | freezero(key, size); | 137 | freezero(key, size); |
| 136 | return (ret); | 138 | return (ret); |
| 137 | } | 139 | } |
| 140 | LCRYPTO_ALIAS(EVP_OpenInit); | ||
| 138 | 141 | ||
| 139 | int | 142 | int |
| 140 | EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) | 143 | EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
| @@ -146,6 +149,7 @@ EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) | |||
| 146 | i = EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, NULL); | 149 | i = EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, NULL); |
| 147 | return (i); | 150 | return (i); |
| 148 | } | 151 | } |
| 152 | LCRYPTO_ALIAS(EVP_OpenFinal); | ||
| 149 | 153 | ||
| 150 | int | 154 | int |
| 151 | EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, | 155 | EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, |
| @@ -181,6 +185,7 @@ EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, | |||
| 181 | } | 185 | } |
| 182 | return (npubk); | 186 | return (npubk); |
| 183 | } | 187 | } |
| 188 | LCRYPTO_ALIAS(EVP_SealInit); | ||
| 184 | 189 | ||
| 185 | int | 190 | int |
| 186 | EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) | 191 | EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
| @@ -192,3 +197,4 @@ EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) | |||
| 192 | i = EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, NULL); | 197 | i = EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, NULL); |
| 193 | return i; | 198 | return i; |
| 194 | } | 199 | } |
| 200 | LCRYPTO_ALIAS(EVP_SealFinal); | ||
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index 8bf820560c..4a6a6db4cc 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/lib/libcrypto/evp/p_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: p_lib.c,v 1.59 2024/03/02 11:17:27 tb Exp $ */ | 1 | /* $OpenBSD: p_lib.c,v 1.60 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -170,6 +170,7 @@ EVP_PKEY_asn1_get_count(void) | |||
| 170 | { | 170 | { |
| 171 | return N_ASN1_METHODS; | 171 | return N_ASN1_METHODS; |
| 172 | } | 172 | } |
| 173 | LCRYPTO_ALIAS(EVP_PKEY_asn1_get_count); | ||
| 173 | 174 | ||
| 174 | const EVP_PKEY_ASN1_METHOD * | 175 | const EVP_PKEY_ASN1_METHOD * |
| 175 | EVP_PKEY_asn1_get0(int idx) | 176 | EVP_PKEY_asn1_get0(int idx) |
| @@ -179,6 +180,7 @@ EVP_PKEY_asn1_get0(int idx) | |||
| 179 | 180 | ||
| 180 | return asn1_methods[idx]; | 181 | return asn1_methods[idx]; |
| 181 | } | 182 | } |
| 183 | LCRYPTO_ALIAS(EVP_PKEY_asn1_get0); | ||
| 182 | 184 | ||
| 183 | const EVP_PKEY_ASN1_METHOD * | 185 | const EVP_PKEY_ASN1_METHOD * |
| 184 | EVP_PKEY_asn1_find(ENGINE **engine, int pkey_id) | 186 | EVP_PKEY_asn1_find(ENGINE **engine, int pkey_id) |
| @@ -195,6 +197,7 @@ EVP_PKEY_asn1_find(ENGINE **engine, int pkey_id) | |||
| 195 | 197 | ||
| 196 | return NULL; | 198 | return NULL; |
| 197 | } | 199 | } |
| 200 | LCRYPTO_ALIAS(EVP_PKEY_asn1_find); | ||
| 198 | 201 | ||
| 199 | const EVP_PKEY_ASN1_METHOD * | 202 | const EVP_PKEY_ASN1_METHOD * |
| 200 | EVP_PKEY_asn1_find_str(ENGINE **engine, const char *str, int len) | 203 | EVP_PKEY_asn1_find_str(ENGINE **engine, const char *str, int len) |
| @@ -224,6 +227,7 @@ EVP_PKEY_asn1_find_str(ENGINE **engine, const char *str, int len) | |||
| 224 | 227 | ||
| 225 | return NULL; | 228 | return NULL; |
| 226 | } | 229 | } |
| 230 | LCRYPTO_ALIAS(EVP_PKEY_asn1_find_str); | ||
| 227 | 231 | ||
| 228 | int | 232 | int |
| 229 | EVP_PKEY_asn1_get0_info(int *pkey_id, int *pkey_base_id, int *pkey_flags, | 233 | EVP_PKEY_asn1_get0_info(int *pkey_id, int *pkey_base_id, int *pkey_flags, |
| @@ -246,12 +250,14 @@ EVP_PKEY_asn1_get0_info(int *pkey_id, int *pkey_base_id, int *pkey_flags, | |||
| 246 | 250 | ||
| 247 | return 1; | 251 | return 1; |
| 248 | } | 252 | } |
| 253 | LCRYPTO_ALIAS(EVP_PKEY_asn1_get0_info); | ||
| 249 | 254 | ||
| 250 | const EVP_PKEY_ASN1_METHOD* | 255 | const EVP_PKEY_ASN1_METHOD* |
| 251 | EVP_PKEY_get0_asn1(const EVP_PKEY *pkey) | 256 | EVP_PKEY_get0_asn1(const EVP_PKEY *pkey) |
| 252 | { | 257 | { |
| 253 | return pkey->ameth; | 258 | return pkey->ameth; |
| 254 | } | 259 | } |
| 260 | LCRYPTO_ALIAS(EVP_PKEY_get0_asn1); | ||
| 255 | 261 | ||
| 256 | int | 262 | int |
| 257 | EVP_PKEY_bits(const EVP_PKEY *pkey) | 263 | EVP_PKEY_bits(const EVP_PKEY *pkey) |
| @@ -260,6 +266,7 @@ EVP_PKEY_bits(const EVP_PKEY *pkey) | |||
| 260 | return pkey->ameth->pkey_bits(pkey); | 266 | return pkey->ameth->pkey_bits(pkey); |
| 261 | return 0; | 267 | return 0; |
| 262 | } | 268 | } |
| 269 | LCRYPTO_ALIAS(EVP_PKEY_bits); | ||
| 263 | 270 | ||
| 264 | int | 271 | int |
| 265 | EVP_PKEY_security_bits(const EVP_PKEY *pkey) | 272 | EVP_PKEY_security_bits(const EVP_PKEY *pkey) |
| @@ -271,6 +278,7 @@ EVP_PKEY_security_bits(const EVP_PKEY *pkey) | |||
| 271 | 278 | ||
| 272 | return pkey->ameth->pkey_security_bits(pkey); | 279 | return pkey->ameth->pkey_security_bits(pkey); |
| 273 | } | 280 | } |
| 281 | LCRYPTO_ALIAS(EVP_PKEY_security_bits); | ||
| 274 | 282 | ||
| 275 | int | 283 | int |
| 276 | EVP_PKEY_size(const EVP_PKEY *pkey) | 284 | EVP_PKEY_size(const EVP_PKEY *pkey) |
| @@ -279,6 +287,7 @@ EVP_PKEY_size(const EVP_PKEY *pkey) | |||
| 279 | return pkey->ameth->pkey_size(pkey); | 287 | return pkey->ameth->pkey_size(pkey); |
| 280 | return 0; | 288 | return 0; |
| 281 | } | 289 | } |
| 290 | LCRYPTO_ALIAS(EVP_PKEY_size); | ||
| 282 | 291 | ||
| 283 | int | 292 | int |
| 284 | EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) | 293 | EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) |
| @@ -303,6 +312,7 @@ EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) | |||
| 303 | #endif | 312 | #endif |
| 304 | return (0); | 313 | return (0); |
| 305 | } | 314 | } |
| 315 | LCRYPTO_ALIAS(EVP_PKEY_save_parameters); | ||
| 306 | 316 | ||
| 307 | int | 317 | int |
| 308 | EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) | 318 | EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) |
| @@ -322,6 +332,7 @@ EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) | |||
| 322 | err: | 332 | err: |
| 323 | return 0; | 333 | return 0; |
| 324 | } | 334 | } |
| 335 | LCRYPTO_ALIAS(EVP_PKEY_copy_parameters); | ||
| 325 | 336 | ||
| 326 | int | 337 | int |
| 327 | EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) | 338 | EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) |
| @@ -330,6 +341,7 @@ EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) | |||
| 330 | return pkey->ameth->param_missing(pkey); | 341 | return pkey->ameth->param_missing(pkey); |
| 331 | return 0; | 342 | return 0; |
| 332 | } | 343 | } |
| 344 | LCRYPTO_ALIAS(EVP_PKEY_missing_parameters); | ||
| 333 | 345 | ||
| 334 | int | 346 | int |
| 335 | EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) | 347 | EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) |
| @@ -340,6 +352,7 @@ EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) | |||
| 340 | return a->ameth->param_cmp(a, b); | 352 | return a->ameth->param_cmp(a, b); |
| 341 | return -2; | 353 | return -2; |
| 342 | } | 354 | } |
| 355 | LCRYPTO_ALIAS(EVP_PKEY_cmp_parameters); | ||
| 343 | 356 | ||
| 344 | int | 357 | int |
| 345 | EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) | 358 | EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) |
| @@ -362,6 +375,7 @@ EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) | |||
| 362 | 375 | ||
| 363 | return -2; | 376 | return -2; |
| 364 | } | 377 | } |
| 378 | LCRYPTO_ALIAS(EVP_PKEY_cmp); | ||
| 365 | 379 | ||
| 366 | EVP_PKEY * | 380 | EVP_PKEY * |
| 367 | EVP_PKEY_new(void) | 381 | EVP_PKEY_new(void) |
| @@ -379,12 +393,14 @@ EVP_PKEY_new(void) | |||
| 379 | 393 | ||
| 380 | return pkey; | 394 | return pkey; |
| 381 | } | 395 | } |
| 396 | LCRYPTO_ALIAS(EVP_PKEY_new); | ||
| 382 | 397 | ||
| 383 | int | 398 | int |
| 384 | EVP_PKEY_up_ref(EVP_PKEY *pkey) | 399 | EVP_PKEY_up_ref(EVP_PKEY *pkey) |
| 385 | { | 400 | { |
| 386 | return CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY) > 1; | 401 | return CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY) > 1; |
| 387 | } | 402 | } |
| 403 | LCRYPTO_ALIAS(EVP_PKEY_up_ref); | ||
| 388 | 404 | ||
| 389 | static void | 405 | static void |
| 390 | evp_pkey_free_pkey_ptr(EVP_PKEY *pkey) | 406 | evp_pkey_free_pkey_ptr(EVP_PKEY *pkey) |
| @@ -409,6 +425,7 @@ EVP_PKEY_free(EVP_PKEY *pkey) | |||
| 409 | sk_X509_ATTRIBUTE_pop_free(pkey->attributes, X509_ATTRIBUTE_free); | 425 | sk_X509_ATTRIBUTE_pop_free(pkey->attributes, X509_ATTRIBUTE_free); |
| 410 | freezero(pkey, sizeof(*pkey)); | 426 | freezero(pkey, sizeof(*pkey)); |
| 411 | } | 427 | } |
| 428 | LCRYPTO_ALIAS(EVP_PKEY_free); | ||
| 412 | 429 | ||
| 413 | int | 430 | int |
| 414 | EVP_PKEY_set_type(EVP_PKEY *pkey, int type) | 431 | EVP_PKEY_set_type(EVP_PKEY *pkey, int type) |
| @@ -428,6 +445,7 @@ EVP_PKEY_set_type(EVP_PKEY *pkey, int type) | |||
| 428 | 445 | ||
| 429 | return 1; | 446 | return 1; |
| 430 | } | 447 | } |
| 448 | LCRYPTO_ALIAS(EVP_PKEY_set_type); | ||
| 431 | 449 | ||
| 432 | int | 450 | int |
| 433 | EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) | 451 | EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) |
| @@ -447,6 +465,7 @@ EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) | |||
| 447 | 465 | ||
| 448 | return 1; | 466 | return 1; |
| 449 | } | 467 | } |
| 468 | LCRYPTO_ALIAS(EVP_PKEY_set_type_str); | ||
| 450 | 469 | ||
| 451 | int | 470 | int |
| 452 | EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) | 471 | EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) |
| @@ -456,6 +475,7 @@ EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) | |||
| 456 | 475 | ||
| 457 | return (pkey->pkey.ptr = key) != NULL; | 476 | return (pkey->pkey.ptr = key) != NULL; |
| 458 | } | 477 | } |
| 478 | LCRYPTO_ALIAS(EVP_PKEY_assign); | ||
| 459 | 479 | ||
| 460 | EVP_PKEY * | 480 | EVP_PKEY * |
| 461 | EVP_PKEY_new_raw_private_key(int type, ENGINE *engine, | 481 | EVP_PKEY_new_raw_private_key(int type, ENGINE *engine, |
| @@ -485,6 +505,7 @@ EVP_PKEY_new_raw_private_key(int type, ENGINE *engine, | |||
| 485 | 505 | ||
| 486 | return NULL; | 506 | return NULL; |
| 487 | } | 507 | } |
| 508 | LCRYPTO_ALIAS(EVP_PKEY_new_raw_private_key); | ||
| 488 | 509 | ||
| 489 | EVP_PKEY * | 510 | EVP_PKEY * |
| 490 | EVP_PKEY_new_raw_public_key(int type, ENGINE *engine, | 511 | EVP_PKEY_new_raw_public_key(int type, ENGINE *engine, |
| @@ -514,6 +535,7 @@ EVP_PKEY_new_raw_public_key(int type, ENGINE *engine, | |||
| 514 | 535 | ||
| 515 | return NULL; | 536 | return NULL; |
| 516 | } | 537 | } |
| 538 | LCRYPTO_ALIAS(EVP_PKEY_new_raw_public_key); | ||
| 517 | 539 | ||
| 518 | int | 540 | int |
| 519 | EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, | 541 | EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, |
| @@ -530,6 +552,7 @@ EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, | |||
| 530 | 552 | ||
| 531 | return 1; | 553 | return 1; |
| 532 | } | 554 | } |
| 555 | LCRYPTO_ALIAS(EVP_PKEY_get_raw_private_key); | ||
| 533 | 556 | ||
| 534 | int | 557 | int |
| 535 | EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, | 558 | EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, |
| @@ -546,6 +569,7 @@ EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, | |||
| 546 | 569 | ||
| 547 | return 1; | 570 | return 1; |
| 548 | } | 571 | } |
| 572 | LCRYPTO_ALIAS(EVP_PKEY_get_raw_public_key); | ||
| 549 | 573 | ||
| 550 | EVP_PKEY * | 574 | EVP_PKEY * |
| 551 | EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv, size_t len, | 575 | EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv, size_t len, |
| @@ -577,12 +601,14 @@ EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv, size_t len, | |||
| 577 | 601 | ||
| 578 | return NULL; | 602 | return NULL; |
| 579 | } | 603 | } |
| 604 | LCRYPTO_ALIAS(EVP_PKEY_new_CMAC_key); | ||
| 580 | 605 | ||
| 581 | void * | 606 | void * |
| 582 | EVP_PKEY_get0(const EVP_PKEY *pkey) | 607 | EVP_PKEY_get0(const EVP_PKEY *pkey) |
| 583 | { | 608 | { |
| 584 | return pkey->pkey.ptr; | 609 | return pkey->pkey.ptr; |
| 585 | } | 610 | } |
| 611 | LCRYPTO_ALIAS(EVP_PKEY_get0); | ||
| 586 | 612 | ||
| 587 | const unsigned char * | 613 | const unsigned char * |
| 588 | EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len) | 614 | EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len) |
| @@ -599,6 +625,7 @@ EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len) | |||
| 599 | 625 | ||
| 600 | return os->data; | 626 | return os->data; |
| 601 | } | 627 | } |
| 628 | LCRYPTO_ALIAS(EVP_PKEY_get0_hmac); | ||
| 602 | 629 | ||
| 603 | #ifndef OPENSSL_NO_RSA | 630 | #ifndef OPENSSL_NO_RSA |
| 604 | RSA * | 631 | RSA * |
| @@ -610,6 +637,7 @@ EVP_PKEY_get0_RSA(EVP_PKEY *pkey) | |||
| 610 | EVPerror(EVP_R_EXPECTING_AN_RSA_KEY); | 637 | EVPerror(EVP_R_EXPECTING_AN_RSA_KEY); |
| 611 | return NULL; | 638 | return NULL; |
| 612 | } | 639 | } |
| 640 | LCRYPTO_ALIAS(EVP_PKEY_get0_RSA); | ||
| 613 | 641 | ||
| 614 | RSA * | 642 | RSA * |
| 615 | EVP_PKEY_get1_RSA(EVP_PKEY *pkey) | 643 | EVP_PKEY_get1_RSA(EVP_PKEY *pkey) |
| @@ -623,6 +651,7 @@ EVP_PKEY_get1_RSA(EVP_PKEY *pkey) | |||
| 623 | 651 | ||
| 624 | return rsa; | 652 | return rsa; |
| 625 | } | 653 | } |
| 654 | LCRYPTO_ALIAS(EVP_PKEY_get1_RSA); | ||
| 626 | 655 | ||
| 627 | int | 656 | int |
| 628 | EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) | 657 | EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) |
| @@ -632,6 +661,7 @@ EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) | |||
| 632 | RSA_up_ref(key); | 661 | RSA_up_ref(key); |
| 633 | return ret; | 662 | return ret; |
| 634 | } | 663 | } |
| 664 | LCRYPTO_ALIAS(EVP_PKEY_set1_RSA); | ||
| 635 | #endif | 665 | #endif |
| 636 | 666 | ||
| 637 | #ifndef OPENSSL_NO_DSA | 667 | #ifndef OPENSSL_NO_DSA |
| @@ -644,6 +674,7 @@ EVP_PKEY_get0_DSA(EVP_PKEY *pkey) | |||
| 644 | } | 674 | } |
| 645 | return pkey->pkey.dsa; | 675 | return pkey->pkey.dsa; |
| 646 | } | 676 | } |
| 677 | LCRYPTO_ALIAS(EVP_PKEY_get0_DSA); | ||
| 647 | 678 | ||
| 648 | DSA * | 679 | DSA * |
| 649 | EVP_PKEY_get1_DSA(EVP_PKEY *pkey) | 680 | EVP_PKEY_get1_DSA(EVP_PKEY *pkey) |
| @@ -657,6 +688,7 @@ EVP_PKEY_get1_DSA(EVP_PKEY *pkey) | |||
| 657 | 688 | ||
| 658 | return dsa; | 689 | return dsa; |
| 659 | } | 690 | } |
| 691 | LCRYPTO_ALIAS(EVP_PKEY_get1_DSA); | ||
| 660 | 692 | ||
| 661 | int | 693 | int |
| 662 | EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) | 694 | EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) |
| @@ -666,6 +698,7 @@ EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) | |||
| 666 | DSA_up_ref(key); | 698 | DSA_up_ref(key); |
| 667 | return ret; | 699 | return ret; |
| 668 | } | 700 | } |
| 701 | LCRYPTO_ALIAS(EVP_PKEY_set1_DSA); | ||
| 669 | #endif | 702 | #endif |
| 670 | 703 | ||
| 671 | #ifndef OPENSSL_NO_EC | 704 | #ifndef OPENSSL_NO_EC |
| @@ -678,6 +711,7 @@ EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey) | |||
| 678 | } | 711 | } |
| 679 | return pkey->pkey.ec; | 712 | return pkey->pkey.ec; |
| 680 | } | 713 | } |
| 714 | LCRYPTO_ALIAS(EVP_PKEY_get0_EC_KEY); | ||
| 681 | 715 | ||
| 682 | EC_KEY * | 716 | EC_KEY * |
| 683 | EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) | 717 | EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) |
| @@ -691,6 +725,7 @@ EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) | |||
| 691 | 725 | ||
| 692 | return key; | 726 | return key; |
| 693 | } | 727 | } |
| 728 | LCRYPTO_ALIAS(EVP_PKEY_get1_EC_KEY); | ||
| 694 | 729 | ||
| 695 | int | 730 | int |
| 696 | EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) | 731 | EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) |
| @@ -700,6 +735,7 @@ EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) | |||
| 700 | EC_KEY_up_ref(key); | 735 | EC_KEY_up_ref(key); |
| 701 | return ret; | 736 | return ret; |
| 702 | } | 737 | } |
| 738 | LCRYPTO_ALIAS(EVP_PKEY_set1_EC_KEY); | ||
| 703 | #endif | 739 | #endif |
| 704 | 740 | ||
| 705 | 741 | ||
| @@ -713,6 +749,7 @@ EVP_PKEY_get0_DH(EVP_PKEY *pkey) | |||
| 713 | } | 749 | } |
| 714 | return pkey->pkey.dh; | 750 | return pkey->pkey.dh; |
| 715 | } | 751 | } |
| 752 | LCRYPTO_ALIAS(EVP_PKEY_get0_DH); | ||
| 716 | 753 | ||
| 717 | DH * | 754 | DH * |
| 718 | EVP_PKEY_get1_DH(EVP_PKEY *pkey) | 755 | EVP_PKEY_get1_DH(EVP_PKEY *pkey) |
| @@ -726,6 +763,7 @@ EVP_PKEY_get1_DH(EVP_PKEY *pkey) | |||
| 726 | 763 | ||
| 727 | return dh; | 764 | return dh; |
| 728 | } | 765 | } |
| 766 | LCRYPTO_ALIAS(EVP_PKEY_get1_DH); | ||
| 729 | 767 | ||
| 730 | int | 768 | int |
| 731 | EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) | 769 | EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) |
| @@ -735,6 +773,7 @@ EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) | |||
| 735 | DH_up_ref(key); | 773 | DH_up_ref(key); |
| 736 | return ret; | 774 | return ret; |
| 737 | } | 775 | } |
| 776 | LCRYPTO_ALIAS(EVP_PKEY_set1_DH); | ||
| 738 | #endif | 777 | #endif |
| 739 | 778 | ||
| 740 | int | 779 | int |
| @@ -747,18 +786,21 @@ EVP_PKEY_type(int type) | |||
| 747 | 786 | ||
| 748 | return NID_undef; | 787 | return NID_undef; |
| 749 | } | 788 | } |
| 789 | LCRYPTO_ALIAS(EVP_PKEY_type); | ||
| 750 | 790 | ||
| 751 | int | 791 | int |
| 752 | EVP_PKEY_id(const EVP_PKEY *pkey) | 792 | EVP_PKEY_id(const EVP_PKEY *pkey) |
| 753 | { | 793 | { |
| 754 | return pkey->type; | 794 | return pkey->type; |
| 755 | } | 795 | } |
| 796 | LCRYPTO_ALIAS(EVP_PKEY_id); | ||
| 756 | 797 | ||
| 757 | int | 798 | int |
| 758 | EVP_PKEY_base_id(const EVP_PKEY *pkey) | 799 | EVP_PKEY_base_id(const EVP_PKEY *pkey) |
| 759 | { | 800 | { |
| 760 | return EVP_PKEY_type(pkey->type); | 801 | return EVP_PKEY_type(pkey->type); |
| 761 | } | 802 | } |
| 803 | LCRYPTO_ALIAS(EVP_PKEY_base_id); | ||
| 762 | 804 | ||
| 763 | static int | 805 | static int |
| 764 | unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) | 806 | unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) |
| @@ -779,6 +821,7 @@ EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, | |||
| 779 | 821 | ||
| 780 | return unsup_alg(out, pkey, indent, "Public Key"); | 822 | return unsup_alg(out, pkey, indent, "Public Key"); |
| 781 | } | 823 | } |
| 824 | LCRYPTO_ALIAS(EVP_PKEY_print_public); | ||
| 782 | 825 | ||
| 783 | int | 826 | int |
| 784 | EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, | 827 | EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, |
| @@ -789,6 +832,7 @@ EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, | |||
| 789 | 832 | ||
| 790 | return unsup_alg(out, pkey, indent, "Private Key"); | 833 | return unsup_alg(out, pkey, indent, "Private Key"); |
| 791 | } | 834 | } |
| 835 | LCRYPTO_ALIAS(EVP_PKEY_print_private); | ||
| 792 | 836 | ||
| 793 | int | 837 | int |
| 794 | EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, | 838 | EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, |
| @@ -798,6 +842,7 @@ EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, | |||
| 798 | return pkey->ameth->param_print(out, pkey, indent, pctx); | 842 | return pkey->ameth->param_print(out, pkey, indent, pctx); |
| 799 | return unsup_alg(out, pkey, indent, "Parameters"); | 843 | return unsup_alg(out, pkey, indent, "Parameters"); |
| 800 | } | 844 | } |
| 845 | LCRYPTO_ALIAS(EVP_PKEY_print_params); | ||
| 801 | 846 | ||
| 802 | int | 847 | int |
| 803 | EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) | 848 | EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) |
| @@ -807,3 +852,4 @@ EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) | |||
| 807 | return pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_DEFAULT_MD_NID, | 852 | return pkey->ameth->pkey_ctrl(pkey, ASN1_PKEY_CTRL_DEFAULT_MD_NID, |
| 808 | 0, pnid); | 853 | 0, pnid); |
| 809 | } | 854 | } |
| 855 | LCRYPTO_ALIAS(EVP_PKEY_get_default_digest_nid); | ||
diff --git a/src/lib/libcrypto/evp/p_sign.c b/src/lib/libcrypto/evp/p_sign.c index 70290ed216..7f472ea716 100644 --- a/src/lib/libcrypto/evp/p_sign.c +++ b/src/lib/libcrypto/evp/p_sign.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: p_sign.c,v 1.21 2024/03/26 06:08:51 joshua Exp $ */ | 1 | /* $OpenBSD: p_sign.c,v 1.22 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -104,3 +104,4 @@ EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, | |||
| 104 | EVP_PKEY_CTX_free(pkctx); | 104 | EVP_PKEY_CTX_free(pkctx); |
| 105 | return ret; | 105 | return ret; |
| 106 | } | 106 | } |
| 107 | LCRYPTO_ALIAS(EVP_SignFinal); | ||
diff --git a/src/lib/libcrypto/evp/p_verify.c b/src/lib/libcrypto/evp/p_verify.c index 04b7c39c65..02132e2c38 100644 --- a/src/lib/libcrypto/evp/p_verify.c +++ b/src/lib/libcrypto/evp/p_verify.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: p_verify.c,v 1.20 2024/03/26 05:50:49 joshua Exp $ */ | 1 | /* $OpenBSD: p_verify.c,v 1.21 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -96,3 +96,4 @@ EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, | |||
| 96 | EVP_PKEY_CTX_free(pkctx); | 96 | EVP_PKEY_CTX_free(pkctx); |
| 97 | return ret; | 97 | return ret; |
| 98 | } | 98 | } |
| 99 | LCRYPTO_ALIAS(EVP_VerifyFinal); | ||
diff --git a/src/lib/libcrypto/evp/pmeth_fn.c b/src/lib/libcrypto/evp/pmeth_fn.c index a304752e63..f8ed555fda 100644 --- a/src/lib/libcrypto/evp/pmeth_fn.c +++ b/src/lib/libcrypto/evp/pmeth_fn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pmeth_fn.c,v 1.9 2023/07/07 19:37:54 beck Exp $ */ | 1 | /* $OpenBSD: pmeth_fn.c,v 1.10 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -98,6 +98,7 @@ EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx) | |||
| 98 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 98 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 99 | return ret; | 99 | return ret; |
| 100 | } | 100 | } |
| 101 | LCRYPTO_ALIAS(EVP_PKEY_sign_init); | ||
| 101 | 102 | ||
| 102 | int | 103 | int |
| 103 | EVP_PKEY_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | 104 | EVP_PKEY_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, |
| @@ -114,6 +115,7 @@ EVP_PKEY_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | |||
| 114 | M_check_autoarg(ctx, sig, siglen, EVP_F_EVP_PKEY_SIGN) | 115 | M_check_autoarg(ctx, sig, siglen, EVP_F_EVP_PKEY_SIGN) |
| 115 | return ctx->pmeth->sign(ctx, sig, siglen, tbs, tbslen); | 116 | return ctx->pmeth->sign(ctx, sig, siglen, tbs, tbslen); |
| 116 | } | 117 | } |
| 118 | LCRYPTO_ALIAS(EVP_PKEY_sign); | ||
| 117 | 119 | ||
| 118 | int | 120 | int |
| 119 | EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx) | 121 | EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx) |
| @@ -132,6 +134,7 @@ EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx) | |||
| 132 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 134 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 133 | return ret; | 135 | return ret; |
| 134 | } | 136 | } |
| 137 | LCRYPTO_ALIAS(EVP_PKEY_verify_init); | ||
| 135 | 138 | ||
| 136 | int | 139 | int |
| 137 | EVP_PKEY_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, | 140 | EVP_PKEY_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, |
| @@ -147,6 +150,7 @@ EVP_PKEY_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, | |||
| 147 | } | 150 | } |
| 148 | return ctx->pmeth->verify(ctx, sig, siglen, tbs, tbslen); | 151 | return ctx->pmeth->verify(ctx, sig, siglen, tbs, tbslen); |
| 149 | } | 152 | } |
| 153 | LCRYPTO_ALIAS(EVP_PKEY_verify); | ||
| 150 | 154 | ||
| 151 | int | 155 | int |
| 152 | EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx) | 156 | EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx) |
| @@ -165,6 +169,7 @@ EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx) | |||
| 165 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 169 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 166 | return ret; | 170 | return ret; |
| 167 | } | 171 | } |
| 172 | LCRYPTO_ALIAS(EVP_PKEY_verify_recover_init); | ||
| 168 | 173 | ||
| 169 | int | 174 | int |
| 170 | EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx, unsigned char *rout, size_t *routlen, | 175 | EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx, unsigned char *rout, size_t *routlen, |
| @@ -181,6 +186,7 @@ EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx, unsigned char *rout, size_t *routlen, | |||
| 181 | M_check_autoarg(ctx, rout, routlen, EVP_F_EVP_PKEY_VERIFY_RECOVER) | 186 | M_check_autoarg(ctx, rout, routlen, EVP_F_EVP_PKEY_VERIFY_RECOVER) |
| 182 | return ctx->pmeth->verify_recover(ctx, rout, routlen, sig, siglen); | 187 | return ctx->pmeth->verify_recover(ctx, rout, routlen, sig, siglen); |
| 183 | } | 188 | } |
| 189 | LCRYPTO_ALIAS(EVP_PKEY_verify_recover); | ||
| 184 | 190 | ||
| 185 | int | 191 | int |
| 186 | EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx) | 192 | EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx) |
| @@ -199,6 +205,7 @@ EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx) | |||
| 199 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 205 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 200 | return ret; | 206 | return ret; |
| 201 | } | 207 | } |
| 208 | LCRYPTO_ALIAS(EVP_PKEY_encrypt_init); | ||
| 202 | 209 | ||
| 203 | int | 210 | int |
| 204 | EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | 211 | EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, |
| @@ -215,6 +222,7 @@ EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | |||
| 215 | M_check_autoarg(ctx, out, outlen, EVP_F_EVP_PKEY_ENCRYPT) | 222 | M_check_autoarg(ctx, out, outlen, EVP_F_EVP_PKEY_ENCRYPT) |
| 216 | return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); | 223 | return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); |
| 217 | } | 224 | } |
| 225 | LCRYPTO_ALIAS(EVP_PKEY_encrypt); | ||
| 218 | 226 | ||
| 219 | int | 227 | int |
| 220 | EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx) | 228 | EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx) |
| @@ -233,6 +241,7 @@ EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx) | |||
| 233 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 241 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 234 | return ret; | 242 | return ret; |
| 235 | } | 243 | } |
| 244 | LCRYPTO_ALIAS(EVP_PKEY_decrypt_init); | ||
| 236 | 245 | ||
| 237 | int | 246 | int |
| 238 | EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | 247 | EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, |
| @@ -249,6 +258,7 @@ EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | |||
| 249 | M_check_autoarg(ctx, out, outlen, EVP_F_EVP_PKEY_DECRYPT) | 258 | M_check_autoarg(ctx, out, outlen, EVP_F_EVP_PKEY_DECRYPT) |
| 250 | return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen); | 259 | return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen); |
| 251 | } | 260 | } |
| 261 | LCRYPTO_ALIAS(EVP_PKEY_decrypt); | ||
| 252 | 262 | ||
| 253 | int | 263 | int |
| 254 | EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx) | 264 | EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx) |
| @@ -267,6 +277,7 @@ EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx) | |||
| 267 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 277 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 268 | return ret; | 278 | return ret; |
| 269 | } | 279 | } |
| 280 | LCRYPTO_ALIAS(EVP_PKEY_derive_init); | ||
| 270 | 281 | ||
| 271 | int | 282 | int |
| 272 | EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer) | 283 | EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer) |
| @@ -328,6 +339,7 @@ EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer) | |||
| 328 | CRYPTO_add(&peer->references, 1, CRYPTO_LOCK_EVP_PKEY); | 339 | CRYPTO_add(&peer->references, 1, CRYPTO_LOCK_EVP_PKEY); |
| 329 | return 1; | 340 | return 1; |
| 330 | } | 341 | } |
| 342 | LCRYPTO_ALIAS(EVP_PKEY_derive_set_peer); | ||
| 331 | 343 | ||
| 332 | int | 344 | int |
| 333 | EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *pkeylen) | 345 | EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *pkeylen) |
| @@ -343,3 +355,4 @@ EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *pkeylen) | |||
| 343 | M_check_autoarg(ctx, key, pkeylen, EVP_F_EVP_PKEY_DERIVE) | 355 | M_check_autoarg(ctx, key, pkeylen, EVP_F_EVP_PKEY_DERIVE) |
| 344 | return ctx->pmeth->derive(ctx, key, pkeylen); | 356 | return ctx->pmeth->derive(ctx, key, pkeylen); |
| 345 | } | 357 | } |
| 358 | LCRYPTO_ALIAS(EVP_PKEY_derive); | ||
diff --git a/src/lib/libcrypto/evp/pmeth_gn.c b/src/lib/libcrypto/evp/pmeth_gn.c index ce7b107c7a..2711ba1a9e 100644 --- a/src/lib/libcrypto/evp/pmeth_gn.c +++ b/src/lib/libcrypto/evp/pmeth_gn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pmeth_gn.c,v 1.15 2024/01/01 18:33:04 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_gn.c,v 1.16 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -85,6 +85,7 @@ EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx) | |||
| 85 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 85 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 86 | return ret; | 86 | return ret; |
| 87 | } | 87 | } |
| 88 | LCRYPTO_ALIAS(EVP_PKEY_paramgen_init); | ||
| 88 | 89 | ||
| 89 | int | 90 | int |
| 90 | EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | 91 | EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) |
| @@ -114,6 +115,7 @@ EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | |||
| 114 | } | 115 | } |
| 115 | return ret; | 116 | return ret; |
| 116 | } | 117 | } |
| 118 | LCRYPTO_ALIAS(EVP_PKEY_paramgen); | ||
| 117 | 119 | ||
| 118 | int | 120 | int |
| 119 | EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) | 121 | EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) |
| @@ -132,6 +134,7 @@ EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) | |||
| 132 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 134 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 133 | return ret; | 135 | return ret; |
| 134 | } | 136 | } |
| 137 | LCRYPTO_ALIAS(EVP_PKEY_keygen_init); | ||
| 135 | 138 | ||
| 136 | int | 139 | int |
| 137 | EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | 140 | EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) |
| @@ -160,18 +163,21 @@ EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | |||
| 160 | } | 163 | } |
| 161 | return ret; | 164 | return ret; |
| 162 | } | 165 | } |
| 166 | LCRYPTO_ALIAS(EVP_PKEY_keygen); | ||
| 163 | 167 | ||
| 164 | void | 168 | void |
| 165 | EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb) | 169 | EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb) |
| 166 | { | 170 | { |
| 167 | ctx->pkey_gencb = cb; | 171 | ctx->pkey_gencb = cb; |
| 168 | } | 172 | } |
| 173 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set_cb); | ||
| 169 | 174 | ||
| 170 | EVP_PKEY_gen_cb * | 175 | EVP_PKEY_gen_cb * |
| 171 | EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx) | 176 | EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx) |
| 172 | { | 177 | { |
| 173 | return ctx->pkey_gencb; | 178 | return ctx->pkey_gencb; |
| 174 | } | 179 | } |
| 180 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_cb); | ||
| 175 | 181 | ||
| 176 | /* "translation callback" to call EVP_PKEY_CTX callbacks using BN_GENCB | 182 | /* "translation callback" to call EVP_PKEY_CTX callbacks using BN_GENCB |
| 177 | * style callbacks. | 183 | * style callbacks. |
| @@ -201,6 +207,7 @@ EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx) | |||
| 201 | return 0; | 207 | return 0; |
| 202 | return ctx->keygen_info[idx]; | 208 | return ctx->keygen_info[idx]; |
| 203 | } | 209 | } |
| 210 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_keygen_info); | ||
| 204 | 211 | ||
| 205 | EVP_PKEY * | 212 | EVP_PKEY * |
| 206 | EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, int keylen) | 213 | EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, int keylen) |
| @@ -223,6 +230,7 @@ merr: | |||
| 223 | EVP_PKEY_CTX_free(mac_ctx); | 230 | EVP_PKEY_CTX_free(mac_ctx); |
| 224 | return mac_key; | 231 | return mac_key; |
| 225 | } | 232 | } |
| 233 | LCRYPTO_ALIAS(EVP_PKEY_new_mac_key); | ||
| 226 | 234 | ||
| 227 | int | 235 | int |
| 228 | EVP_PKEY_check(EVP_PKEY_CTX *ctx) | 236 | EVP_PKEY_check(EVP_PKEY_CTX *ctx) |
| @@ -244,6 +252,7 @@ EVP_PKEY_check(EVP_PKEY_CTX *ctx) | |||
| 244 | 252 | ||
| 245 | return pkey->ameth->pkey_check(pkey); | 253 | return pkey->ameth->pkey_check(pkey); |
| 246 | } | 254 | } |
| 255 | LCRYPTO_ALIAS(EVP_PKEY_check); | ||
| 247 | 256 | ||
| 248 | int | 257 | int |
| 249 | EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) | 258 | EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) |
| @@ -265,6 +274,7 @@ EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) | |||
| 265 | 274 | ||
| 266 | return pkey->ameth->pkey_public_check(pkey); | 275 | return pkey->ameth->pkey_public_check(pkey); |
| 267 | } | 276 | } |
| 277 | LCRYPTO_ALIAS(EVP_PKEY_public_check); | ||
| 268 | 278 | ||
| 269 | int | 279 | int |
| 270 | EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) | 280 | EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) |
| @@ -286,3 +296,4 @@ EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) | |||
| 286 | 296 | ||
| 287 | return pkey->ameth->pkey_param_check(pkey); | 297 | return pkey->ameth->pkey_param_check(pkey); |
| 288 | } | 298 | } |
| 299 | LCRYPTO_ALIAS(EVP_PKEY_param_check); | ||
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c index a2a9ad9c7b..a0a193da7a 100644 --- a/src/lib/libcrypto/evp/pmeth_lib.c +++ b/src/lib/libcrypto/evp/pmeth_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pmeth_lib.c,v 1.39 2024/03/02 11:17:27 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_lib.c,v 1.40 2024/04/09 13:52:41 beck Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -155,12 +155,14 @@ EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *engine) | |||
| 155 | { | 155 | { |
| 156 | return evp_pkey_ctx_new(pkey, -1); | 156 | return evp_pkey_ctx_new(pkey, -1); |
| 157 | } | 157 | } |
| 158 | LCRYPTO_ALIAS(EVP_PKEY_CTX_new); | ||
| 158 | 159 | ||
| 159 | EVP_PKEY_CTX * | 160 | EVP_PKEY_CTX * |
| 160 | EVP_PKEY_CTX_new_id(int nid, ENGINE *engine) | 161 | EVP_PKEY_CTX_new_id(int nid, ENGINE *engine) |
| 161 | { | 162 | { |
| 162 | return evp_pkey_ctx_new(NULL, nid); | 163 | return evp_pkey_ctx_new(NULL, nid); |
| 163 | } | 164 | } |
| 165 | LCRYPTO_ALIAS(EVP_PKEY_CTX_new_id); | ||
| 164 | 166 | ||
| 165 | EVP_PKEY_CTX * | 167 | EVP_PKEY_CTX * |
| 166 | EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) | 168 | EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) |
| @@ -192,6 +194,7 @@ EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) | |||
| 192 | EVP_PKEY_CTX_free(rctx); | 194 | EVP_PKEY_CTX_free(rctx); |
| 193 | return NULL; | 195 | return NULL; |
| 194 | } | 196 | } |
| 197 | LCRYPTO_ALIAS(EVP_PKEY_CTX_dup); | ||
| 195 | 198 | ||
| 196 | void | 199 | void |
| 197 | EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) | 200 | EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) |
| @@ -204,6 +207,7 @@ EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) | |||
| 204 | EVP_PKEY_free(ctx->peerkey); | 207 | EVP_PKEY_free(ctx->peerkey); |
| 205 | free(ctx); | 208 | free(ctx); |
| 206 | } | 209 | } |
| 210 | LCRYPTO_ALIAS(EVP_PKEY_CTX_free); | ||
| 207 | 211 | ||
| 208 | int | 212 | int |
| 209 | EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, | 213 | EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, |
| @@ -236,6 +240,7 @@ EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, | |||
| 236 | return ret; | 240 | return ret; |
| 237 | 241 | ||
| 238 | } | 242 | } |
| 243 | LCRYPTO_ALIAS(EVP_PKEY_CTX_ctrl); | ||
| 239 | 244 | ||
| 240 | int | 245 | int |
| 241 | EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *name, const char *value) | 246 | EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *name, const char *value) |
| @@ -250,6 +255,7 @@ EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *name, const char *value) | |||
| 250 | } | 255 | } |
| 251 | return ctx->pmeth->ctrl_str(ctx, name, value); | 256 | return ctx->pmeth->ctrl_str(ctx, name, value); |
| 252 | } | 257 | } |
| 258 | LCRYPTO_ALIAS(EVP_PKEY_CTX_ctrl_str); | ||
| 253 | 259 | ||
| 254 | int | 260 | int |
| 255 | EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str) | 261 | EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str) |
| @@ -300,6 +306,7 @@ EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx) | |||
| 300 | { | 306 | { |
| 301 | return ctx->operation; | 307 | return ctx->operation; |
| 302 | } | 308 | } |
| 309 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_operation); | ||
| 303 | 310 | ||
| 304 | void | 311 | void |
| 305 | EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) | 312 | EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) |
| @@ -307,39 +314,46 @@ EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) | |||
| 307 | ctx->keygen_info = dat; | 314 | ctx->keygen_info = dat; |
| 308 | ctx->keygen_info_count = datlen; | 315 | ctx->keygen_info_count = datlen; |
| 309 | } | 316 | } |
| 317 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set0_keygen_info); | ||
| 310 | 318 | ||
| 311 | void | 319 | void |
| 312 | EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data) | 320 | EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data) |
| 313 | { | 321 | { |
| 314 | ctx->data = data; | 322 | ctx->data = data; |
| 315 | } | 323 | } |
| 324 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set_data); | ||
| 316 | 325 | ||
| 317 | void * | 326 | void * |
| 318 | EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx) | 327 | EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx) |
| 319 | { | 328 | { |
| 320 | return ctx->data; | 329 | return ctx->data; |
| 321 | } | 330 | } |
| 331 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_data); | ||
| 322 | 332 | ||
| 323 | EVP_PKEY * | 333 | EVP_PKEY * |
| 324 | EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx) | 334 | EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx) |
| 325 | { | 335 | { |
| 326 | return ctx->pkey; | 336 | return ctx->pkey; |
| 327 | } | 337 | } |
| 338 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get0_pkey); | ||
| 328 | 339 | ||
| 329 | EVP_PKEY * | 340 | EVP_PKEY * |
| 330 | EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx) | 341 | EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx) |
| 331 | { | 342 | { |
| 332 | return ctx->peerkey; | 343 | return ctx->peerkey; |
| 333 | } | 344 | } |
| 345 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get0_peerkey); | ||
| 334 | 346 | ||
| 335 | void | 347 | void |
| 336 | EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data) | 348 | EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data) |
| 337 | { | 349 | { |
| 338 | ctx->app_data = data; | 350 | ctx->app_data = data; |
| 339 | } | 351 | } |
| 352 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set_app_data); | ||
| 340 | 353 | ||
| 341 | void * | 354 | void * |
| 342 | EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) | 355 | EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) |
| 343 | { | 356 | { |
| 344 | return ctx->app_data; | 357 | return ctx->app_data; |
| 345 | } | 358 | } |
| 359 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_app_data); | ||
diff --git a/src/lib/libcrypto/hidden/openssl/evp.h b/src/lib/libcrypto/hidden/openssl/evp.h new file mode 100644 index 0000000000..f5f0cc6dd6 --- /dev/null +++ b/src/lib/libcrypto/hidden/openssl/evp.h | |||
| @@ -0,0 +1,378 @@ | |||
| 1 | /* $OpenBSD: evp.h,v 1.3 2024/04/09 13:52:42 beck Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2024 Bob Beck <beck@openbsd.org> | ||
| 4 | * | ||
| 5 | * Permission to use, copy, modify, and distribute this software for any | ||
| 6 | * purpose with or without fee is hereby granted, provided that the above | ||
| 7 | * copyright notice and this permission notice appear in all copies. | ||
| 8 | * | ||
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef _LIBCRYPTO_EVP_H | ||
| 19 | #define _LIBCRYPTO_EVP_H | ||
| 20 | |||
| 21 | #ifndef _MSC_VER | ||
| 22 | #include_next <openssl/evp.h> | ||
| 23 | #else | ||
| 24 | #include "../include/openssl/evp.h" | ||
| 25 | #endif | ||
| 26 | #include "crypto_namespace.h" | ||
| 27 | |||
| 28 | LCRYPTO_USED(EVP_MD_type); | ||
| 29 | LCRYPTO_USED(EVP_MD_pkey_type); | ||
| 30 | LCRYPTO_USED(EVP_MD_size); | ||
| 31 | LCRYPTO_USED(EVP_MD_block_size); | ||
| 32 | LCRYPTO_USED(EVP_MD_flags); | ||
| 33 | LCRYPTO_USED(EVP_MD_CTX_md); | ||
| 34 | LCRYPTO_USED(EVP_MD_CTX_md_data); | ||
| 35 | LCRYPTO_USED(EVP_MD_CTX_pkey_ctx); | ||
| 36 | LCRYPTO_USED(EVP_MD_CTX_set_pkey_ctx); | ||
| 37 | LCRYPTO_USED(EVP_CIPHER_nid); | ||
| 38 | LCRYPTO_USED(EVP_CIPHER_block_size); | ||
| 39 | LCRYPTO_USED(EVP_CIPHER_key_length); | ||
| 40 | LCRYPTO_USED(EVP_CIPHER_iv_length); | ||
| 41 | LCRYPTO_USED(EVP_CIPHER_flags); | ||
| 42 | LCRYPTO_USED(EVP_CIPHER_CTX_cipher); | ||
| 43 | LCRYPTO_USED(EVP_CIPHER_CTX_encrypting); | ||
| 44 | LCRYPTO_USED(EVP_CIPHER_CTX_nid); | ||
| 45 | LCRYPTO_USED(EVP_CIPHER_CTX_block_size); | ||
| 46 | LCRYPTO_USED(EVP_CIPHER_CTX_key_length); | ||
| 47 | LCRYPTO_USED(EVP_CIPHER_CTX_iv_length); | ||
| 48 | LCRYPTO_USED(EVP_CIPHER_CTX_get_iv); | ||
| 49 | LCRYPTO_USED(EVP_CIPHER_CTX_set_iv); | ||
| 50 | LCRYPTO_USED(EVP_CIPHER_CTX_copy); | ||
| 51 | LCRYPTO_USED(EVP_CIPHER_CTX_get_app_data); | ||
| 52 | LCRYPTO_USED(EVP_CIPHER_CTX_set_app_data); | ||
| 53 | LCRYPTO_USED(EVP_CIPHER_CTX_get_cipher_data); | ||
| 54 | LCRYPTO_USED(EVP_CIPHER_CTX_set_cipher_data); | ||
| 55 | LCRYPTO_USED(EVP_CIPHER_CTX_buf_noconst); | ||
| 56 | LCRYPTO_USED(EVP_CIPHER_CTX_flags); | ||
| 57 | LCRYPTO_USED(EVP_CIPHER_meth_new); | ||
| 58 | LCRYPTO_USED(EVP_CIPHER_meth_dup); | ||
| 59 | LCRYPTO_USED(EVP_CIPHER_meth_free); | ||
| 60 | LCRYPTO_USED(EVP_CIPHER_meth_set_iv_length); | ||
| 61 | LCRYPTO_USED(EVP_CIPHER_meth_set_flags); | ||
| 62 | LCRYPTO_USED(EVP_CIPHER_meth_set_impl_ctx_size); | ||
| 63 | LCRYPTO_USED(EVP_CIPHER_meth_set_init); | ||
| 64 | LCRYPTO_USED(EVP_CIPHER_meth_set_do_cipher); | ||
| 65 | LCRYPTO_USED(EVP_CIPHER_meth_set_cleanup); | ||
| 66 | LCRYPTO_USED(EVP_CIPHER_meth_set_set_asn1_params); | ||
| 67 | LCRYPTO_USED(EVP_CIPHER_meth_set_get_asn1_params); | ||
| 68 | LCRYPTO_USED(EVP_CIPHER_meth_set_ctrl); | ||
| 69 | LCRYPTO_USED(EVP_PKEY_new_raw_private_key); | ||
| 70 | LCRYPTO_USED(EVP_PKEY_new_raw_public_key); | ||
| 71 | LCRYPTO_USED(EVP_PKEY_get_raw_private_key); | ||
| 72 | LCRYPTO_USED(EVP_PKEY_get_raw_public_key); | ||
| 73 | LCRYPTO_USED(EVP_Cipher); | ||
| 74 | LCRYPTO_USED(EVP_MD_CTX_new); | ||
| 75 | LCRYPTO_USED(EVP_MD_CTX_free); | ||
| 76 | LCRYPTO_USED(EVP_MD_CTX_reset); | ||
| 77 | LCRYPTO_USED(EVP_MD_CTX_create); | ||
| 78 | LCRYPTO_USED(EVP_MD_CTX_destroy); | ||
| 79 | LCRYPTO_USED(EVP_MD_CTX_cleanup); | ||
| 80 | LCRYPTO_USED(EVP_MD_CTX_copy_ex); | ||
| 81 | LCRYPTO_USED(EVP_MD_CTX_set_flags); | ||
| 82 | LCRYPTO_USED(EVP_MD_CTX_clear_flags); | ||
| 83 | LCRYPTO_USED(EVP_MD_CTX_ctrl); | ||
| 84 | LCRYPTO_USED(EVP_MD_CTX_test_flags); | ||
| 85 | LCRYPTO_USED(EVP_DigestInit_ex); | ||
| 86 | LCRYPTO_USED(EVP_DigestUpdate); | ||
| 87 | LCRYPTO_USED(EVP_DigestFinal_ex); | ||
| 88 | LCRYPTO_USED(EVP_Digest); | ||
| 89 | LCRYPTO_USED(EVP_MD_CTX_copy); | ||
| 90 | LCRYPTO_USED(EVP_DigestInit); | ||
| 91 | LCRYPTO_USED(EVP_DigestFinal); | ||
| 92 | LCRYPTO_USED(EVP_read_pw_string); | ||
| 93 | LCRYPTO_USED(EVP_read_pw_string_min); | ||
| 94 | LCRYPTO_USED(EVP_set_pw_prompt); | ||
| 95 | LCRYPTO_USED(EVP_get_pw_prompt); | ||
| 96 | LCRYPTO_USED(EVP_BytesToKey); | ||
| 97 | LCRYPTO_USED(EVP_CIPHER_CTX_set_flags); | ||
| 98 | LCRYPTO_USED(EVP_CIPHER_CTX_clear_flags); | ||
| 99 | LCRYPTO_USED(EVP_CIPHER_CTX_test_flags); | ||
| 100 | LCRYPTO_USED(EVP_EncryptInit); | ||
| 101 | LCRYPTO_USED(EVP_EncryptInit_ex); | ||
| 102 | LCRYPTO_USED(EVP_EncryptUpdate); | ||
| 103 | LCRYPTO_USED(EVP_EncryptFinal_ex); | ||
| 104 | LCRYPTO_USED(EVP_DecryptInit); | ||
| 105 | LCRYPTO_USED(EVP_DecryptInit_ex); | ||
| 106 | LCRYPTO_USED(EVP_DecryptUpdate); | ||
| 107 | LCRYPTO_USED(EVP_DecryptFinal_ex); | ||
| 108 | LCRYPTO_USED(EVP_CipherInit); | ||
| 109 | LCRYPTO_USED(EVP_CipherInit_ex); | ||
| 110 | LCRYPTO_USED(EVP_CipherUpdate); | ||
| 111 | LCRYPTO_USED(EVP_CipherFinal_ex); | ||
| 112 | LCRYPTO_USED(EVP_SignFinal); | ||
| 113 | LCRYPTO_USED(EVP_VerifyFinal); | ||
| 114 | LCRYPTO_USED(EVP_DigestSignInit); | ||
| 115 | LCRYPTO_USED(EVP_DigestSignFinal); | ||
| 116 | LCRYPTO_USED(EVP_DigestSign); | ||
| 117 | LCRYPTO_USED(EVP_DigestVerifyInit); | ||
| 118 | LCRYPTO_USED(EVP_DigestVerifyFinal); | ||
| 119 | LCRYPTO_USED(EVP_DigestVerify); | ||
| 120 | LCRYPTO_USED(EVP_OpenInit); | ||
| 121 | LCRYPTO_USED(EVP_OpenFinal); | ||
| 122 | LCRYPTO_USED(EVP_SealInit); | ||
| 123 | LCRYPTO_USED(EVP_SealFinal); | ||
| 124 | LCRYPTO_USED(EVP_ENCODE_CTX_new); | ||
| 125 | LCRYPTO_USED(EVP_ENCODE_CTX_free); | ||
| 126 | LCRYPTO_USED(EVP_EncodeInit); | ||
| 127 | LCRYPTO_USED(EVP_EncodeUpdate); | ||
| 128 | LCRYPTO_USED(EVP_EncodeFinal); | ||
| 129 | LCRYPTO_USED(EVP_EncodeBlock); | ||
| 130 | LCRYPTO_USED(EVP_DecodeInit); | ||
| 131 | LCRYPTO_USED(EVP_DecodeUpdate); | ||
| 132 | LCRYPTO_USED(EVP_DecodeFinal); | ||
| 133 | LCRYPTO_USED(EVP_DecodeBlock); | ||
| 134 | LCRYPTO_USED(EVP_CIPHER_CTX_cleanup); | ||
| 135 | LCRYPTO_USED(EVP_CIPHER_CTX_new); | ||
| 136 | LCRYPTO_USED(EVP_CIPHER_CTX_free); | ||
| 137 | LCRYPTO_USED(EVP_CIPHER_CTX_reset); | ||
| 138 | LCRYPTO_USED(EVP_CIPHER_CTX_set_key_length); | ||
| 139 | LCRYPTO_USED(EVP_CIPHER_CTX_set_padding); | ||
| 140 | LCRYPTO_USED(EVP_CIPHER_CTX_ctrl); | ||
| 141 | LCRYPTO_USED(EVP_CIPHER_CTX_rand_key); | ||
| 142 | LCRYPTO_USED(BIO_f_md); | ||
| 143 | LCRYPTO_USED(BIO_f_base64); | ||
| 144 | LCRYPTO_USED(BIO_f_cipher); | ||
| 145 | LCRYPTO_USED(BIO_set_cipher); | ||
| 146 | LCRYPTO_USED(EVP_md_null); | ||
| 147 | LCRYPTO_USED(EVP_md4); | ||
| 148 | LCRYPTO_USED(EVP_md5); | ||
| 149 | LCRYPTO_USED(EVP_md5_sha1); | ||
| 150 | LCRYPTO_USED(EVP_sha1); | ||
| 151 | LCRYPTO_USED(EVP_sha224); | ||
| 152 | LCRYPTO_USED(EVP_sha256); | ||
| 153 | LCRYPTO_USED(EVP_sha384); | ||
| 154 | LCRYPTO_USED(EVP_sha512); | ||
| 155 | LCRYPTO_USED(EVP_sha512_224); | ||
| 156 | LCRYPTO_USED(EVP_sha512_256); | ||
| 157 | LCRYPTO_USED(EVP_sha3_224); | ||
| 158 | LCRYPTO_USED(EVP_sha3_256); | ||
| 159 | LCRYPTO_USED(EVP_sha3_384); | ||
| 160 | LCRYPTO_USED(EVP_sha3_512); | ||
| 161 | LCRYPTO_USED(EVP_sm3); | ||
| 162 | LCRYPTO_USED(EVP_ripemd160); | ||
| 163 | LCRYPTO_USED(EVP_whirlpool); | ||
| 164 | LCRYPTO_USED(EVP_enc_null); | ||
| 165 | LCRYPTO_USED(EVP_des_ecb); | ||
| 166 | LCRYPTO_USED(EVP_des_ede); | ||
| 167 | LCRYPTO_USED(EVP_des_ede3); | ||
| 168 | LCRYPTO_USED(EVP_des_ede_ecb); | ||
| 169 | LCRYPTO_USED(EVP_des_ede3_ecb); | ||
| 170 | LCRYPTO_USED(EVP_des_cfb64); | ||
| 171 | LCRYPTO_USED(EVP_des_cfb1); | ||
| 172 | LCRYPTO_USED(EVP_des_cfb8); | ||
| 173 | LCRYPTO_USED(EVP_des_ede_cfb64); | ||
| 174 | LCRYPTO_USED(EVP_des_ede3_cfb64); | ||
| 175 | LCRYPTO_USED(EVP_des_ede3_cfb1); | ||
| 176 | LCRYPTO_USED(EVP_des_ede3_cfb8); | ||
| 177 | LCRYPTO_USED(EVP_des_ofb); | ||
| 178 | LCRYPTO_USED(EVP_des_ede_ofb); | ||
| 179 | LCRYPTO_USED(EVP_des_ede3_ofb); | ||
| 180 | LCRYPTO_USED(EVP_des_cbc); | ||
| 181 | LCRYPTO_USED(EVP_des_ede_cbc); | ||
| 182 | LCRYPTO_USED(EVP_des_ede3_cbc); | ||
| 183 | LCRYPTO_USED(EVP_desx_cbc); | ||
| 184 | LCRYPTO_USED(EVP_rc4); | ||
| 185 | LCRYPTO_USED(EVP_rc4_40); | ||
| 186 | LCRYPTO_USED(EVP_idea_ecb); | ||
| 187 | LCRYPTO_USED(EVP_idea_cfb64); | ||
| 188 | LCRYPTO_USED(EVP_idea_ofb); | ||
| 189 | LCRYPTO_USED(EVP_idea_cbc); | ||
| 190 | LCRYPTO_USED(EVP_rc2_ecb); | ||
| 191 | LCRYPTO_USED(EVP_rc2_cbc); | ||
| 192 | LCRYPTO_USED(EVP_rc2_40_cbc); | ||
| 193 | LCRYPTO_USED(EVP_rc2_64_cbc); | ||
| 194 | LCRYPTO_USED(EVP_rc2_cfb64); | ||
| 195 | LCRYPTO_USED(EVP_rc2_ofb); | ||
| 196 | LCRYPTO_USED(EVP_bf_ecb); | ||
| 197 | LCRYPTO_USED(EVP_bf_cbc); | ||
| 198 | LCRYPTO_USED(EVP_bf_cfb64); | ||
| 199 | LCRYPTO_USED(EVP_bf_ofb); | ||
| 200 | LCRYPTO_USED(EVP_cast5_ecb); | ||
| 201 | LCRYPTO_USED(EVP_cast5_cbc); | ||
| 202 | LCRYPTO_USED(EVP_cast5_cfb64); | ||
| 203 | LCRYPTO_USED(EVP_cast5_ofb); | ||
| 204 | LCRYPTO_USED(EVP_aes_128_ecb); | ||
| 205 | LCRYPTO_USED(EVP_aes_128_cbc); | ||
| 206 | LCRYPTO_USED(EVP_aes_128_cfb1); | ||
| 207 | LCRYPTO_USED(EVP_aes_128_cfb8); | ||
| 208 | LCRYPTO_USED(EVP_aes_128_cfb128); | ||
| 209 | LCRYPTO_USED(EVP_aes_128_ofb); | ||
| 210 | LCRYPTO_USED(EVP_aes_128_ctr); | ||
| 211 | LCRYPTO_USED(EVP_aes_128_ccm); | ||
| 212 | LCRYPTO_USED(EVP_aes_128_gcm); | ||
| 213 | LCRYPTO_USED(EVP_aes_128_wrap); | ||
| 214 | LCRYPTO_USED(EVP_aes_128_xts); | ||
| 215 | LCRYPTO_USED(EVP_aes_192_ecb); | ||
| 216 | LCRYPTO_USED(EVP_aes_192_cbc); | ||
| 217 | LCRYPTO_USED(EVP_aes_192_cfb1); | ||
| 218 | LCRYPTO_USED(EVP_aes_192_cfb8); | ||
| 219 | LCRYPTO_USED(EVP_aes_192_cfb128); | ||
| 220 | LCRYPTO_USED(EVP_aes_192_ofb); | ||
| 221 | LCRYPTO_USED(EVP_aes_192_ctr); | ||
| 222 | LCRYPTO_USED(EVP_aes_192_ccm); | ||
| 223 | LCRYPTO_USED(EVP_aes_192_gcm); | ||
| 224 | LCRYPTO_USED(EVP_aes_192_wrap); | ||
| 225 | LCRYPTO_USED(EVP_aes_256_ecb); | ||
| 226 | LCRYPTO_USED(EVP_aes_256_cbc); | ||
| 227 | LCRYPTO_USED(EVP_aes_256_cfb1); | ||
| 228 | LCRYPTO_USED(EVP_aes_256_cfb8); | ||
| 229 | LCRYPTO_USED(EVP_aes_256_cfb128); | ||
| 230 | LCRYPTO_USED(EVP_aes_256_ofb); | ||
| 231 | LCRYPTO_USED(EVP_aes_256_ctr); | ||
| 232 | LCRYPTO_USED(EVP_aes_256_ccm); | ||
| 233 | LCRYPTO_USED(EVP_aes_256_gcm); | ||
| 234 | LCRYPTO_USED(EVP_aes_256_wrap); | ||
| 235 | LCRYPTO_USED(EVP_aes_256_xts); | ||
| 236 | LCRYPTO_USED(EVP_chacha20_poly1305); | ||
| 237 | LCRYPTO_USED(EVP_camellia_128_ecb); | ||
| 238 | LCRYPTO_USED(EVP_camellia_128_cbc); | ||
| 239 | LCRYPTO_USED(EVP_camellia_128_cfb1); | ||
| 240 | LCRYPTO_USED(EVP_camellia_128_cfb8); | ||
| 241 | LCRYPTO_USED(EVP_camellia_128_cfb128); | ||
| 242 | LCRYPTO_USED(EVP_camellia_128_ofb); | ||
| 243 | LCRYPTO_USED(EVP_camellia_192_ecb); | ||
| 244 | LCRYPTO_USED(EVP_camellia_192_cbc); | ||
| 245 | LCRYPTO_USED(EVP_camellia_192_cfb1); | ||
| 246 | LCRYPTO_USED(EVP_camellia_192_cfb8); | ||
| 247 | LCRYPTO_USED(EVP_camellia_192_cfb128); | ||
| 248 | LCRYPTO_USED(EVP_camellia_192_ofb); | ||
| 249 | LCRYPTO_USED(EVP_camellia_256_ecb); | ||
| 250 | LCRYPTO_USED(EVP_camellia_256_cbc); | ||
| 251 | LCRYPTO_USED(EVP_camellia_256_cfb1); | ||
| 252 | LCRYPTO_USED(EVP_camellia_256_cfb8); | ||
| 253 | LCRYPTO_USED(EVP_camellia_256_cfb128); | ||
| 254 | LCRYPTO_USED(EVP_camellia_256_ofb); | ||
| 255 | LCRYPTO_USED(EVP_chacha20); | ||
| 256 | LCRYPTO_USED(EVP_sm4_ecb); | ||
| 257 | LCRYPTO_USED(EVP_sm4_cbc); | ||
| 258 | LCRYPTO_USED(EVP_sm4_cfb128); | ||
| 259 | LCRYPTO_USED(EVP_sm4_ofb); | ||
| 260 | LCRYPTO_USED(EVP_sm4_ctr); | ||
| 261 | LCRYPTO_USED(OPENSSL_add_all_algorithms_noconf); | ||
| 262 | LCRYPTO_USED(OPENSSL_add_all_algorithms_conf); | ||
| 263 | LCRYPTO_USED(OpenSSL_add_all_ciphers); | ||
| 264 | LCRYPTO_USED(OpenSSL_add_all_digests); | ||
| 265 | LCRYPTO_USED(EVP_get_cipherbyname); | ||
| 266 | LCRYPTO_USED(EVP_get_digestbyname); | ||
| 267 | LCRYPTO_USED(EVP_cleanup); | ||
| 268 | LCRYPTO_USED(EVP_CIPHER_do_all); | ||
| 269 | LCRYPTO_USED(EVP_CIPHER_do_all_sorted); | ||
| 270 | LCRYPTO_USED(EVP_MD_do_all); | ||
| 271 | LCRYPTO_USED(EVP_MD_do_all_sorted); | ||
| 272 | LCRYPTO_USED(EVP_PKEY_decrypt_old); | ||
| 273 | LCRYPTO_USED(EVP_PKEY_encrypt_old); | ||
| 274 | LCRYPTO_USED(EVP_PKEY_type); | ||
| 275 | LCRYPTO_USED(EVP_PKEY_id); | ||
| 276 | LCRYPTO_USED(EVP_PKEY_base_id); | ||
| 277 | LCRYPTO_USED(EVP_PKEY_bits); | ||
| 278 | LCRYPTO_USED(EVP_PKEY_security_bits); | ||
| 279 | LCRYPTO_USED(EVP_PKEY_size); | ||
| 280 | LCRYPTO_USED(EVP_PKEY_set_type); | ||
| 281 | LCRYPTO_USED(EVP_PKEY_set_type_str); | ||
| 282 | LCRYPTO_USED(EVP_PKEY_assign); | ||
| 283 | LCRYPTO_USED(EVP_PKEY_get0); | ||
| 284 | LCRYPTO_USED(EVP_PKEY_get0_hmac); | ||
| 285 | LCRYPTO_USED(EVP_PKEY_get0_RSA); | ||
| 286 | LCRYPTO_USED(EVP_PKEY_get1_RSA); | ||
| 287 | LCRYPTO_USED(EVP_PKEY_set1_RSA); | ||
| 288 | LCRYPTO_USED(EVP_PKEY_get0_DSA); | ||
| 289 | LCRYPTO_USED(EVP_PKEY_get1_DSA); | ||
| 290 | LCRYPTO_USED(EVP_PKEY_set1_DSA); | ||
| 291 | LCRYPTO_USED(EVP_PKEY_get0_DH); | ||
| 292 | LCRYPTO_USED(EVP_PKEY_get1_DH); | ||
| 293 | LCRYPTO_USED(EVP_PKEY_set1_DH); | ||
| 294 | LCRYPTO_USED(EVP_PKEY_get0_EC_KEY); | ||
| 295 | LCRYPTO_USED(EVP_PKEY_get1_EC_KEY); | ||
| 296 | LCRYPTO_USED(EVP_PKEY_set1_EC_KEY); | ||
| 297 | LCRYPTO_USED(EVP_PKEY_new); | ||
| 298 | LCRYPTO_USED(EVP_PKEY_free); | ||
| 299 | LCRYPTO_USED(EVP_PKEY_up_ref); | ||
| 300 | LCRYPTO_USED(d2i_PublicKey); | ||
| 301 | LCRYPTO_USED(i2d_PublicKey); | ||
| 302 | LCRYPTO_USED(d2i_PrivateKey); | ||
| 303 | LCRYPTO_USED(d2i_AutoPrivateKey); | ||
| 304 | LCRYPTO_USED(i2d_PrivateKey); | ||
| 305 | LCRYPTO_USED(EVP_PKEY_copy_parameters); | ||
| 306 | LCRYPTO_USED(EVP_PKEY_missing_parameters); | ||
| 307 | LCRYPTO_USED(EVP_PKEY_save_parameters); | ||
| 308 | LCRYPTO_USED(EVP_PKEY_cmp_parameters); | ||
| 309 | LCRYPTO_USED(EVP_PKEY_cmp); | ||
| 310 | LCRYPTO_USED(EVP_PKEY_print_public); | ||
| 311 | LCRYPTO_USED(EVP_PKEY_print_private); | ||
| 312 | LCRYPTO_USED(EVP_PKEY_print_params); | ||
| 313 | LCRYPTO_USED(EVP_PKEY_get_default_digest_nid); | ||
| 314 | LCRYPTO_USED(EVP_CIPHER_type); | ||
| 315 | LCRYPTO_USED(PKCS5_PBKDF2_HMAC_SHA1); | ||
| 316 | LCRYPTO_USED(PKCS5_PBKDF2_HMAC); | ||
| 317 | LCRYPTO_USED(EVP_PKEY_asn1_get_count); | ||
| 318 | LCRYPTO_USED(EVP_PKEY_asn1_get0); | ||
| 319 | LCRYPTO_USED(EVP_PKEY_asn1_find); | ||
| 320 | LCRYPTO_USED(EVP_PKEY_asn1_find_str); | ||
| 321 | LCRYPTO_USED(EVP_PKEY_asn1_get0_info); | ||
| 322 | LCRYPTO_USED(EVP_PKEY_get0_asn1); | ||
| 323 | LCRYPTO_USED(EVP_PKEY_CTX_new); | ||
| 324 | LCRYPTO_USED(EVP_PKEY_CTX_new_id); | ||
| 325 | LCRYPTO_USED(EVP_PKEY_CTX_dup); | ||
| 326 | LCRYPTO_USED(EVP_PKEY_CTX_free); | ||
| 327 | LCRYPTO_USED(EVP_PKEY_CTX_ctrl); | ||
| 328 | LCRYPTO_USED(EVP_PKEY_CTX_ctrl_str); | ||
| 329 | LCRYPTO_USED(EVP_PKEY_CTX_get_operation); | ||
| 330 | LCRYPTO_USED(EVP_PKEY_CTX_set0_keygen_info); | ||
| 331 | LCRYPTO_USED(EVP_PKEY_new_mac_key); | ||
| 332 | LCRYPTO_USED(EVP_PKEY_new_CMAC_key); | ||
| 333 | LCRYPTO_USED(EVP_PKEY_CTX_set_data); | ||
| 334 | LCRYPTO_USED(EVP_PKEY_CTX_get_data); | ||
| 335 | LCRYPTO_USED(EVP_PKEY_CTX_get0_pkey); | ||
| 336 | LCRYPTO_USED(EVP_PKEY_CTX_get0_peerkey); | ||
| 337 | LCRYPTO_USED(EVP_PKEY_CTX_set_app_data); | ||
| 338 | LCRYPTO_USED(EVP_PKEY_CTX_get_app_data); | ||
| 339 | LCRYPTO_USED(EVP_PKEY_sign_init); | ||
| 340 | LCRYPTO_USED(EVP_PKEY_sign); | ||
| 341 | LCRYPTO_USED(EVP_PKEY_verify_init); | ||
| 342 | LCRYPTO_USED(EVP_PKEY_verify); | ||
| 343 | LCRYPTO_USED(EVP_PKEY_verify_recover_init); | ||
| 344 | LCRYPTO_USED(EVP_PKEY_verify_recover); | ||
| 345 | LCRYPTO_USED(EVP_PKEY_encrypt_init); | ||
| 346 | LCRYPTO_USED(EVP_PKEY_encrypt); | ||
| 347 | LCRYPTO_USED(EVP_PKEY_decrypt_init); | ||
| 348 | LCRYPTO_USED(EVP_PKEY_decrypt); | ||
| 349 | LCRYPTO_USED(EVP_PKEY_derive_init); | ||
| 350 | LCRYPTO_USED(EVP_PKEY_derive_set_peer); | ||
| 351 | LCRYPTO_USED(EVP_PKEY_derive); | ||
| 352 | LCRYPTO_USED(EVP_PKEY_paramgen_init); | ||
| 353 | LCRYPTO_USED(EVP_PKEY_paramgen); | ||
| 354 | LCRYPTO_USED(EVP_PKEY_keygen_init); | ||
| 355 | LCRYPTO_USED(EVP_PKEY_keygen); | ||
| 356 | LCRYPTO_USED(EVP_PKEY_check); | ||
| 357 | LCRYPTO_USED(EVP_PKEY_public_check); | ||
| 358 | LCRYPTO_USED(EVP_PKEY_param_check); | ||
| 359 | LCRYPTO_USED(EVP_PKEY_CTX_set_cb); | ||
| 360 | LCRYPTO_USED(EVP_PKEY_CTX_get_cb); | ||
| 361 | LCRYPTO_USED(EVP_PKEY_CTX_get_keygen_info); | ||
| 362 | LCRYPTO_USED(EVP_aead_aes_128_gcm); | ||
| 363 | LCRYPTO_USED(EVP_aead_aes_256_gcm); | ||
| 364 | LCRYPTO_USED(EVP_aead_chacha20_poly1305); | ||
| 365 | LCRYPTO_USED(EVP_aead_xchacha20_poly1305); | ||
| 366 | LCRYPTO_USED(EVP_AEAD_key_length); | ||
| 367 | LCRYPTO_USED(EVP_AEAD_nonce_length); | ||
| 368 | LCRYPTO_USED(EVP_AEAD_max_overhead); | ||
| 369 | LCRYPTO_USED(EVP_AEAD_max_tag_len); | ||
| 370 | LCRYPTO_USED(EVP_AEAD_CTX_new); | ||
| 371 | LCRYPTO_USED(EVP_AEAD_CTX_free); | ||
| 372 | LCRYPTO_USED(EVP_AEAD_CTX_init); | ||
| 373 | LCRYPTO_USED(EVP_AEAD_CTX_cleanup); | ||
| 374 | LCRYPTO_USED(EVP_AEAD_CTX_seal); | ||
| 375 | LCRYPTO_USED(EVP_AEAD_CTX_open); | ||
| 376 | LCRYPTO_USED(ERR_load_EVP_strings); | ||
| 377 | |||
| 378 | #endif /* _LIBCRYPTO_EVP_H */ | ||
