Cleanup 1
This commit is contained in:
1 parent
a1a56487ff
commit
2db5523893
9 files changed
+19
-172
No files matched your search
@@ -72,15 +72,10 @@ interface AuthenticatedEncryption {
|
||||
data class EncryptedDataPart(val data : UByteArray)
|
||||
data class DecryptedDataPart(val data : UByteArray)
|
||||
|
||||
data class MultipartEncryptedDataDescriptor(val data: UByteArray, val nonce: UByteArray)
|
||||
data class MultipartEncryptionHeader(val nonce: UByteArray)
|
||||
|
||||
class InvalidTagException : RuntimeException("Tag mismatch! Encrypted data is corrupted or tampered with.")
|
||||
|
||||
interface MultipartAuthenticatedVerification {
|
||||
fun verifyPartialData(data: EncryptedDataPart)
|
||||
fun finalizeVerificationAndPrepareDecryptor() : MultipartAuthenticatedDecryption
|
||||
}
|
||||
|
||||
interface MultipartAuthenticatedDecryption {
|
||||
fun decryptPartialData(data: EncryptedDataPart) : DecryptedDataPart
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user