Esempio n. 1
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CipherUpdate(EVP_CIPHER_CTX *handle, IntPtr outbuf, ref int outlen, IntPtr inbuf, int inlen);
Esempio n. 2
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CipherFinal_ex(EVP_CIPHER_CTX *handle, IntPtr outbuf, ref int outlen);
Esempio n. 3
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *handle, int type, int arg, IntPtr ptr);
Esempio n. 4
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CipherUpdate(EVP_CIPHER_CTX *handle, byte[] outbuf, ref int outlen, byte[] inbuf, int inlen);
Esempio n. 5
0
 internal static extern unsafe int EVP_EncryptInit_ex(EVP_CIPHER_CTX ctx, IntPtr type, IntPtr impl, void *key, void *iv);
Esempio n. 6
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *handle, int type, int arg, byte[] ptr);
Esempio n. 7
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern void EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *handle); 
Esempio n. 8
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CIPHER_CTX_iv_length(EVP_CIPHER_CTX *handle);
Esempio n. 9
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *handle); 
Esempio n. 10
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *handle); 
Esempio n. 11
0
 private static extern int EVP_CipherFinal_ex(EVP_CIPHER_CTX ctx, IntPtr outm, out int outl);
Esempio n. 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));
        }
Esempio n. 13
0
 private static extern unsafe int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX ctx, EVP_CIPHER_CTRL type, int arg, void *ptr);
Esempio n. 14
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern EVP_CIPHER* EVP_CIPHER_CTX_cipher(EVP_CIPHER_CTX *handle);
Esempio n. 15
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CipherInit_ex(EVP_CIPHER_CTX *handle, EVP_CIPHER *cipher, IntPtr engine, byte[] key, byte[] iv, int enc);
Esempio n. 16
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CIPHER_CTX_block_size(EVP_CIPHER_CTX *handle);
Esempio n. 17
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *handle, int padding);
Esempio n. 18
0
File: OpenSSL.cs Progetto: haf/miTLS
 public static extern int EVP_CIPHER_CTX_set_iv_length(EVP_CIPHER_CTX *handle, int length);
Esempio n. 19
0
 public unsafe void SetKey(Span <byte> key)
 {
     _ctx = EVP_CIPHER_CTX_new();
     key.CopyTo(new Span <byte>(_keyPointer.ToPointer(), _keyLength));
 }