deriveKey

fun deriveKey(prfOutput: ByteArray, info: String = DEFAULT_INFO): ByteArray

Derives a 32-byte AES-256 key from PRF output.

Return

32-byte key suitable for AES-256-GCM

Parameters

prfOutput

32-byte PRF output from the authenticator

info

Purpose string for domain separation (default: backup encryption)