C# Класс libaxolotl.ecc.Curve25519

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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