C# Class SyrupPayJose.Jwa.Alg.Arrays

Mostra file Open project: SKplanet/syruppay-csharp

Public Methods

Method Description
BytesToLong ( byte array ) : long
Concat ( ) : byte[]
ConstantTimeEquals ( byte expected, byte actual ) : bool
FirstHalf ( byte arr ) : byte[]
LongToBytes ( long value ) : byte[]
SecondHalf ( byte arr ) : byte[]
Slice ( byte array, int count ) : byte[][]
Xor ( byte left, long right ) : byte[]

Method Details

BytesToLong() public static method

public static BytesToLong ( byte array ) : long
array byte
return long

Concat() public static method

public static Concat ( ) : byte[]
return byte[]

ConstantTimeEquals() public static method

public static ConstantTimeEquals ( byte expected, byte actual ) : bool
expected byte
actual byte
return bool

FirstHalf() public static method

public static FirstHalf ( byte arr ) : byte[]
arr byte
return byte[]

LongToBytes() public static method

public static LongToBytes ( long value ) : byte[]
value long
return byte[]

SecondHalf() public static method

public static SecondHalf ( byte arr ) : byte[]
arr byte
return byte[]

Slice() public static method

public static Slice ( byte array, int count ) : byte[][]
array byte
count int
return byte[][]

Xor() public static method

public static Xor ( byte left, long right ) : byte[]
left byte
right long
return byte[]