Skip to content

Commit dfe8ea2

Browse files
committed
fix: Renaming
1 parent 724a88a commit dfe8ea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/c2pa/c2pa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class C2paSigningAlg(enum.IntEnum):
125125

126126
# Mapping from C2paSigningAlg enum to string representation,
127127
# as the enum value currently maps by default to an integer value.
128-
_ALG_MAPPING = {
128+
_ALG_TO_STRING_BYTES_MAPPING = {
129129
C2paSigningAlg.ES256: b"es256",
130130
C2paSigningAlg.ES384: b"es384",
131131
C2paSigningAlg.ES512: b"es512",
@@ -232,7 +232,7 @@ def __init__(self, alg=None, sign_cert=None, private_key=None, ta_url=None):
232232
if alg is not None:
233233
if isinstance(alg, C2paSigningAlg):
234234
# Convert enum to string representation
235-
alg_str = _ALG_MAPPING.get(alg)
235+
alg_str = _ALG_TO_STRING_BYTES_MAPPING.get(alg)
236236
if alg_str is None:
237237
raise ValueError(f"Unsupported signing algorithm: {alg}")
238238
alg = alg_str

0 commit comments

Comments
 (0)