Photon Fusion
2.1.1
Interface for classes that manage the encryption/decryption of byte arrays. More...
Inherited by DataEncryptor.
Public Member Functions | |
| bool | ComputeHash (byte *buffer, ref int bufferLength, int capacity) |
| Compute the Buffer hash and append it to the buffer itself. | |
| bool | DecryptData (byte *buffer, ref int bufferLength, int capacity) |
| Decrypt data in place and update it's length. | |
| bool | EncryptData (byte *buffer, ref int bufferLength, int capacity) |
| Encrypt data in place and update it's length. | |
| byte[] | GenerateKey () |
| Generate the key used used by the encryption implementation. | |
| void | Setup (byte[] key) |
| Setup the encryption implementation with the right key. | |
| bool | ValidateKey (byte[] key) |
| Check if the given key is valid. | |
| bool | VerifyHash (byte *buffer, ref int bufferLength, int capacity) |
| Verify the buffer hash that was appended to the buffer. | |
Interface for classes that manage the encryption/decryption of byte arrays.
| bool ComputeHash | ( | byte * | buffer, |
| ref int | bufferLength, | ||
| int | capacity ) |
Compute the Buffer hash and append it to the buffer itself.
| buffer | Data to compute the hash |
| bufferLength | Length of the data to hash |
| capacity | Buffer total capacity |
Implemented in DataEncryptor.
| bool DecryptData | ( | byte * | buffer, |
| ref int | bufferLength, | ||
| int | capacity ) |
Decrypt data in place and update it's length.
| buffer | Data to decrypt |
| bufferLength | Length of the data to decrypt |
| capacity | Buffer total capacity |
Implemented in DataEncryptor.
| bool EncryptData | ( | byte * | buffer, |
| ref int | bufferLength, | ||
| int | capacity ) |
Encrypt data in place and update it's length.
| buffer | Data to encrypt |
| bufferLength | Length of the data to encrypt |
| capacity | Buffer total capacity |
Implemented in DataEncryptor.
| byte[] GenerateKey | ( | ) |
Generate the key used used by the encryption implementation.
Implemented in DataEncryptor.
| bool ValidateKey | ( | byte[] | key | ) |
Check if the given key is valid.
Implemented in DataEncryptor.
| bool VerifyHash | ( | byte * | buffer, |
| ref int | bufferLength, | ||
| int | capacity ) |
Verify the buffer hash that was appended to the buffer.
| buffer | Buffer to check the hash |
| bufferLength | Length of the data to hash |
| capacity | Buffer total capacity |
Implemented in DataEncryptor.