C# Class System.Security.Cryptography.SymmetricAlgorithm

Inheritance: IDisposable
Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Protected Properties

Property Type Description
BlockSizeValue int
FeedbackSizeValue int
IVValue byte[]
KeySizeValue int
KeyValue byte[]
LegalBlockSizesValue System.Security.Cryptography.KeySizes[]
LegalKeySizesValue System.Security.Cryptography.KeySizes[]
ModeValue CipherMode
PaddingValue PaddingMode

Public Methods

Method Description
Clear ( ) : void
Create ( ) : SymmetricAlgorithm
Create ( string algName ) : SymmetricAlgorithm
CreateDecryptor ( ) : ICryptoTransform
CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
CreateEncryptor ( ) : ICryptoTransform
CreateEncryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
Dispose ( ) : void
GenerateIV ( ) : void
GenerateKey ( ) : void
ValidKeySize ( int bitLength ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void
SymmetricAlgorithm ( )

Method Details

Clear() public method

public Clear ( ) : void
return void

Create() public static method

public static Create ( ) : SymmetricAlgorithm
return SymmetricAlgorithm

Create() public static method

public static Create ( string algName ) : SymmetricAlgorithm
algName string
return SymmetricAlgorithm

CreateDecryptor() public method

public CreateDecryptor ( ) : ICryptoTransform
return ICryptoTransform

CreateDecryptor() public abstract method

public abstract CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
rgbKey byte
rgbIV byte
return ICryptoTransform

CreateEncryptor() public method

public CreateEncryptor ( ) : ICryptoTransform
return ICryptoTransform

CreateEncryptor() public abstract method

public abstract CreateEncryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
rgbKey byte
rgbIV byte
return ICryptoTransform

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GenerateIV() public abstract method

public abstract GenerateIV ( ) : void
return void

GenerateKey() public abstract method

public abstract GenerateKey ( ) : void
return void

SymmetricAlgorithm() protected method

protected SymmetricAlgorithm ( )

ValidKeySize() public method

public ValidKeySize ( int bitLength ) : bool
bitLength int
return bool

Property Details

BlockSizeValue protected_oe property

protected int BlockSizeValue
return int

FeedbackSizeValue protected_oe property

protected int FeedbackSizeValue
return int

IVValue protected_oe property

protected byte[] IVValue
return byte[]

KeySizeValue protected_oe property

protected int KeySizeValue
return int

KeyValue protected_oe property

protected byte[] KeyValue
return byte[]

LegalBlockSizesValue protected_oe property

protected KeySizes[],System.Security.Cryptography LegalBlockSizesValue
return System.Security.Cryptography.KeySizes[]

LegalKeySizesValue protected_oe property

protected KeySizes[],System.Security.Cryptography LegalKeySizesValue
return System.Security.Cryptography.KeySizes[]

ModeValue protected_oe property

protected CipherMode ModeValue
return CipherMode

PaddingValue protected_oe property

protected PaddingMode PaddingValue
return PaddingMode