decrypt

fun decrypt(blob: ByteArray, aesKey: ByteArray): ByteArray

Decrypts a v2 blob and returns the embedded appMetadata bytes (zero-length array when the blob stored no metadata).

Throws

if the blob is malformed, not v2, or fails AEAD verification.