CryptographyProvider

Main entry point for obtaining cryptographic algorithm implementations.

A provider wraps a specific cryptography backend (e.g., OpenSSL, JCA, WebCrypto, CryptoKit) and returns algorithm instances configured for that backend. Algorithm instances implement CryptographyAlgorithm. The global default provider is managed by CryptographySystem.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val name: String

The human-readable name identifying this provider (e.g., "JDK", "OpenSSL3").

Functions

Link copied to clipboard

Looks up the algorithm matching identifier in this provider.

Link copied to clipboard
abstract fun <A : CryptographyAlgorithm> getOrNull(identifier: CryptographyAlgorithmId<A>): A?

Looks up the algorithm matching identifier in this provider.