Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
# Licensed under the MIT License.
# ------------------------------------
from enum import Enum
from azure.core import CaseInsensitiveEnumMeta


class KeyWrapAlgorithm(str, Enum):
# pylint: disable=enum-must-be-uppercase
class KeyWrapAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Key wrapping algorithms"""

aes_128 = "A128KW"
Expand All @@ -16,7 +17,7 @@ class KeyWrapAlgorithm(str, Enum):
rsa1_5 = "RSA1_5"


class EncryptionAlgorithm(str, Enum):
class EncryptionAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Encryption algorithms"""

rsa_oaep = "RSA-OAEP"
Expand All @@ -33,7 +34,7 @@ class EncryptionAlgorithm(str, Enum):
a256_cbcpad = "A256CBCPAD"


class SignatureAlgorithm(str, Enum):
class SignatureAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Signature algorithms, described in https://tools.ietf.org/html/rfc7518"""

ps256 = "PS256" #: RSASSA-PSS using SHA-256 and MGF1 with SHA-256
Expand Down