Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py36 linesDownload Raw Back to rfc7518
1from .oct_key import OctKey2from .rsa_key import RSAKey3from .ec_key import ECKey4from .jws_algs import JWS_ALGORITHMS5from .jwe_algs import JWE_ALG_ALGORITHMS, AESAlgorithm, ECDHESAlgorithm, u32be_len_input6from .jwe_encs import JWE_ENC_ALGORITHMS, CBCHS2EncAlgorithm7from .jwe_zips import DeflateZipAlgorithm8 9 10def register_jws_rfc7518(cls):11    for algorithm in JWS_ALGORITHMS:12        cls.register_algorithm(algorithm)13 14 15def register_jwe_rfc7518(cls):16    for algorithm in JWE_ALG_ALGORITHMS:17        cls.register_algorithm(algorithm)18 19    for algorithm in JWE_ENC_ALGORITHMS:20        cls.register_algorithm(algorithm)21 22    cls.register_algorithm(DeflateZipAlgorithm())23 24 25__all__ = [26    'register_jws_rfc7518',27    'register_jwe_rfc7518',28    'OctKey',29    'RSAKey',30    'ECKey',31    'u32be_len_input',32    'AESAlgorithm',33    'ECDHESAlgorithm',34    'CBCHS2EncAlgorithm',35]36 
codekingpro/portable-devtools · Team Ai