Ixian SDK
DLT.CryptoLib Class Reference

Public Member Functions

 CryptoLib (ICryptoLib crypto_lib)
 
IxianKeyPair generateKeys (int keySize, bool skip_header=false)
 
byte [] getSignature (byte[] input, byte[] privateKey)
 
bool verifySignature (byte[] input, byte[] publicKey, byte[] signature)
 
byte [] encryptWithRSA (byte[] input, byte[] publicKey)
 
byte [] decryptWithRSA (byte[] input, byte[] privateKey)
 
byte [] encryptDataAES (byte[] input, byte[] key)
 
byte [] decryptDataAES (byte[] input, byte[] key, int offset=0)
 
byte [] encryptWithPassword (byte[] data, string password)
 
byte [] decryptWithPassword (byte[] data, string password)
 
byte [] encryptWithChacha (byte[] input, byte[] key)
 
byte [] decryptWithChacha (byte[] input, byte[] key)
 
byte [] generateChildKey (byte[] parentKey, int seed=0)
 
bool testKeys (byte[] plaintext, IxianKeyPair kp)
 

Detailed Description

Definition at line 177 of file CryptoLib.cs.

Constructor & Destructor Documentation

◆ CryptoLib()

DLT.CryptoLib.CryptoLib ( ICryptoLib  crypto_lib)

Definition at line 181 of file CryptoLib.cs.

Member Function Documentation

◆ decryptDataAES()

byte [] DLT.CryptoLib.decryptDataAES ( byte []  input,
byte []  key,
int  offset = 0 
)

Definition at line 217 of file CryptoLib.cs.

◆ decryptWithChacha()

byte [] DLT.CryptoLib.decryptWithChacha ( byte []  input,
byte []  key 
)

Definition at line 237 of file CryptoLib.cs.

◆ decryptWithPassword()

byte [] DLT.CryptoLib.decryptWithPassword ( byte []  data,
string  password 
)

Definition at line 227 of file CryptoLib.cs.

◆ decryptWithRSA()

byte [] DLT.CryptoLib.decryptWithRSA ( byte []  input,
byte []  privateKey 
)

Definition at line 207 of file CryptoLib.cs.

◆ encryptDataAES()

byte [] DLT.CryptoLib.encryptDataAES ( byte []  input,
byte []  key 
)

Definition at line 212 of file CryptoLib.cs.

◆ encryptWithChacha()

byte [] DLT.CryptoLib.encryptWithChacha ( byte []  input,
byte []  key 
)

Definition at line 232 of file CryptoLib.cs.

◆ encryptWithPassword()

byte [] DLT.CryptoLib.encryptWithPassword ( byte []  data,
string  password 
)

Definition at line 222 of file CryptoLib.cs.

◆ encryptWithRSA()

byte [] DLT.CryptoLib.encryptWithRSA ( byte []  input,
byte []  publicKey 
)

Definition at line 202 of file CryptoLib.cs.

◆ generateChildKey()

byte [] DLT.CryptoLib.generateChildKey ( byte []  parentKey,
int  seed = 0 
)

Definition at line 242 of file CryptoLib.cs.

◆ generateKeys()

IxianKeyPair DLT.CryptoLib.generateKeys ( int  keySize,
bool  skip_header = false 
)

Definition at line 186 of file CryptoLib.cs.

◆ getSignature()

byte [] DLT.CryptoLib.getSignature ( byte []  input,
byte []  privateKey 
)

Definition at line 192 of file CryptoLib.cs.

◆ testKeys()

bool DLT.CryptoLib.testKeys ( byte []  plaintext,
IxianKeyPair  kp 
)

Definition at line 247 of file CryptoLib.cs.

◆ verifySignature()

bool DLT.CryptoLib.verifySignature ( byte []  input,
byte []  publicKey,
byte []  signature 
)

Definition at line 197 of file CryptoLib.cs.


The documentation for this class was generated from the following file: