C# Class Internal.Cryptography.Helpers

Mostrar archivo Open project: dotnet/corefx

Public Methods

Method Description
CloneByteArray ( this src ) : byte[]
CloneKeySizesArray ( this src ) : KeySizes[]
FixupKeyParity ( this key ) : byte[]
GenerateRandom ( int count ) : byte[]
GetCipherIv ( this cipherMode, byte iv ) : byte[]
IsLegalSize ( this size, KeySizes legalSizes ) : bool
UsesIv ( this cipherMode ) : bool
WriteInt ( uint i, byte arr, int offset ) : void

Private Methods

Method Description
ConvertIntToByteArray ( uint value, byte dest ) : void

Method Details

CloneByteArray() public static method

public static CloneByteArray ( this src ) : byte[]
src this
return byte[]

CloneKeySizesArray() public static method

public static CloneKeySizesArray ( this src ) : KeySizes[]
src this
return KeySizes[]

FixupKeyParity() public static method

public static FixupKeyParity ( this key ) : byte[]
key this
return byte[]

GenerateRandom() public static method

public static GenerateRandom ( int count ) : byte[]
count int
return byte[]

GetCipherIv() public static method

public static GetCipherIv ( this cipherMode, byte iv ) : byte[]
cipherMode this
iv byte
return byte[]

IsLegalSize() public static method

public static IsLegalSize ( this size, KeySizes legalSizes ) : bool
size this
legalSizes KeySizes
return bool

UsesIv() public static method

public static UsesIv ( this cipherMode ) : bool
cipherMode this
return bool

WriteInt() public static method

public static WriteInt ( uint i, byte arr, int offset ) : void
i uint
arr byte
offset int
return void