PrivateKey
A private key, as a handle owned by a CryptoBackend. Protocol code never sees key material: it passes the handle back to the backend that created it. A backend for a secure element, Android KeyStore or the Secure Enclave subclasses this with a reference to the stored key.
toString() never reveals key material.
Inheritors
Functions
Link copied to clipboard
Releases the key once nothing needs it any more. Protocol code calls this for the keys it owns, such as EDHOC's ephemeral keys (RFC 9528 §9.8), whatever backend made them. The default does nothing; a subclass overwrites its key material, or frees a session or handle on a device. Calling it again does nothing, and a destroyed key must not be used.