summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>2020-06-21 01:19:16 +0200
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>2020-06-24 22:01:22 +0200
commit363b1e5daea4a01889e6ff27148018be63d33b9b (patch)
tree9e6f5fe3be912b433fa848c44df11a15d0aa2921
parent23c48d94d4d34eedc15fa65e0fa0e38a6137e09f (diff)
Make the naming scheme for dispatched functions more consistent
The new naming scheme consistently usese the `OSSL_FUNC_` prefix for all functions which are dispatched between the core and providers. This change includes in particular all up- and downcalls, i.e., the dispatched functions passed from core to provider and vice versa. - OSSL_core_ -> OSSL_FUNC_core_ - OSSL_provider_ -> OSSL_FUNC_core_ For operations and their function dispatch tables, the following convention is used: Type | Name (evp_generic_fetch(3)) | ---------------------|-----------------------------------| operation | OSSL_OP_FOO | function id | OSSL_FUNC_FOO_FUNCTION_NAME | function "name" | OSSL_FUNC_foo_function_name | function typedef | OSSL_FUNC_foo_function_name_fn | function ptr getter | OSSL_FUNC_foo_function_name | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12222)
-rw-r--r--crypto/evp/digest.c26
-rw-r--r--crypto/evp/evp_enc.c28
-rw-r--r--crypto/evp/evp_local.h170
-rw-r--r--crypto/evp/evp_rand.c36
-rw-r--r--crypto/evp/exchange.c20
-rw-r--r--crypto/evp/kdf_meth.c22
-rw-r--r--crypto/evp/keymgmt_meth.c42
-rw-r--r--crypto/evp/mac_meth.c24
-rw-r--r--crypto/evp/pmeth_fn.c22
-rw-r--r--crypto/evp/signature.c50
-rw-r--r--crypto/initthread.c2
-rw-r--r--crypto/provider_core.c44
-rw-r--r--crypto/serializer/serializer_local.h12
-rw-r--r--crypto/serializer/serializer_meth.c12
-rw-r--r--doc/internal/man3/evp_generic_fetch.pod59
-rw-r--r--doc/man3/EVP_RAND.pod2
-rw-r--r--doc/man7/provider-asym_cipher.pod106
-rw-r--r--doc/man7/provider-base.pod56
-rw-r--r--doc/man7/provider-cipher.pod136
-rw-r--r--doc/man7/provider-digest.pod118
-rw-r--r--doc/man7/provider-keyexch.pod88
-rw-r--r--doc/man7/provider-keymgmt.pod182
-rw-r--r--doc/man7/provider-mac.pod102
-rw-r--r--doc/man7/provider-rand.pod106
-rw-r--r--doc/man7/provider-serializer.pod72
-rw-r--r--doc/man7/provider-signature.pod228
-rw-r--r--include/crypto/evp.h102
-rw-r--r--include/openssl/core_dispatch.h308
-rw-r--r--providers/common/bio_prov.c24
-rw-r--r--providers/common/include/prov/providercommon.h2
-rw-r--r--providers/defltprov.c18
-rw-r--r--providers/fips/fipsprov.c114
-rw-r--r--providers/fips/self_test.c2
-rw-r--r--providers/fips/self_test.h8
-rw-r--r--providers/implementations/asymciphers/rsa_enc.c22
-rw-r--r--providers/implementations/ciphers/cipher_aes.c4
-rw-r--r--providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c18
-rw-r--r--providers/implementations/ciphers/cipher_aes_ccm.c2
-rw-r--r--providers/implementations/ciphers/cipher_aes_gcm.c2
-rw-r--r--providers/implementations/ciphers/cipher_aes_ocb.c22
-rw-r--r--providers/implementations/ciphers/cipher_aes_siv.c4
-rw-r--r--providers/implementations/ciphers/cipher_aes_wrp.c14
-rw-r--r--providers/implementations/ciphers/cipher_aes_xts.c22
-rw-r--r--providers/implementations/ciphers/cipher_aria.c4
-rw-r--r--providers/implementations/ciphers/cipher_aria_ccm.c2
-rw-r--r--providers/implementations/ciphers/cipher_aria_gcm.c2
-rw-r--r--providers/implementations/ciphers/cipher_blowfish.c4
-rw-r--r--providers/implementations/ciphers/cipher_camellia.c4
-rw-r--r--providers/implementations/ciphers/cipher_cast5.c4
-rw-r--r--providers/implementations/ciphers/cipher_chacha20.c14
-rw-r--r--providers/implementations/ciphers/cipher_chacha20.h4
-rw-r--r--providers/implementations/ciphers/cipher_chacha20_poly1305.c20
-rw-r--r--providers/implementations/ciphers/cipher_des.c14
-rw-r--r--providers/implementations/ciphers/cipher_idea.c4
-rw-r--r--providers/implementations/ciphers/cipher_null.c16
-rw-r--r--providers/implementations/ciphers/cipher_rc2.c12
-rw-r--r--providers/implementations/ciphers/cipher_rc4.c8
-rw-r--r--providers/implementations/ciphers/cipher_rc4_hmac_md5.c14
-rw-r--r--providers/implementations/ciphers/cipher_rc5.c12
-rw-r--r--providers/implementations/ciphers/cipher_seed.c4
-rw-r--r--providers/implementations/ciphers/cipher_sm4.c4
-rw-r--r--providers/implementations/ciphers/cipher_tdes.h16
-rw-r--r--providers/implementations/ciphers/cipher_tdes_wrap.c8
-rw-r--r--providers/implementations/digests/blake2_prov.c4
-rw-r--r--providers/implementations/digests/md5_sha1_prov.c4
-rw-r--r--providers/implementations/digests/mdc2_prov.c4
-rw-r--r--providers/implementations/digests/sha2_prov.c4
-rw-r--r--providers/implementations/digests/sha3_prov.c18
-rw-r--r--providers/implementations/exchange/dh_exch.c16
-rw-r--r--providers/implementations/exchange/ecdh_exch.c20
-rw-r--r--providers/implementations/exchange/ecx_exch.c14
-rw-r--r--providers/implementations/include/prov/ciphercommon.h36
-rw-r--r--providers/implementations/include/prov/ciphercommon_aead.h4
-rw-r--r--providers/implementations/include/prov/ciphercommon_ccm.h14
-rw-r--r--providers/implementations/include/prov/ciphercommon_gcm.h14
-rw-r--r--providers/implementations/include/prov/digestcommon.h10
-rw-r--r--providers/implementations/kdfs/hkdf.c16
-rw-r--r--providers/implementations/kdfs/kbkdf.c12
-rw-r--r--providers/implementations/kdfs/krb5kdf.c16
-rw-r--r--providers/implementations/kdfs/pbkdf2.c12
-rw-r--r--providers/implementations/kdfs/scrypt.c12
-rw-r--r--providers/implementations/kdfs/sshkdf.c16
-rw-r--r--providers/implementations/kdfs/sskdf.c18
-rw-r--r--providers/implementations/kdfs/tls1_prf.c12
-rw-r--r--providers/implementations/kdfs/x942kdf.c16
-rw-r--r--providers/implementations/keymgmt/dh_kmgmt.c38
-rw-r--r--providers/implementations/keymgmt/dsa_kmgmt.c34
-rw-r--r--providers/implementations/keymgmt/ec_kmgmt.c40
-rw-r--r--providers/implementations/keymgmt/ecx_kmgmt.c70
-rw-r--r--providers/implementations/keymgmt/rsa_kmgmt.c40
-rw-r--r--providers/implementations/macs/blake2_mac_impl.c20
-rw-r--r--providers/implementations/macs/cmac_prov.c20
-rw-r--r--providers/implementations/macs/gmac_prov.c20
-rw-r--r--providers/implementations/macs/hmac_prov.c20
-rw-r--r--providers/implementations/macs/kmac_prov.c24
-rw-r--r--providers/implementations/macs/poly1305_prov.c20
-rw-r--r--providers/implementations/macs/siphash_prov.c22
-rw-r--r--providers/implementations/rands/crngt.c2
-rw-r--r--providers/implementations/rands/drbg.c12
-rw-r--r--providers/implementations/rands/drbg_ctr.c22
-rw-r--r--providers/implementations/rands/drbg_hash.c24
-rw-r--r--providers/implementations/rands/drbg_hmac.c22
-rw-r--r--providers/implementations/rands/drbg_local.h20
-rw-r--r--providers/implementations/rands/test_rng.c26
-rw-r--r--providers/implementations/serializers/serializer_common.c12
-rw-r--r--providers/implementations/serializers/serializer_dh.c6
-rw-r--r--providers/implementations/serializers/serializer_dh_param.c34
-rw-r--r--providers/implementations/serializers/serializer_dh_priv.c44
-rw-r--r--providers/implementations/serializers/serializer_dh_pub.c34
-rw-r--r--providers/implementations/serializers/serializer_dsa.c6
-rw-r--r--providers/implementations/serializers/serializer_dsa_param.c34
-rw-r--r--providers/implementations/serializers/serializer_dsa_priv.c44
-rw-r--r--providers/implementations/serializers/serializer_dsa_pub.c34
-rw-r--r--providers/implementations/serializers/serializer_ec.c6
-rw-r--r--providers/implementations/serializers/serializer_ec_param.c34
-rw-r--r--providers/implementations/serializers/serializer_ec_priv.c44
-rw-r--r--providers/implementations/serializers/serializer_ec_pub.c34
-rw-r--r--providers/implementations/serializers/serializer_ecx.c6
-rw-r--r--providers/implementations/serializers/serializer_ecx_priv.c46
-rw-r--r--providers/implementations/serializers/serializer_ecx_pub.c42
-rw-r--r--providers/implementations/serializers/serializer_local.h40
-rw-r--r--providers/implementations/serializers/serializer_rsa.c6
-rw-r--r--providers/implementations/serializers/serializer_rsa_priv.c44
-rw-r--r--providers/implementations/serializers/serializer_rsa_pub.c34
-rw-r--r--providers/implementations/signature/dsa.c42
-rw-r--r--providers/implementations/signature/ecdsa.c42
-rw-r--r--providers/implementations/signature/eddsa.c16
-rw-r--r--providers/implementations/signature/rsa.c46
-rw-r--r--providers/legacyprov.c18
-rw-r--r--