Class Xtea
Static class that provides helper methods for Xtea encryption and decryption.
Inheritance
System.Object
Xtea
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Security.Encryption
Assembly: Fibula.Security.dll
Syntax
public static class Xtea
Methods
| Improve this Doc View SourceDecrypt(Span<Byte>, UInt32[], out Int32)
Decrypts a byte range.
Declaration
public static bool Decrypt(Span<byte> buffer, uint[] key, out int messageLength)
Parameters
Type | Name | Description |
---|---|---|
System.Span<System.Byte> | buffer | The bytes to decrypt. |
System.UInt32[] | key | The decryption key bytes. |
System.Int32 | messageLength | The resulting length of the buffer. |
Returns
Type | Description |
---|---|
System.Boolean | True if decryption was successful, false otherwise. |
Encrypt(Span<Byte>, UInt32[], out Int32)
Encrypts a byte range.
Declaration
public static bool Encrypt(Span<byte> buffer, uint[] key, out int messageLength)
Parameters
Type | Name | Description |
---|---|---|
System.Span<System.Byte> | buffer | The bytes to encrypt. |
System.UInt32[] | key | The encryption key bytes. |
System.Int32 | messageLength | The resulting length of the buffer. |
Returns
Type | Description |
---|---|
System.Boolean | True if encryption was successful, false otherwise. |