Class CryptoKeyPair
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm.
[ToObject]
public class CryptoKeyPair
- Inheritance
-
CryptoKeyPair
- Inherited Members
Remarks
A CryptoKeyPair object can be obtained using GenerateKey(Union187, bool, List<KeyUsage>), when the selected algorithm is one of the asymmetric algorithms: RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, ECDSA, or ECDH.
It contains two properties, which are both CryptoKey objects: a privateKey property containing the private key and a publicKey property containing the public key.
-GenerateKey(Union187, bool, List<KeyUsage>).
-Sign(Union187, CryptoKey, Union224) and Verify(Union187, CryptoKey, Union224, Union224).
-Encrypt(Union187, CryptoKey, Union224) and Decrypt(Union187, CryptoKey, Union224).
Constructors
CryptoKeyPair()
public CryptoKeyPair()
Fields
PrivateKey
[Value("privateKey")]
public CryptoKey PrivateKey
Field Value
PublicKey
[Value("publicKey")]
public CryptoKey PublicKey