OpenSSL.SCIPHER.Process C# (CSharp) Method

Process() public method

public Process ( byte b ) : byte[]
b byte
return byte[]
        public byte[] Process(byte[] b)
        {
            byte[] aout   = new byte[b.Length];
            int    outlen = aout.Length;

            if (_CIPHER.EVP_CipherUpdate(this._handle, aout, ref outlen, b, b.Length) == 0)
                throw new EVPException();

            if (outlen != aout.Length)
                Array.Resize(ref aout, outlen);
            
            return aout;
        }
    }