Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptDigest C# (CSharp) Method

DecryptDigest() public method

Digests and decrypts data
public DecryptDigest ( Mechanism digestingMechanism, Mechanism decryptionMechanism, ObjectHandle keyHandle, Stream inputStream, Stream outputStream ) : byte[]
digestingMechanism Mechanism Digesting mechanism
decryptionMechanism Mechanism Decryption mechanism
keyHandle ObjectHandle Handle of the decryption key
inputStream Stream Input stream from which data to be processed should be read
outputStream Stream Output stream where decrypted data should be written
return byte[]
        public byte[] DecryptDigest(Mechanism digestingMechanism, Mechanism decryptionMechanism, ObjectHandle keyHandle, Stream inputStream, Stream outputStream)
        {
            if (this._disposed)
                throw new ObjectDisposedException(this.GetType().FullName);

            if (digestingMechanism == null)
                throw new ArgumentNullException("digestingMechanism");
            
            if (decryptionMechanism == null)
                throw new ArgumentNullException("decryptionMechanism");
            
            if (keyHandle == null)
                throw new ArgumentNullException("keyHandle");
            
            if (inputStream == null)
                throw new ArgumentNullException("inputStream");

            if (outputStream == null)
                throw new ArgumentNullException("outputStream");

            return DecryptDigest(digestingMechanism, decryptionMechanism, keyHandle, inputStream, outputStream, 4096);
        }

Same methods

Session::DecryptDigest ( Mechanism digestingMechanism, Mechanism decryptionMechanism, ObjectHandle keyHandle, Stream inputStream, Stream outputStream, int bufferLength ) : byte[]
Session::DecryptDigest ( Mechanism digestingMechanism, Mechanism decryptionMechanism, ObjectHandle keyHandle, byte data, byte &digest, byte &decryptedData ) : void