C# 클래스 Nethereum.KeyStore.Crypto.KeyStoreCrypto

파일 보기 프로젝트 열기: Nethereum/Nethereum

공개 메소드들

메소드 설명
CalculateKeccakHash ( byte value ) : byte[]
Decrypt ( byte mac, byte iv, byte cipherText, byte derivedKey ) : byte[]
DecryptPbkdf2Sha256 ( string password, byte mac, byte iv, byte cipherText, int c, byte salt, int dklen ) : byte[]
DecryptScrypt ( string password, byte mac, byte iv, byte cipherText, int n, int p, int r, byte salt, int dklen ) : byte[]
GenerateAesCtrCipher ( byte iv, byte encryptKey, byte input ) : byte[]
GenerateCipherKey ( byte derivedKey ) : byte[]
GenerateDerivedScryptKey ( byte password, byte salt, int n, int r, int p, int dkLen ) : byte[]
GenerateMac ( byte derivedKey, byte cipherText ) : byte[]
GeneratePbkdf2Sha256DerivedKey ( byte password, byte salt, int count, int dklen ) : byte[]
GetPasswordAsBytes ( string password ) : byte[]

비공개 메소드들

메소드 설명
ValidateMac ( byte mac, byte cipherText, byte derivedKey ) : void

메소드 상세

CalculateKeccakHash() 공개 메소드

public CalculateKeccakHash ( byte value ) : byte[]
value byte
리턴 byte[]

Decrypt() 공개 메소드

public Decrypt ( byte mac, byte iv, byte cipherText, byte derivedKey ) : byte[]
mac byte
iv byte
cipherText byte
derivedKey byte
리턴 byte[]

DecryptPbkdf2Sha256() 공개 메소드

public DecryptPbkdf2Sha256 ( string password, byte mac, byte iv, byte cipherText, int c, byte salt, int dklen ) : byte[]
password string
mac byte
iv byte
cipherText byte
c int
salt byte
dklen int
리턴 byte[]

DecryptScrypt() 공개 메소드

public DecryptScrypt ( string password, byte mac, byte iv, byte cipherText, int n, int p, int r, byte salt, int dklen ) : byte[]
password string
mac byte
iv byte
cipherText byte
n int
p int
r int
salt byte
dklen int
리턴 byte[]

GenerateAesCtrCipher() 공개 메소드

public GenerateAesCtrCipher ( byte iv, byte encryptKey, byte input ) : byte[]
iv byte
encryptKey byte
input byte
리턴 byte[]

GenerateCipherKey() 공개 메소드

public GenerateCipherKey ( byte derivedKey ) : byte[]
derivedKey byte
리턴 byte[]

GenerateDerivedScryptKey() 공개 메소드

public GenerateDerivedScryptKey ( byte password, byte salt, int n, int r, int p, int dkLen ) : byte[]
password byte
salt byte
n int
r int
p int
dkLen int
리턴 byte[]

GenerateMac() 공개 메소드

public GenerateMac ( byte derivedKey, byte cipherText ) : byte[]
derivedKey byte
cipherText byte
리턴 byte[]

GeneratePbkdf2Sha256DerivedKey() 공개 메소드

public GeneratePbkdf2Sha256DerivedKey ( byte password, byte salt, int count, int dklen ) : byte[]
password byte
salt byte
count int
dklen int
리턴 byte[]

GetPasswordAsBytes() 공개 메소드

public GetPasswordAsBytes ( string password ) : byte[]
password string
리턴 byte[]