Type Parameters
- Asym extends boolean = any
- I = any
Constructors
constructor
- new KeyPair<Asym extends boolean = any, I = any>(
name: Name,
algo: CryptoAlgorithm<I, Asym, any>,
pvt: If<
Asym,
CryptoAlgorithm.PrivateKey<I>,
CryptoAlgorithm.SecretKey<I>,
CryptoAlgorithm.PrivateKey<I> | CryptoAlgorithm.SecretKey<I>,
>,
pub: If<
Asym,
CryptoAlgorithm.PublicKey<I>,
CryptoAlgorithm.SecretKey<I>,
CryptoAlgorithm.SecretKey<I> | CryptoAlgorithm.PublicKey<I>,
>,
): KeyStore.KeyPair<Asym, I> Type Parameters
- Asym extends boolean = any
- I = any
Parameters
- name: Name
- algo: CryptoAlgorithm<I, Asym, any>
- pvt: If<
Asym,
CryptoAlgorithm.PrivateKey<I>,
CryptoAlgorithm.SecretKey<I>,
CryptoAlgorithm.PrivateKey<I> | CryptoAlgorithm.SecretKey<I>,
> - pub: If<
Asym,
CryptoAlgorithm.PublicKey<I>,
CryptoAlgorithm.SecretKey<I>,
CryptoAlgorithm.SecretKey<I> | CryptoAlgorithm.PublicKey<I>,
>
Properties
Accessors
Loaded key pair.