mirror of
https://github.com/volcengine/OpenViking.git
synced 2026-10-01 01:38:07 +08:00
* lisence: change the main lisence from Apache-2.0 to AGPL-v3 * lisence: change the main lisence from Apache-2.0 to AGPL-v3 * lisence: change the main lisence from Apache-2.0 to AGPL-v3 --------- Co-authored-by: openviking <openviking@example.com>
54 lines
877 B
Python
54 lines
877 B
Python
# Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd.
|
|
# SPDX-License-Identifier: AGPL-3.0
|
|
"""
|
|
Encryption module exception definitions.
|
|
"""
|
|
|
|
|
|
class EncryptionError(Exception):
|
|
"""Base class for encryption-related errors."""
|
|
|
|
pass
|
|
|
|
|
|
class InvalidMagicError(EncryptionError):
|
|
"""Invalid magic number error."""
|
|
|
|
pass
|
|
|
|
|
|
class CorruptedCiphertextError(EncryptionError):
|
|
"""Corrupted ciphertext error."""
|
|
|
|
pass
|
|
|
|
|
|
class AuthenticationFailedError(EncryptionError):
|
|
"""Authentication tag verification failed error."""
|
|
|
|
pass
|
|
|
|
|
|
class KeyMismatchError(EncryptionError):
|
|
"""Key mismatch error."""
|
|
|
|
pass
|
|
|
|
|
|
class KeyNotFoundError(EncryptionError):
|
|
"""Key not found error."""
|
|
|
|
pass
|
|
|
|
|
|
class ConfigError(EncryptionError):
|
|
"""Configuration error."""
|
|
|
|
pass
|
|
|
|
|
|
class KMSError(EncryptionError):
|
|
"""KMS service error."""
|
|
|
|
pass
|