seal
suspend fun seal(recipient: SealPublicKey, plaintext: ByteArray, associatedData: ByteArray): ByteArray
Seals plaintext to recipient, binding associatedData (which is authenticated, not encrypted, and must be passed again to open). Throws IllegalStateException if the process has replaced the platform CSPRNG or the provider fails its self-test, and SealedBoxException with SealedBoxException.Reason.SEAL_FAILED if a sealing step fails.