C# 클래스 libaxolotl.ecc.Curve25519

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

공개 메소드들

메소드 설명
calculateAgreement ( byte publicKey, byte privateKey ) : byte[]

Calculates an ECDH agreement.

calculateSignature ( byte privateKey, byte message ) : byte[]

Calculates a Curve25519 signature.

generateKeyPair ( ) : Curve25519KeyPair

Generates a Curve25519 keypair.

getInstance ( Curve25519ProviderType type ) : Curve25519

Accesses the currently in use Curve25519 provider, according to the type requested.

isNative ( ) : bool

Curve25519 is backed by a WinRT implementation of curve25519. Returns true for native.

verifySignature ( byte publicKey, byte message, byte signature ) : bool

Verify a Curve25519 signature.

비공개 메소드들

메소드 설명
Curve25519 ( ) : System.Security.Cryptography

메소드 상세

calculateAgreement() 공개 메소드

Calculates an ECDH agreement.
public calculateAgreement ( byte publicKey, byte privateKey ) : byte[]
publicKey byte The Curve25519 (typically remote party's) public key.
privateKey byte The Curve25519 (typically yours) private key.
리턴 byte[]

calculateSignature() 공개 메소드

Calculates a Curve25519 signature.
public calculateSignature ( byte privateKey, byte message ) : byte[]
privateKey byte The private Curve25519 key to create the signature with.
message byte The message to sign.
리턴 byte[]

generateKeyPair() 공개 메소드

Generates a Curve25519 keypair.
public generateKeyPair ( ) : Curve25519KeyPair
리턴 Curve25519KeyPair

getInstance() 공개 정적인 메소드

Accesses the currently in use Curve25519 provider, according to the type requested.
public static getInstance ( Curve25519ProviderType type ) : Curve25519
type Curve25519ProviderType Type of provider requested.
리턴 Curve25519

isNative() 공개 메소드

Curve25519 is backed by a WinRT implementation of curve25519. Returns true for native.
public isNative ( ) : bool
리턴 bool

verifySignature() 공개 메소드

Verify a Curve25519 signature.
public verifySignature ( byte publicKey, byte message, byte signature ) : bool
publicKey byte The Curve25519 public key the signature belongs to.
message byte The message that was signed.
signature byte The signature to verify.
리턴 bool