C_OpenSSL¶
Usage
use Crypto.C_OpenSSL;
Support for low-level native C_OpenSSL bindings. This submodule wraps the C_OpenSSL implementation, providing access to most of the C_OpenSSL calls.
Refer to the C_OpenSSL documentation of the reference version for the usage of this module.
-
type
EVP_PKEY_CTX
¶
-
type
EVP_PKEY
¶
-
var
EVP_PKEY_RSA
: c_int¶
-
type
EVP_PKEY_CTX_PTR
= c_ptr(EVP_PKEY_CTX)¶
-
type
EVP_PKEY_PTR
= c_ptr(EVP_PKEY)¶
-
type
CONST_EVP_MD_PTR
¶
-
type
CONST_EVP_CIPHER_PTR
¶
-
proc
EVP_CIPHER_iv_length
(const e: EVP_CIPHER_PTR): c_int¶
-
proc
EVP_PKEY_size
(pkey: EVP_PKEY_PTR): c_int¶
-
proc
EVP_PKEY_CTX_new_id
(id: c_int, e: ENGINE_PTR): EVP_PKEY_CTX_PTR¶
-
proc
EVP_PKEY_keygen_init
(ctx: EVP_PKEY_CTX_PTR): c_int¶
-
proc
EVP_PKEY_CTX_set_rsa_keygen_bits
(ctx: EVP_PKEY_CTX_PTR, mbits: c_int): c_int¶
-
proc
EVP_PKEY_keygen
(ctx: EVP_PKEY_CTX_PTR, ref ppkey: EVP_PKEY_PTR): c_int¶
-
proc
EVP_PKEY_CTX_free
(ctx: EVP_PKEY_CTX_PTR)¶
-
proc
EVP_SealInit
(ref ctx: EVP_CIPHER_CTX, types: CONST_EVP_CIPHER_PTR, ek: c_ptr(c_ptr(c_uchar)), ekl: c_ptr(c_int), iv: c_ptr(c_uchar), pubk: c_ptr(EVP_PKEY_PTR), npubk: c_int): c_int¶
-
proc
EVP_SealUpdate
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int), inp: c_ptr(c_uchar), inl: c_int): c_int¶
-
proc
EVP_SealFinal
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int)): c_int¶
-
proc
EVP_OpenInit
(ref ctx: EVP_CIPHER_CTX, types: CONST_EVP_CIPHER_PTR, ek: c_ptr(c_uchar), ekl: c_int, iv: c_ptr(c_uchar), priv: EVP_PKEY_PTR): c_int¶
-
proc
EVP_OpenUpdate
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int), inp: c_ptr(c_uchar), inl: c_int): c_int¶
-
proc
EVP_OpenFinal
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int)): c_int¶
-
type
EVP_MD
¶
-
type
EVP_MD_CTX
¶
-
type
ENGINE
¶
-
type
EVP_MD_PTR
= c_ptr(EVP_MD)¶
-
type
EVP_MD_CTX_PTR
= c_ptr(EVP_MD_CTX)¶
-
type
ENGINE_PTR
= c_ptr(ENGINE)¶
-
proc
OpenSSL_add_all_digests
()¶
-
proc
EVP_get_digestbyname
(name: c_string): CONST_EVP_MD_PTR¶
-
proc
EVP_MD_CTX_init
(ref ctx: EVP_MD_CTX): void¶
-
proc
EVP_DigestInit_ex
(ref ctx: EVP_MD_CTX, types: CONST_EVP_MD_PTR, impl: ENGINE_PTR): c_int¶
-
proc
EVP_DigestUpdate
(ref ctx: EVP_MD_CTX, const d: c_void_ptr, cnt: size_t): c_int¶
-
proc
EVP_DigestFinal_ex
(ref ctx: EVP_MD_CTX, md: c_ptr(c_uchar), ref s: c_uint): c_int¶
-
type
EVP_CIPHER
¶
-
type
EVP_CIPHER_CTX
¶
-
type
EVP_CIPHER_PTR
= c_ptr(EVP_CIPHER)¶
-
type
EVP_CIPHER_CTX_PTR
= c_ptr(EVP_CIPHER_CTX)¶
-
proc
RAND_bytes
(buf: c_ptr(c_uchar), num: c_int): c_int¶
-
proc
EVP_sha256
(): CONST_EVP_MD_PTR¶
-
proc
PKCS5_PBKDF2_HMAC
(pass: c_string, passlen: c_int, const salt: c_ptr(c_uchar), saltlen: c_int, iterCount: c_int, digest: CONST_EVP_MD_PTR, keylen: c_int, outx: c_ptr(c_uchar)): c_int¶
-
proc
EVP_CIPHER_CTX_free
(ref c: EVP_CIPHER_CTX)¶
-
proc
EVP_CIPHER_CTX_init
(ref c: EVP_CIPHER_CTX): void¶
-
proc
EVP_EncryptInit_ex
(ref ctx: EVP_CIPHER_CTX, cipher: CONST_EVP_CIPHER_PTR, impl: ENGINE_PTR, const key: c_ptr(c_uchar), const iv: c_ptr(c_uchar)): c_int¶
-
proc
EVP_EncryptUpdate
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int), const ins: c_ptr(c_uchar), inl: c_int): c_int¶
-
proc
EVP_EncryptFinal_ex
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int)): c_int¶
-
proc
EVP_DecryptInit_ex
(ref ctx: EVP_CIPHER_CTX, cipher: CONST_EVP_CIPHER_PTR, impl: ENGINE_PTR, const key: c_ptr(c_uchar), const iv: c_ptr(c_uchar)): c_int¶
-
proc
EVP_DecryptUpdate
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int), const ins: c_ptr(c_uchar), inl: c_int): c_int¶
-
proc
EVP_DecryptFinal_ex
(ref ctx: EVP_CIPHER_CTX, outm: c_ptr(c_uchar), outl: c_ptr(c_int)): c_int¶
-
proc
EVP_aes_128_cbc
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_128_ecb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_128_cfb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_128_ofb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_192_cbc
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_192_ecb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_192_cfb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_192_ofb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_256_cbc
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_256_ecb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_256_cfb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_aes_256_ofb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_bf_cbc
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_bf_ecb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_bf_cfb
(): CONST_EVP_CIPHER_PTR¶
-
proc
EVP_bf_ofb
(): CONST_EVP_CIPHER_PTR¶
-
proc
RAND_seed
(const buf: c_void_ptr, num: c_int)¶