C# 클래스 Internal.Cryptography.CngSymmetricAlgorithmCore

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateCryptoTransform ICryptoTransform
CreateCryptoTransform ICryptoTransform
CreateEphemeralCryptoTransformCore ICryptoTransform
CreatePersistedCryptoTransformCore ICryptoTransform
ProduceCngKey System.Security.Cryptography.CngKey

공개 메소드들

메소드 설명
CngSymmetricAlgorithmCore ( ICngSymmetricAlgorithm outer ) : System

Configures the core to use plaintext keys (to be auto-generated when first needed.)

CngSymmetricAlgorithmCore ( ICngSymmetricAlgorithm outer, string keyName, CngProvider provider, CngKeyOpenOptions openOptions ) : System

Constructs the core to use a stored CNG key.

CreateDecryptor ( ) : ICryptoTransform
CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
CreateEncryptor ( ) : ICryptoTransform
CreateEncryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
GenerateIV ( ) : void
GenerateKey ( ) : void
GetKeyIfExportable ( ) : byte[]

Note! This can and likely will throw if the algorithm was given a hardware-based key.

SetKey ( byte key ) : void
SetKeySize ( int keySize, ICngSymmetricAlgorithm outer ) : void

비공개 메소드들

메소드 설명
CreateCryptoTransform ( bool encrypting ) : ICryptoTransform
CreateCryptoTransform ( byte rgbKey, byte rgbIV, bool encrypting ) : ICryptoTransform
CreateEphemeralCryptoTransformCore ( byte key, byte iv, bool encrypting ) : ICryptoTransform
CreatePersistedCryptoTransformCore ( Func cngKeyFactory, byte iv, bool encrypting ) : ICryptoTransform
ProduceCngKey ( ) : System.Security.Cryptography.CngKey

메소드 상세

CngSymmetricAlgorithmCore() 공개 메소드

Configures the core to use plaintext keys (to be auto-generated when first needed.)
public CngSymmetricAlgorithmCore ( ICngSymmetricAlgorithm outer ) : System
outer ICngSymmetricAlgorithm
리턴 System

CngSymmetricAlgorithmCore() 공개 메소드

Constructs the core to use a stored CNG key.
public CngSymmetricAlgorithmCore ( ICngSymmetricAlgorithm outer, string keyName, CngProvider provider, CngKeyOpenOptions openOptions ) : System
outer ICngSymmetricAlgorithm
keyName string
provider CngProvider
openOptions CngKeyOpenOptions
리턴 System

CreateDecryptor() 공개 메소드

public CreateDecryptor ( ) : ICryptoTransform
리턴 ICryptoTransform

CreateDecryptor() 공개 메소드

public CreateDecryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
rgbKey byte
rgbIV byte
리턴 ICryptoTransform

CreateEncryptor() 공개 메소드

public CreateEncryptor ( ) : ICryptoTransform
리턴 ICryptoTransform

CreateEncryptor() 공개 메소드

public CreateEncryptor ( byte rgbKey, byte rgbIV ) : ICryptoTransform
rgbKey byte
rgbIV byte
리턴 ICryptoTransform

GenerateIV() 공개 메소드

public GenerateIV ( ) : void
리턴 void

GenerateKey() 공개 메소드

public GenerateKey ( ) : void
리턴 void

GetKeyIfExportable() 공개 메소드

Note! This can and likely will throw if the algorithm was given a hardware-based key.
public GetKeyIfExportable ( ) : byte[]
리턴 byte[]

SetKey() 공개 메소드

public SetKey ( byte key ) : void
key byte
리턴 void

SetKeySize() 공개 메소드

public SetKeySize ( int keySize, ICngSymmetricAlgorithm outer ) : void
keySize int
outer ICngSymmetricAlgorithm
리턴 void