summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/evp/cipher_method_lib.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/src/lib/libcrypto/evp/cipher_method_lib.c b/src/lib/libcrypto/evp/cipher_method_lib.c
index d08cb86f39..eaf8ceda8e 100644
--- a/src/lib/libcrypto/evp/cipher_method_lib.c
+++ b/src/lib/libcrypto/evp/cipher_method_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cipher_method_lib.c,v 1.3 2023/03/01 11:04:17 tb Exp $ */ 1/* $OpenBSD: cipher_method_lib.c,v 1.4 2023/03/01 11:06:23 tb Exp $ */
2/* 2/*
3 * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project 3 * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project
4 * 2015. 4 * 2015.
@@ -158,44 +158,3 @@ int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
158 cipher->ctrl = ctrl; 158 cipher->ctrl = ctrl;
159 return 1; 159 return 1;
160} 160}
161
162
163int (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,
164 const unsigned char *key,
165 const unsigned char *iv,
166 int enc)
167{
168 return cipher->init;
169}
170int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,
171 unsigned char *out,
172 const unsigned char *in,
173 size_t inl)
174{
175 return cipher->do_cipher;
176}
177
178int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *)
179{
180 return cipher->cleanup;
181}
182
183int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
184 ASN1_TYPE *)
185{
186 return cipher->set_asn1_parameters;
187}
188
189int (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
190 ASN1_TYPE *)
191{
192 return cipher->get_asn1_parameters;
193}
194
195int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
196 int type, int arg,
197 void *ptr)
198{
199 return cipher->ctrl;
200}
201