Xtea Class
NuGet: GHIElectronics.TinyCLR.Cryptography
Assembly: GHIElectronics.TinyCLR.Cryptography
Namespace: GHIElectronics.TinyCLR.Cryptography
XTEA (eXtended Tiny Encryption Algorithm) block cipher. 128-bit key, 64-bit blocks.
public class Xtea
Constructors
Xtea(uint[] key)
public Xtea(uint[] key)
Creates an XTEA cipher with the given 128-bit key (four 32-bit words).
Methods
Encrypt(byte[] buffer, uint offset, uint count)
public byte[] Encrypt(byte[] buffer, uint offset, uint count)
Encrypts a range of the buffer and returns the ciphertext.
Returns byte[]
Decrypt(byte[] buffer, uint offset, uint count)
public byte[] Decrypt(byte[] buffer, uint offset, uint count)
Decrypts a range of the buffer and returns the plaintext.
Returns byte[]