keyPair

abstract suspend fun keyPair(crypto: CryptoBackend, type: KeyType): KeyPair(source)

A key pair of type, made with or for crypto. EDHOC destroys the private key once it no longer needs it, whatever kind of handle it is, and also when it cannot use the pair, for example because the public key has the wrong size for type.