diff options
Diffstat (limited to 'src/lib/libcrypto/evp/p_legacy.c')
-rw-r--r-- | src/lib/libcrypto/evp/p_legacy.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); | ||