Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhexlify already part of hasher.unlock #677

Merged
merged 1 commit into from
Aug 27, 2024
Merged
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
5 changes: 2 additions & 3 deletions src/eduid/vccs/server/run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sys
from asyncio import Lock
from binascii import unhexlify
from typing import Any, Mapping, Optional

from fastapi import FastAPI
Expand All @@ -21,7 +20,7 @@


class VCCS_API(FastAPI):
def __init__(self, test_config: Optional[Mapping[str, Any]] = None):
def __init__(self, test_config: Optional[Mapping[str, Any]] = None) -> None:
print("vccs_api is starting", file=sys.stderr)
super().__init__()

Expand All @@ -34,7 +33,7 @@ def __init__(self, test_config: Optional[Mapping[str, Any]] = None):
name=self.state.config.yhsm_device, lock=yhsm_lock, debug=self.state.config.yhsm_debug
)
if self.state.config.yhsm_unlock_password:
self.state.hasher.unlock(unhexlify(self.state.config.yhsm_unlock_password))
self.state.hasher.unlock(self.state.config.yhsm_unlock_password)

self.state.kdf = ndnkdf.NDNKDF()

Expand Down
Loading