CryptoVerifier

Interface for cryptographic operations needed by the CT verification engine. Platform-specific implementations are provided via createCryptoVerifier.

Functions

Link copied to clipboard
abstract fun sha256(data: ByteArray): ByteArray

Compute a SHA-256 hash.

Link copied to clipboard
abstract fun verifySignature(publicKeyBytes: ByteArray, data: ByteArray, signature: ByteArray, algorithm: SignatureAlgorithm): Boolean

Verify a digital signature.