AlgorithmProvider

interface AlgorithmProvider<T>

Lazily initialized holder for a platform cryptographic primitive (e.g. Tink Aead).

Properties

Link copied to clipboard
open val algorithm: T

Returns the initialized primitive, or throws IllegalStateException if initialize has not completed.

Functions

Link copied to clipboard
abstract suspend fun initialize()

Initializes or refreshes the underlying cryptographic primitive.