From 8dc06f4c7e91c16cf849e3eb8ffd274b38393cb9 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 20 Jun 2024 14:42:28 +0200 Subject: Fix FIPS pipeline for new certs. Fixes #SECCERTS-1GT. --- src/sec_certs/sample/fips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 @@ class FIPSCertificate( 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: -- cgit v1.3.1