feat: Make any SPK survive exactly one rotation

This commit is contained in:
2022-08-08 15:48:09 +02:00
parent b8b6bbf800
commit 1bcbf27c83
3 changed files with 58 additions and 4 deletions

View File

@@ -24,3 +24,9 @@ class NotEncryptedForDeviceException implements Exception {
class NoDecryptionKeyException implements Exception {
String errMsg() => 'No key available for decrypting the message';
}
/// Triggered by the Session Manager when the identifier of the used Signed Prekey
/// is neither the current SPK's identifier nor the old one's.
class UnknownSignedPrekeyException implements Exception {
String errMsg() => 'Unknown Signed Prekey used.';
}