Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rfc8708.py42 linesDownload Raw Back to pyasn1_modules
1# This file is being contributed to pyasn1-modules software.2#3# Created by Russ Housley4#5# Copyright (c) 2020, Vigil Security, LLC6# License: http://snmplabs.com/pyasn1/license.html7#8# HSS/LMS Hash-based Signature Algorithm for CMS9#10# ASN.1 source from:11# https://www.rfc-editor.org/rfc/rfc8708.txt12 13 14from pyasn1.type import univ15 16from pyasn1_modules import rfc528017 18 19# Object Identifiers20 21id_alg_hss_lms_hashsig = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.17')22 23id_alg_mts_hashsig = id_alg_hss_lms_hashsig24 25 26# Signature Algorithm Identifier27 28sa_HSS_LMS_HashSig = rfc5280.AlgorithmIdentifier()29sa_HSS_LMS_HashSig['algorithm'] = id_alg_hss_lms_hashsig30# sa_HSS_LMS_HashSig['parameters'] is alway absent31 32 33# Public Key34 35class HSS_LMS_HashSig_PublicKey(univ.OctetString):36    pass37 38 39pk_HSS_LMS_HashSig = rfc5280.SubjectPublicKeyInfo()40pk_HSS_LMS_HashSig['algorithm'] = sa_HSS_LMS_HashSig41# pk_HSS_LMS_HashSig['parameters'] CONTAINS a DER-encoded HSS_LMS_HashSig_PublicKey42 
codekingpro/portable-devtools · Team Ai