Skip to content
Snippets Groups Projects
Unverified Commit bb1cf5ef authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #1222 from kubo39/EVP-APIs-encrypt-and-decrypt

Add EVP_EncryptInit_ex/EVP_EncryptFinish_ex, and the equivalently named
parents ad37e7e0 78c1e240
Branches
Tags
No related merge requests found
......@@ -122,6 +122,13 @@ extern "C" {
npubk: c_int,
) -> c_int;
pub fn EVP_SealFinal(ctx: *mut EVP_CIPHER_CTX, out: *mut c_uchar, outl: *mut c_int) -> c_int;
pub fn EVP_EncryptInit_ex(
ctx: *mut EVP_CIPHER_CTX,
cipher: *const EVP_CIPHER,
impl_: *mut ENGINE,
key: *const c_uchar,
iv: *const c_uchar,
) -> c_int;
pub fn EVP_EncryptUpdate(
ctx: *mut EVP_CIPHER_CTX,
out: *mut c_uchar,
......@@ -129,6 +136,11 @@ extern "C" {
in_: *const u8,
inl: c_int,
) -> c_int;
pub fn EVP_EncryptFinal_ex(
ctx: *mut EVP_CIPHER_CTX,
out: *mut c_uchar,
outl: *mut c_int,
) -> c_int;
pub fn EVP_OpenInit(
ctx: *mut EVP_CIPHER_CTX,
type_: *const EVP_CIPHER,
......@@ -138,6 +150,13 @@ extern "C" {
priv_: *mut EVP_PKEY,
) -> c_int;
pub fn EVP_OpenFinal(ctx: *mut EVP_CIPHER_CTX, out: *mut c_uchar, outl: *mut c_int) -> c_int;
pub fn EVP_DecryptInit_ex(
ctx: *mut EVP_CIPHER_CTX,
cipher: *const EVP_CIPHER,
impl_: *mut ENGINE,
key: *const c_uchar,
iv: *const c_uchar,
) -> c_int;
pub fn EVP_DecryptUpdate(
ctx: *mut EVP_CIPHER_CTX,
out: *mut c_uchar,
......@@ -145,6 +164,11 @@ extern "C" {
in_: *const u8,
inl: c_int,
) -> c_int;
pub fn EVP_DecryptFinal_ex(
ctx: *mut EVP_CIPHER_CTX,
outm: *mut c_uchar,
outl: *mut c_int
) -> c_int;
}
cfg_if! {
if #[cfg(any(ossl111b, libressl280))] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment