Метод | Описание | |
---|---|---|
calculateAgreement ( byte publicKey, byte privateKey ) : byte[] |
Calculates an ECDH agreement.
|
|
calculateSignature ( byte privateKey, byte message ) : byte[] |
Calculates a Curve25519 signature.
|
|
generateKeyPair ( ) : |
Generates a Curve25519 keypair.
|
|
getInstance ( Curve25519ProviderType type ) : |
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 |
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[] |
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[] |
public generateKeyPair ( ) : |
||
Результат |
public static getInstance ( Curve25519ProviderType type ) : |
||
type | Curve25519ProviderType | Type of provider requested. |
Результат |
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 |