C# Class NIST.CVP.ACVTS.Libraries.Crypto.DSA.Ed.EdDsa

Inheritance: IDsaEd
Show file Open project: usnistgov/ACVP-Server

Public Methods

Method Description
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

Private Methods

Method Description
Dom2 ( BigInteger f, BitString c ) : BitString
Dom4 ( BigInteger f, BitString c ) : BitString
GetSecretViaExtraRandomBits ( BigInteger N ) : BigInteger
GetSecretViaTestingCandidates ( BigInteger N ) : BigInteger

Method Details

AddEntropy() public method

public AddEntropy ( BigInteger entropy ) : void
entropy BigInteger
return void

EdDsa() public method

public EdDsa ( EntropyProviderTypes entropyType = EntropyProviderTypes.Random ) : System
entropyType EntropyProviderTypes
return System

GenerateDomainParameters() public method

public GenerateDomainParameters ( EdDomainParametersGenerateRequest generateRequest ) : EdDomainParametersGenerateResult
generateRequest EdDomainParametersGenerateRequest
return EdDomainParametersGenerateResult

GenerateKeyPair() public method

public GenerateKeyPair ( EdDomainParameters domainParameters ) : EdKeyPairGenerateResult
domainParameters EdDomainParameters
return EdKeyPairGenerateResult

HashPrivate() public method

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
return System

Sign() public method

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

Sign() public method

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

ValidateDomainParameters() public method

public ValidateDomainParameters ( EdDomainParametersValidateRequest domainParameters ) : EdDomainParametersValidateResult
domainParameters EdDomainParametersValidateRequest
return EdDomainParametersValidateResult

ValidateKeyPair() public method

public ValidateKeyPair ( EdDomainParameters domainParameters, EdKeyPair keyPair ) : EdKeyPairValidateResult
domainParameters EdDomainParameters
keyPair EdKeyPair
return EdKeyPairValidateResult

Verify() public method

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
return EdVerificationResult

Verify() public method

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