diff options
author | tb <> | 2023-07-05 08:39:40 +0000 |
---|---|---|
committer | tb <> | 2023-07-05 08:39:40 +0000 |
commit | 788b0a1692618872b1e6c2f13445dbf7721f7c02 (patch) | |
tree | 3d68ee8afc0bc37ca16d301401e781acf405b6a6 /src/lib/libcrypto/ec | |
parent | 9d190ec0e534650cdc84b1cd4b55351f19456cbe (diff) | |
download | openbsd-788b0a1692618872b1e6c2f13445dbf7721f7c02.tar.gz openbsd-788b0a1692618872b1e6c2f13445dbf7721f7c02.tar.bz2 openbsd-788b0a1692618872b1e6c2f13445dbf7721f7c02.zip |
Drop useless ossl_ prefixes
discussed with jsing
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r-- | src/lib/libcrypto/ec/ec_key.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_kmeth.c | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libcrypto/ec/ec_key.c b/src/lib/libcrypto/ec/ec_key.c index 1006d2d89d..a15d06b019 100644 --- a/src/lib/libcrypto/ec/ec_key.c +++ b/src/lib/libcrypto/ec/ec_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_key.c,v 1.34 2023/07/03 09:35:26 tb Exp $ */ | 1 | /* $OpenBSD: ec_key.c,v 1.35 2023/07/05 08:39:40 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -241,7 +241,7 @@ EC_KEY_generate_key(EC_KEY *eckey) | |||
241 | } | 241 | } |
242 | 242 | ||
243 | int | 243 | int |
244 | ossl_ec_key_gen(EC_KEY *eckey) | 244 | ec_key_gen(EC_KEY *eckey) |
245 | { | 245 | { |
246 | BIGNUM *priv_key = NULL; | 246 | BIGNUM *priv_key = NULL; |
247 | EC_POINT *pub_key = NULL; | 247 | EC_POINT *pub_key = NULL; |
diff --git a/src/lib/libcrypto/ec/ec_kmeth.c b/src/lib/libcrypto/ec/ec_kmeth.c index 4e296cfa68..65bf1f99c2 100644 --- a/src/lib/libcrypto/ec/ec_kmeth.c +++ b/src/lib/libcrypto/ec/ec_kmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_kmeth.c,v 1.8 2023/06/25 18:52:27 tb Exp $ */ | 1 | /* $OpenBSD: ec_kmeth.c,v 1.9 2023/07/05 08:39:40 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -74,15 +74,15 @@ static const EC_KEY_METHOD openssl_ec_key_method = { | |||
74 | .set_private = NULL, | 74 | .set_private = NULL, |
75 | .set_public = NULL, | 75 | .set_public = NULL, |
76 | 76 | ||
77 | .keygen = ossl_ec_key_gen, | 77 | .keygen = ec_key_gen, |
78 | .compute_key = ossl_ecdh_compute_key, | 78 | .compute_key = ecdh_compute_key, |
79 | 79 | ||
80 | .sign = ossl_ecdsa_sign, | 80 | .sign = ecdsa_sign, |
81 | .sign_setup = ossl_ecdsa_sign_setup, | 81 | .sign_setup = ecdsa_sign_setup, |
82 | .sign_sig = ossl_ecdsa_sign_sig, | 82 | .sign_sig = ecdsa_sign_sig, |
83 | 83 | ||
84 | .verify = ossl_ecdsa_verify, | 84 | .verify = ecdsa_verify, |
85 | .verify_sig = ossl_ecdsa_verify_sig, | 85 | .verify_sig = ecdsa_verify_sig, |
86 | }; | 86 | }; |
87 | 87 | ||
88 | const EC_KEY_METHOD *default_ec_key_meth = &openssl_ec_key_method; | 88 | const EC_KEY_METHOD *default_ec_key_meth = &openssl_ec_key_method; |
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 0d219e8e21..7a1f90886d 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_local.h,v 1.23 2023/07/03 07:26:40 tb Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.24 2023/07/05 08:39:40 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -341,12 +341,12 @@ struct ec_key_method_st { | |||
341 | 341 | ||
342 | #define EC_KEY_METHOD_DYNAMIC 1 | 342 | #define EC_KEY_METHOD_DYNAMIC 1 |
343 | 343 | ||
344 | int ossl_ec_key_gen(EC_KEY *eckey); | 344 | int ec_key_gen(EC_KEY *eckey); |
345 | int ossl_ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, | 345 | int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, |
346 | void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)); | 346 | void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)); |
347 | int ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, | 347 | int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, |
348 | const unsigned char *sigbuf, int sig_len, EC_KEY *eckey); | 348 | const unsigned char *sigbuf, int sig_len, EC_KEY *eckey); |
349 | int ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, | 349 | int ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, |
350 | const ECDSA_SIG *sig, EC_KEY *eckey); | 350 | const ECDSA_SIG *sig, EC_KEY *eckey); |
351 | 351 | ||
352 | /* | 352 | /* |