示例#1
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CipherUpdate(EVP_CIPHER_CTX *handle, IntPtr outbuf, ref int outlen, IntPtr inbuf, int inlen);
示例#2
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CipherFinal_ex(EVP_CIPHER_CTX *handle, IntPtr outbuf, ref int outlen);
示例#3
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *handle, int type, int arg, IntPtr ptr);
示例#4
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CipherUpdate(EVP_CIPHER_CTX *handle, byte[] outbuf, ref int outlen, byte[] inbuf, int inlen);
示例#5
0
 internal static extern unsafe int EVP_EncryptInit_ex(EVP_CIPHER_CTX ctx, IntPtr type, IntPtr impl, void *key, void *iv);
示例#6
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *handle, int type, int arg, byte[] ptr);
示例#7
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern void EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *handle); 
示例#8
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CIPHER_CTX_iv_length(EVP_CIPHER_CTX *handle);
示例#9
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *handle); 
示例#10
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *handle); 
示例#11
0
 private static extern int EVP_CipherFinal_ex(EVP_CIPHER_CTX ctx, IntPtr outm, out int outl);
示例#12
0
        public static int EVP_CipherFinal_ex(EVP_CIPHER_CTX ctx)
        {
            var result = EVP_CipherFinal_ex(ctx, IntPtr.Zero, out var size);

            return(ThrowOnErrorReturnCode(result));
        }
示例#13
0
 private static extern unsafe int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX ctx, EVP_CIPHER_CTRL type, int arg, void *ptr);
示例#14
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern EVP_CIPHER* EVP_CIPHER_CTX_cipher(EVP_CIPHER_CTX *handle);
示例#15
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CipherInit_ex(EVP_CIPHER_CTX *handle, EVP_CIPHER *cipher, IntPtr engine, byte[] key, byte[] iv, int enc);
示例#16
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CIPHER_CTX_block_size(EVP_CIPHER_CTX *handle);
示例#17
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *handle, int padding);
示例#18
0
文件: OpenSSL.cs 项目: haf/miTLS
 public static extern int EVP_CIPHER_CTX_set_iv_length(EVP_CIPHER_CTX *handle, int length);
示例#19
0
 public unsafe void SetKey(Span <byte> key)
 {
     _ctx = EVP_CIPHER_CTX_new();
     key.CopyTo(new Span <byte>(_keyPointer.ToPointer(), _keyLength));
 }