LegacyAeadMigration

Best-effort helpers for migrating onto KryptoStore envelopes (REQ-MIG-02).

Prefer docs/kryptostore-migration.md for osipxd / EncryptedSharedPreferences guidance (REQ-MIG-03, REQ-MIG-04). Automatic decrypt of security-crypto formats is out of scope without forbidden dependencies.

Functions

Link copied to clipboard
suspend fun decryptUnenveloped(cipher: Cipher, ciphertext: ByteArray, associatedData: ByteArray? = null): ByteArray

Decrypts a raw Tink AEAD (or Cipher-compatible) blob that has no ENCRYPTED_BLOB_MAGIC envelope — e.g. older AeadSerializer-shaped payloads.