BaseCipherSuitePlugin.BulkCipherAlgorithm3DES.CreateEncryptor C# (CSharp) Method

CreateEncryptor() public method

public CreateEncryptor ( byte rgbKey, byte rgbIV, byte additional ) : ICryptoTransform
rgbKey byte
rgbIV byte
additional byte
return ICryptoTransform
        public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV, byte[] additional)
        {
            if (rgbKey == null)
                throw new ArgumentNullException("rgbKey");

            return _csp.CreateEncryptor(rgbKey, rgbIV);
        }

Usage Example

 public void EncryptionKeyNull()
 {
     cipher.CreateEncryptor(null, null);
 }