supports

open suspend fun supports(algorithm: AeadAlgorithm): Boolean(source)

Whether aead runs algorithm. The default asks by building it under an all-zero key and encrypting an empty message.


open suspend fun supports(type: KeyType): Boolean(source)

Whether this backend generates and uses key pairs of type: generateKeyPair, and for the Diffie-Hellman types (X25519, X448, P-256, P-384) also keyAgreement. Signing is asked for separately, with supports(SignatureAlgorithm). The default asks by generating a key pair and, for a Diffie-Hellman type, agreeing on a secret with the pair's own public key.


open suspend fun supports(algorithm: SignatureAlgorithm): Boolean(source)

Whether this backend signs and verifys with algorithm. The default asks by generating a key pair, signing an empty message and verifying the signature.


open suspend fun supports(algorithm: KemAlgorithm): Boolean(source)

Whether this backend encapsulates and decapsulates with algorithm (FIPS 203). The default asks by generating a key pair, encapsulating to it and decapsulating the ciphertext.


open suspend fun supports(algorithm: HashAlgorithm): Boolean(source)

Whether this backend computes the digest of algorithm, and for a SHA-2 hash also its hmac, which HKDF (RFC 5869) needs. The default asks by hashing and authenticating an empty message.