Discuss this help topic in SecureBlackbox Forum
Encrypts the data.
Declaration
Parameters
- AlgID - specifies the encryption algorithm.
- Buffer - buffer with data to be encrypted.
- Size - the size of the data block (in Buffer) to be encrypted.
- Offset - the offset of the data to be encrypted in Buffer.
- Count - the number of bytes to be read from Buffer.
- IV - specifies the Initial Vector.
- InBuffer - buffer with data to be encrypted.
- InIndex - the offset of the data to be encrypted in InBuffer.
- InSize - the size of the data block (in InBuffer) to be encrypted.
- InStream - stream with data to be encrypted.
- InCount - number of bytes to be read from InStream.
- Key - the secret key.
- Mode - specifies the encryption mode.
- OutBuffer - buffer where the encrypted data should be stored.
- OutIndex - the fffset in the OutBuffer, starting from which the data is written.
- OutSize - the amount of free space in OutBuffer, in bytes.
- OutStream - stream where the decrypted data will be written.
Algorithm identifier values:
Mode values:
Return value
Returns the encrypted data.
Description
Use this method to encrypt the data when all data to be encrypted is at hand.
This method is a shorthand for InitializeEncryption / EncryptUdpdate / FinalizeEncryption sequence of calls.
Remember to set Padding mode when using block mode of block ciphers.
Discuss this help topic in SecureBlackbox Forum