C# Class BraintreeEncryption.Library.BouncyCastle.Util.Arrays

General array utilities.
Show file Open project: braintree/braintree_windows_phone_encryption

Public Methods

Method Description
AreEqual ( bool a, bool b ) : bool
AreEqual ( byte a, byte b ) : bool

Are two arrays equal.

AreEqual ( char a, char b ) : bool
AreEqual ( int a, int b ) : bool
Clone ( byte data ) : byte[]
Clone ( int data ) : int[]
ConstantTimeAreEqual ( byte a, byte b ) : bool

A constant time equals comparison - does not terminate early if test will fail.

GetHashCode ( byte data ) : int
ToString ( object a ) : string

Private Methods

Method Description
AreSame ( byte a, byte b ) : bool
Arrays ( ) : System
HaveSameContents ( bool a, bool b ) : bool
HaveSameContents ( byte a, byte b ) : bool
HaveSameContents ( char a, char b ) : bool
HaveSameContents ( int a, int b ) : bool

Method Details

AreEqual() public static method

public static AreEqual ( bool a, bool b ) : bool
a bool
b bool
return bool

AreEqual() public static method

Are two arrays equal.
public static AreEqual ( byte a, byte b ) : bool
a byte Left side.
b byte Right side.
return bool

AreEqual() public static method

public static AreEqual ( char a, char b ) : bool
a char
b char
return bool

AreEqual() public static method

public static AreEqual ( int a, int b ) : bool
a int
b int
return bool

Clone() public static method

public static Clone ( byte data ) : byte[]
data byte
return byte[]

Clone() public static method

public static Clone ( int data ) : int[]
data int
return int[]

ConstantTimeAreEqual() public static method

A constant time equals comparison - does not terminate early if test will fail.
public static ConstantTimeAreEqual ( byte a, byte b ) : bool
a byte first array
b byte second array
return bool

GetHashCode() public static method

public static GetHashCode ( byte data ) : int
data byte
return int

ToString() public static method

public static ToString ( object a ) : string
a object
return string