diff --git a/src/sec_certs/sample/fips.py b/src/sec_certs/sample/fips.py index cee8cb9d..ce2e6907 100644 --- a/src/sec_certs/sample/fips.py +++ b/src/sec_certs/sample/fips.py @@ -459,7 +459,7 @@ def algorithm_numbers(self) -> set[str]: def alg_to_number(alg: str) -> str: return "".join([x for x in alg.split("#")[1] if x.isdigit()]) - return {alg_to_number(x) for x in self.algorithms} + return {alg_to_number(x) for x in self.algorithms if "#" in x} @property def dgst(self) -> str: