C# 클래스 NIST.CVP.ACVTS.Libraries.Crypto.DSA.Ed.EdDsa

상속: IDsaEd
파일 보기 프로젝트 열기: usnistgov/ACVP-Server

공개 메소드들

메소드 설명
AddEntropy ( BigInteger entropy ) : void
EdDsa ( EntropyProviderTypes entropyType = EntropyProviderTypes.Random ) : System
GenerateDomainParameters ( EdDomainParametersGenerateRequest generateRequest ) : EdDomainParametersGenerateResult
GenerateKeyPair ( EdDomainParameters domainParameters ) : EdKeyPairGenerateResult
HashPrivate ( EdDomainParameters domainParameters, BitString d ) : System

Hashs private key and formats both the prefix (used in signing) and A (used in generating the public key)

Sign ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, BitString context, bool preHash = false ) : EdSignatureResult
Sign ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, bool preHash = false ) : EdSignatureResult
ValidateDomainParameters ( EdDomainParametersValidateRequest domainParameters ) : EdDomainParametersValidateResult
ValidateKeyPair ( EdDomainParameters domainParameters, EdKeyPair keyPair ) : EdKeyPairValidateResult
Verify ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, EdSignature signature, BitString context, bool preHash = false ) : EdVerificationResult
Verify ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, EdSignature signature, bool preHash = false ) : EdVerificationResult

비공개 메소드들

메소드 설명
Dom2 ( BigInteger f, BitString c ) : BitString
Dom4 ( BigInteger f, BitString c ) : BitString
GetSecretViaExtraRandomBits ( BigInteger N ) : BigInteger
GetSecretViaTestingCandidates ( BigInteger N ) : BigInteger

메소드 상세

AddEntropy() 공개 메소드

public AddEntropy ( BigInteger entropy ) : void
entropy BigInteger
리턴 void

EdDsa() 공개 메소드

public EdDsa ( EntropyProviderTypes entropyType = EntropyProviderTypes.Random ) : System
entropyType EntropyProviderTypes
리턴 System

GenerateDomainParameters() 공개 메소드

public GenerateDomainParameters ( EdDomainParametersGenerateRequest generateRequest ) : EdDomainParametersGenerateResult
generateRequest EdDomainParametersGenerateRequest
리턴 EdDomainParametersGenerateResult

GenerateKeyPair() 공개 메소드

public GenerateKeyPair ( EdDomainParameters domainParameters ) : EdKeyPairGenerateResult
domainParameters EdDomainParameters
리턴 EdKeyPairGenerateResult

HashPrivate() 공개 메소드

Hashs private key and formats both the prefix (used in signing) and A (used in generating the public key)
public HashPrivate ( EdDomainParameters domainParameters, BitString d ) : System
domainParameters EdDomainParameters
d BitString
리턴 System

Sign() 공개 메소드

public Sign ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, BitString context, bool preHash = false ) : EdSignatureResult
domainParameters EdDomainParameters
keyPair EdKeyPair
message BitString
context BitString
preHash bool
리턴 EdSignatureResult

Sign() 공개 메소드

public Sign ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, bool preHash = false ) : EdSignatureResult
domainParameters EdDomainParameters
keyPair EdKeyPair
message BitString
preHash bool
리턴 EdSignatureResult

ValidateDomainParameters() 공개 메소드

public ValidateDomainParameters ( EdDomainParametersValidateRequest domainParameters ) : EdDomainParametersValidateResult
domainParameters EdDomainParametersValidateRequest
리턴 EdDomainParametersValidateResult

ValidateKeyPair() 공개 메소드

public ValidateKeyPair ( EdDomainParameters domainParameters, EdKeyPair keyPair ) : EdKeyPairValidateResult
domainParameters EdDomainParameters
keyPair EdKeyPair
리턴 EdKeyPairValidateResult

Verify() 공개 메소드

public Verify ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, EdSignature signature, BitString context, bool preHash = false ) : EdVerificationResult
domainParameters EdDomainParameters
keyPair EdKeyPair
message BitString
signature EdSignature
context BitString
preHash bool
리턴 EdVerificationResult

Verify() 공개 메소드

public Verify ( EdDomainParameters domainParameters, EdKeyPair keyPair, BitString message, EdSignature signature, bool preHash = false ) : EdVerificationResult
domainParameters EdDomainParameters
keyPair EdKeyPair
message BitString
signature EdSignature
preHash bool
리턴 EdVerificationResult