Skip to content

Commit

Permalink
HSMAUTH: change SessionKeys to NamedTuple
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Aug 4, 2023
1 parent aeec9d2 commit e6e475b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yubikit/hsmauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from functools import total_ordering
from enum import IntEnum, unique
from dataclasses import dataclass
from typing import Optional, List, Union, Tuple
from typing import Optional, List, Union, Tuple, NamedTuple
import struct

import logging
Expand Down Expand Up @@ -184,8 +184,7 @@ def __hash__(self) -> int:
return hash(self.label)


@dataclass(frozen=True)
class SessionKeys:
class SessionKeys(NamedTuple):
key_senc: bytes
key_smac: bytes
key_srmac: bytes
Expand Down

0 comments on commit e6e475b

Please sign in to comment.