raindancers-cloudfront 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cloudfront/lambda-bundled/cognito-auth/__pycache__/six.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/_cffi_gen_src.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/_imp_emulation.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/_shimmed_dist_utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/api.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/backend_ctypes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/cffi_opcode.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/commontypes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/cparser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/error.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/ffiplatform.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/gen_src.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/lock.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/model.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/pkgconfig.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/recompiler.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/setuptools_ext.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/vengine_cpy.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/vengine_gen.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cffi/__pycache__/verifier.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/__pycache__/__about__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/__pycache__/fernet.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/__pycache__/_oid.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/aead.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/ciphers.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/cmac.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/decode_asn1.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/ec.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/rsa.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/backends/openssl/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/bindings/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/bindings/openssl/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/bindings/openssl/__pycache__/_conditional.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/bindings/openssl/__pycache__/binding.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/_asymmetric.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/_cipheralgorithm.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/_serialization.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/cmac.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/constant_time.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/hashes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/hmac.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/keywrap.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/padding.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/__pycache__/poly1305.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/dh.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/dsa.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/ec.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/ed25519.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/ed448.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/padding.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/rsa.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/types.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/x25519.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/x448.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/ciphers/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/ciphers/__pycache__/aead.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/ciphers/__pycache__/algorithms.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/concatkdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/hkdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/kbkdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/pbkdf2.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/scrypt.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/kdf/__pycache__/x963kdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/serialization/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/serialization/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/serialization/__pycache__/pkcs12.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/serialization/__pycache__/pkcs7.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/serialization/__pycache__/ssh.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/twofactor/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/twofactor/__pycache__/hotp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/certificate_transparency.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/extensions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/general_name.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/name.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/ocsp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/cryptography/x509/__pycache__/oid.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/algorithms.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/api_jwk.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/api_jws.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/api_jwt.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/help.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/jwk_set_cache.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/jwks_client.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/types.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/jwt/__pycache__/warnings.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/_ast_gen.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/ast_transforms.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/c_ast.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/c_generator.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/c_lexer.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-auth/pycparser/__pycache__/c_parser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/bin/pyrsa-decrypt +8 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/bin/pyrsa-encrypt +8 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/bin/pyrsa-keygen +8 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/bin/pyrsa-priv2pub +8 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/bin/pyrsa-sign +8 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/bin/pyrsa-verify +8 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/__init__.py +2 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/__pycache__/debug.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/__pycache__/error.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/__init__.py +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/__pycache__/streaming.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/__init__.py +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/__pycache__/decoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/__pycache__/encoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/__pycache__/eoo.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/decoder.py +2189 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/encoder.py +954 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/ber/eoo.py +28 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/cer/__init__.py +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/cer/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/cer/__pycache__/decoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/cer/__pycache__/encoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/cer/decoder.py +149 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/cer/encoder.py +331 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/der/__init__.py +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/der/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/der/__pycache__/decoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/der/__pycache__/encoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/der/decoder.py +120 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/der/encoder.py +126 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/__init__.py +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/__pycache__/decoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/__pycache__/encoder.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/decoder.py +244 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/encoder.py +285 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/streaming.py +234 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/compat/__init__.py +4 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/compat/__pycache__/integer.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/compat/integer.py +13 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/debug.py +146 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/error.py +116 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__init__.py +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/char.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/constraint.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/error.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/namedtype.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/namedval.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/opentype.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/tag.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/tagmap.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/univ.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/__pycache__/useful.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/base.py +699 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/char.py +288 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/constraint.py +751 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/error.py +11 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/namedtype.py +550 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/namedval.py +192 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/opentype.py +104 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/tag.py +335 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/tagmap.py +96 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/univ.py +3327 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/type/useful.py +189 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/INSTALLER +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/LICENSE.rst +24 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/METADATA +228 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/RECORD +72 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/REQUESTED +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/WHEEL +5 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/top_level.txt +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1-0.6.1.dist-info/zip-safe +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__init__.py +60 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/asn1.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/cli.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/common.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/core.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/key.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/parallel.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/pem.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/pkcs1.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/pkcs1_v2.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/prime.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/randnum.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/transform.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/__pycache__/util.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/asn1.py +52 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/cli.py +321 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/common.py +184 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/core.py +53 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/key.py +858 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/parallel.py +96 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/pem.py +134 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/pkcs1.py +485 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/pkcs1_v2.py +100 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/prime.py +198 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/py.typed +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/randnum.py +95 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/transform.py +72 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa/util.py +97 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/INSTALLER +1 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/LICENSE +13 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/METADATA +106 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/RECORD +42 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/REQUESTED +0 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/WHEEL +4 -0
- package/lib/cloudfront/lambda-bundled/cognito-customui-session/rsa-4.9.dist-info/entry_points.txt +8 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/__pycache__/six.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/_cffi_gen_src.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/_imp_emulation.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/_shimmed_dist_utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/api.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/backend_ctypes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/cffi_opcode.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/commontypes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/cparser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/error.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/ffiplatform.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/gen_src.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/lock.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/model.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/pkgconfig.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/recompiler.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/setuptools_ext.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/vengine_cpy.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/vengine_gen.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cffi/__pycache__/verifier.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/__pycache__/__about__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/__pycache__/fernet.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/__pycache__/_oid.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/aead.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/ciphers.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/cmac.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/decode_asn1.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/ec.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/rsa.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/backends/openssl/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/bindings/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/bindings/openssl/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/bindings/openssl/__pycache__/_conditional.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/bindings/openssl/__pycache__/binding.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/_asymmetric.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/_cipheralgorithm.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/_serialization.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/cmac.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/constant_time.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/hashes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/hmac.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/keywrap.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/padding.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/__pycache__/poly1305.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/dh.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/dsa.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/ec.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/ed25519.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/ed448.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/padding.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/rsa.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/types.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/x25519.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/asymmetric/__pycache__/x448.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/ciphers/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/ciphers/__pycache__/aead.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/ciphers/__pycache__/algorithms.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/concatkdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/hkdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/kbkdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/pbkdf2.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/scrypt.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/kdf/__pycache__/x963kdf.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/serialization/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/serialization/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/serialization/__pycache__/pkcs12.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/serialization/__pycache__/pkcs7.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/serialization/__pycache__/ssh.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/twofactor/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/twofactor/__pycache__/hotp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/certificate_transparency.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/extensions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/general_name.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/name.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/ocsp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/cryptography/x509/__pycache__/oid.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/algorithms.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/api_jwk.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/api_jws.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/api_jwt.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/help.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/jwk_set_cache.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/jwks_client.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/types.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/jwt/__pycache__/warnings.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/_ast_gen.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/ast_transforms.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/c_ast.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/c_generator.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/c_lexer.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/edge-auth/pycparser/__pycache__/c_parser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/__pycache__/six.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/_aws_iot_metrics.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/_test.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/auth.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/cbor.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/checksums.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/common.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/crypto.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/http.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/io.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/logging.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/mqtt.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/mqtt5.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/mqtt_request_response.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/s3.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/__pycache__/websocket.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/aio/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/aio/__pycache__/http.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/eventstream/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/awscrt/eventstream/__pycache__/rpc.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/bin/__pycache__/jp.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/args.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/auth.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/awsrequest.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/client.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/compat.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/compress.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/config.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/configloader.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/configprovider.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/context.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/credentials.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/discovery.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/endpoint.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/endpoint_provider.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/errorfactory.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/eventstream.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/handlers.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/history.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/hooks.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/httpchecksum.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/httpsession.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/loaders.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/model.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/monitoring.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/paginate.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/parsers.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/plugin.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/regions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/response.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/retryhandler.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/serialize.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/session.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/signers.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/stub.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/tokens.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/translate.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/useragent.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/validate.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/__pycache__/waiter.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/crt/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/crt/__pycache__/auth.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/client.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/docstring.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/example.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/method.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/paginator.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/params.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/service.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/shape.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/sharedexample.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/translator.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/__pycache__/waiter.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/bcdoc/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/bcdoc/__pycache__/docstringparser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/bcdoc/__pycache__/restdoc.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/docs/bcdoc/__pycache__/style.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/adaptive.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/base.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/bucket.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/quota.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/special.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/standard.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/retries/__pycache__/throttling.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/__pycache__/six.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/requests/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/requests/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/requests/packages/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/requests/packages/urllib3/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/botocore/vendored/requests/packages/urllib3/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/_common.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/_version.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/easter.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/relativedelta.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/rrule.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/tzwin.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/__pycache__/utils.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/parser/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/parser/__pycache__/_parser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/parser/__pycache__/isoparser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/tz/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/tz/__pycache__/_common.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/tz/__pycache__/_factories.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/tz/__pycache__/tz.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/tz/__pycache__/win.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/zoneinfo/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/dateutil/zoneinfo/__pycache__/rebuild.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/ast.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/compat.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/functions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/lexer.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/parser.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/jmespath/__pycache__/visitor.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/_base_connection.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/_collections.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/_request_methods.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/_version.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/connection.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/connectionpool.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/fields.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/filepost.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/poolmanager.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/__pycache__/response.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/__pycache__/pyopenssl.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/__pycache__/socks.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/emscripten/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/emscripten/__pycache__/connection.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/emscripten/__pycache__/fetch.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/emscripten/__pycache__/request.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/contrib/emscripten/__pycache__/response.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/http2/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/http2/__pycache__/connection.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/http2/__pycache__/probe.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/connection.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/proxy.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/request.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/response.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/retry.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/ssl_.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/ssl_match_hostname.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/ssltransport.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/timeout.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/url.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/util.cpython-312.pyc +0 -0
- package/lib/cloudfront/lambda-bundled/hmacSecret/urllib3/util/__pycache__/wait.cpython-312.pyc +0 -0
- package/lib/cloudfront/patterns/cognito-customui-auth.js +21 -10
- package/package.json +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is part of pyasn1 software.
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
|
5
|
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
|
6
|
+
#
|
|
7
|
+
import warnings
|
|
8
|
+
|
|
9
|
+
from pyasn1 import error
|
|
10
|
+
from pyasn1.codec.cer import encoder
|
|
11
|
+
from pyasn1.type import univ
|
|
12
|
+
|
|
13
|
+
__all__ = ['Encoder', 'encode']
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SetEncoder(encoder.SetEncoder):
|
|
17
|
+
@staticmethod
|
|
18
|
+
def _componentSortKey(componentAndType):
|
|
19
|
+
"""Sort SET components by tag
|
|
20
|
+
|
|
21
|
+
Sort depending on the actual Choice value (dynamic sort)
|
|
22
|
+
"""
|
|
23
|
+
component, asn1Spec = componentAndType
|
|
24
|
+
|
|
25
|
+
if asn1Spec is None:
|
|
26
|
+
compType = component
|
|
27
|
+
else:
|
|
28
|
+
compType = asn1Spec
|
|
29
|
+
|
|
30
|
+
if compType.typeId == univ.Choice.typeId and not compType.tagSet:
|
|
31
|
+
if asn1Spec is None:
|
|
32
|
+
return component.getComponent().tagSet
|
|
33
|
+
else:
|
|
34
|
+
# TODO: move out of sorting key function
|
|
35
|
+
names = [namedType.name for namedType in asn1Spec.componentType.namedTypes
|
|
36
|
+
if namedType.name in component]
|
|
37
|
+
if len(names) != 1:
|
|
38
|
+
raise error.PyAsn1Error(
|
|
39
|
+
'%s components for Choice at %r' % (len(names) and 'Multiple ' or 'None ', component))
|
|
40
|
+
|
|
41
|
+
# TODO: support nested CHOICE ordering
|
|
42
|
+
return asn1Spec[names[0]].tagSet
|
|
43
|
+
|
|
44
|
+
else:
|
|
45
|
+
return compType.tagSet
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
TAG_MAP = encoder.TAG_MAP.copy()
|
|
49
|
+
|
|
50
|
+
TAG_MAP.update({
|
|
51
|
+
# Set & SetOf have same tags
|
|
52
|
+
univ.Set.tagSet: SetEncoder()
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
TYPE_MAP = encoder.TYPE_MAP.copy()
|
|
56
|
+
|
|
57
|
+
TYPE_MAP.update({
|
|
58
|
+
# Set & SetOf have same tags
|
|
59
|
+
univ.Set.typeId: SetEncoder()
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class SingleItemEncoder(encoder.SingleItemEncoder):
|
|
64
|
+
fixedDefLengthMode = True
|
|
65
|
+
fixedChunkSize = 0
|
|
66
|
+
|
|
67
|
+
TAG_MAP = TAG_MAP
|
|
68
|
+
TYPE_MAP = TYPE_MAP
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class Encoder(encoder.Encoder):
|
|
72
|
+
SINGLE_ITEM_ENCODER = SingleItemEncoder
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
#: Turns ASN.1 object into DER octet stream.
|
|
76
|
+
#:
|
|
77
|
+
#: Takes any ASN.1 object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative)
|
|
78
|
+
#: walks all its components recursively and produces a DER octet stream.
|
|
79
|
+
#:
|
|
80
|
+
#: Parameters
|
|
81
|
+
#: ----------
|
|
82
|
+
#: value: either a Python or pyasn1 object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative)
|
|
83
|
+
#: A Python or pyasn1 object to encode. If Python object is given, `asnSpec`
|
|
84
|
+
#: parameter is required to guide the encoding process.
|
|
85
|
+
#:
|
|
86
|
+
#: Keyword Args
|
|
87
|
+
#: ------------
|
|
88
|
+
#: asn1Spec:
|
|
89
|
+
#: Optional ASN.1 schema or value object e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative
|
|
90
|
+
#:
|
|
91
|
+
#: Returns
|
|
92
|
+
#: -------
|
|
93
|
+
#: : :py:class:`bytes`
|
|
94
|
+
#: Given ASN.1 object encoded into BER octet-stream
|
|
95
|
+
#:
|
|
96
|
+
#: Raises
|
|
97
|
+
#: ------
|
|
98
|
+
#: ~pyasn1.error.PyAsn1Error
|
|
99
|
+
#: On encoding errors
|
|
100
|
+
#:
|
|
101
|
+
#: Examples
|
|
102
|
+
#: --------
|
|
103
|
+
#: Encode Python value into DER with ASN.1 schema
|
|
104
|
+
#:
|
|
105
|
+
#: .. code-block:: pycon
|
|
106
|
+
#:
|
|
107
|
+
#: >>> seq = SequenceOf(componentType=Integer())
|
|
108
|
+
#: >>> encode([1, 2, 3], asn1Spec=seq)
|
|
109
|
+
#: b'0\t\x02\x01\x01\x02\x01\x02\x02\x01\x03'
|
|
110
|
+
#:
|
|
111
|
+
#: Encode ASN.1 value object into DER
|
|
112
|
+
#:
|
|
113
|
+
#: .. code-block:: pycon
|
|
114
|
+
#:
|
|
115
|
+
#: >>> seq = SequenceOf(componentType=Integer())
|
|
116
|
+
#: >>> seq.extend([1, 2, 3])
|
|
117
|
+
#: >>> encode(seq)
|
|
118
|
+
#: b'0\t\x02\x01\x01\x02\x01\x02\x02\x01\x03'
|
|
119
|
+
#:
|
|
120
|
+
encode = Encoder()
|
|
121
|
+
|
|
122
|
+
def __getattr__(attr: str):
|
|
123
|
+
if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
|
|
124
|
+
warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
|
|
125
|
+
return globals()[newAttr]
|
|
126
|
+
raise AttributeError(attr)
|
package/lib/cloudfront/lambda-bundled/cognito-customui-session/pyasn1/codec/native/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# This file is necessary to make this directory a package.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is part of pyasn1 software.
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
|
5
|
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
|
6
|
+
#
|
|
7
|
+
import warnings
|
|
8
|
+
|
|
9
|
+
from pyasn1 import debug
|
|
10
|
+
from pyasn1 import error
|
|
11
|
+
from pyasn1.compat import _MISSING
|
|
12
|
+
from pyasn1.type import base
|
|
13
|
+
from pyasn1.type import char
|
|
14
|
+
from pyasn1.type import tag
|
|
15
|
+
from pyasn1.type import univ
|
|
16
|
+
from pyasn1.type import useful
|
|
17
|
+
|
|
18
|
+
__all__ = ['decode']
|
|
19
|
+
|
|
20
|
+
LOG = debug.registerLoggee(__name__, flags=debug.DEBUG_DECODER)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AbstractScalarPayloadDecoder(object):
|
|
24
|
+
def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
|
|
25
|
+
return asn1Spec.clone(pyObject)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class BitStringPayloadDecoder(AbstractScalarPayloadDecoder):
|
|
29
|
+
def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
|
|
30
|
+
return asn1Spec.clone(univ.BitString.fromBinaryString(pyObject))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class SequenceOrSetPayloadDecoder(object):
|
|
34
|
+
def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
|
|
35
|
+
asn1Value = asn1Spec.clone()
|
|
36
|
+
|
|
37
|
+
componentsTypes = asn1Spec.componentType
|
|
38
|
+
|
|
39
|
+
for field in asn1Value:
|
|
40
|
+
if field in pyObject:
|
|
41
|
+
asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)
|
|
42
|
+
|
|
43
|
+
return asn1Value
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class SequenceOfOrSetOfPayloadDecoder(object):
|
|
47
|
+
def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
|
|
48
|
+
asn1Value = asn1Spec.clone()
|
|
49
|
+
|
|
50
|
+
for pyValue in pyObject:
|
|
51
|
+
asn1Value.append(decodeFun(pyValue, asn1Spec.componentType), **options)
|
|
52
|
+
|
|
53
|
+
return asn1Value
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class ChoicePayloadDecoder(object):
|
|
57
|
+
def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
|
|
58
|
+
asn1Value = asn1Spec.clone()
|
|
59
|
+
|
|
60
|
+
componentsTypes = asn1Spec.componentType
|
|
61
|
+
|
|
62
|
+
for field in pyObject:
|
|
63
|
+
if field in componentsTypes:
|
|
64
|
+
asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)
|
|
65
|
+
break
|
|
66
|
+
|
|
67
|
+
return asn1Value
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
TAG_MAP = {
|
|
71
|
+
univ.Integer.tagSet: AbstractScalarPayloadDecoder(),
|
|
72
|
+
univ.Boolean.tagSet: AbstractScalarPayloadDecoder(),
|
|
73
|
+
univ.BitString.tagSet: BitStringPayloadDecoder(),
|
|
74
|
+
univ.OctetString.tagSet: AbstractScalarPayloadDecoder(),
|
|
75
|
+
univ.Null.tagSet: AbstractScalarPayloadDecoder(),
|
|
76
|
+
univ.ObjectIdentifier.tagSet: AbstractScalarPayloadDecoder(),
|
|
77
|
+
univ.RelativeOID.tagSet: AbstractScalarPayloadDecoder(),
|
|
78
|
+
univ.Enumerated.tagSet: AbstractScalarPayloadDecoder(),
|
|
79
|
+
univ.Real.tagSet: AbstractScalarPayloadDecoder(),
|
|
80
|
+
univ.Sequence.tagSet: SequenceOrSetPayloadDecoder(), # conflicts with SequenceOf
|
|
81
|
+
univ.Set.tagSet: SequenceOrSetPayloadDecoder(), # conflicts with SetOf
|
|
82
|
+
univ.Choice.tagSet: ChoicePayloadDecoder(), # conflicts with Any
|
|
83
|
+
# character string types
|
|
84
|
+
char.UTF8String.tagSet: AbstractScalarPayloadDecoder(),
|
|
85
|
+
char.NumericString.tagSet: AbstractScalarPayloadDecoder(),
|
|
86
|
+
char.PrintableString.tagSet: AbstractScalarPayloadDecoder(),
|
|
87
|
+
char.TeletexString.tagSet: AbstractScalarPayloadDecoder(),
|
|
88
|
+
char.VideotexString.tagSet: AbstractScalarPayloadDecoder(),
|
|
89
|
+
char.IA5String.tagSet: AbstractScalarPayloadDecoder(),
|
|
90
|
+
char.GraphicString.tagSet: AbstractScalarPayloadDecoder(),
|
|
91
|
+
char.VisibleString.tagSet: AbstractScalarPayloadDecoder(),
|
|
92
|
+
char.GeneralString.tagSet: AbstractScalarPayloadDecoder(),
|
|
93
|
+
char.UniversalString.tagSet: AbstractScalarPayloadDecoder(),
|
|
94
|
+
char.BMPString.tagSet: AbstractScalarPayloadDecoder(),
|
|
95
|
+
# useful types
|
|
96
|
+
useful.ObjectDescriptor.tagSet: AbstractScalarPayloadDecoder(),
|
|
97
|
+
useful.GeneralizedTime.tagSet: AbstractScalarPayloadDecoder(),
|
|
98
|
+
useful.UTCTime.tagSet: AbstractScalarPayloadDecoder()
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
# Put in ambiguous & non-ambiguous types for faster codec lookup
|
|
102
|
+
TYPE_MAP = {
|
|
103
|
+
univ.Integer.typeId: AbstractScalarPayloadDecoder(),
|
|
104
|
+
univ.Boolean.typeId: AbstractScalarPayloadDecoder(),
|
|
105
|
+
univ.BitString.typeId: BitStringPayloadDecoder(),
|
|
106
|
+
univ.OctetString.typeId: AbstractScalarPayloadDecoder(),
|
|
107
|
+
univ.Null.typeId: AbstractScalarPayloadDecoder(),
|
|
108
|
+
univ.ObjectIdentifier.typeId: AbstractScalarPayloadDecoder(),
|
|
109
|
+
univ.RelativeOID.typeId: AbstractScalarPayloadDecoder(),
|
|
110
|
+
univ.Enumerated.typeId: AbstractScalarPayloadDecoder(),
|
|
111
|
+
univ.Real.typeId: AbstractScalarPayloadDecoder(),
|
|
112
|
+
# ambiguous base types
|
|
113
|
+
univ.Set.typeId: SequenceOrSetPayloadDecoder(),
|
|
114
|
+
univ.SetOf.typeId: SequenceOfOrSetOfPayloadDecoder(),
|
|
115
|
+
univ.Sequence.typeId: SequenceOrSetPayloadDecoder(),
|
|
116
|
+
univ.SequenceOf.typeId: SequenceOfOrSetOfPayloadDecoder(),
|
|
117
|
+
univ.Choice.typeId: ChoicePayloadDecoder(),
|
|
118
|
+
univ.Any.typeId: AbstractScalarPayloadDecoder(),
|
|
119
|
+
# character string types
|
|
120
|
+
char.UTF8String.typeId: AbstractScalarPayloadDecoder(),
|
|
121
|
+
char.NumericString.typeId: AbstractScalarPayloadDecoder(),
|
|
122
|
+
char.PrintableString.typeId: AbstractScalarPayloadDecoder(),
|
|
123
|
+
char.TeletexString.typeId: AbstractScalarPayloadDecoder(),
|
|
124
|
+
char.VideotexString.typeId: AbstractScalarPayloadDecoder(),
|
|
125
|
+
char.IA5String.typeId: AbstractScalarPayloadDecoder(),
|
|
126
|
+
char.GraphicString.typeId: AbstractScalarPayloadDecoder(),
|
|
127
|
+
char.VisibleString.typeId: AbstractScalarPayloadDecoder(),
|
|
128
|
+
char.GeneralString.typeId: AbstractScalarPayloadDecoder(),
|
|
129
|
+
char.UniversalString.typeId: AbstractScalarPayloadDecoder(),
|
|
130
|
+
char.BMPString.typeId: AbstractScalarPayloadDecoder(),
|
|
131
|
+
# useful types
|
|
132
|
+
useful.ObjectDescriptor.typeId: AbstractScalarPayloadDecoder(),
|
|
133
|
+
useful.GeneralizedTime.typeId: AbstractScalarPayloadDecoder(),
|
|
134
|
+
useful.UTCTime.typeId: AbstractScalarPayloadDecoder()
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class SingleItemDecoder(object):
|
|
139
|
+
|
|
140
|
+
TAG_MAP = TAG_MAP
|
|
141
|
+
TYPE_MAP = TYPE_MAP
|
|
142
|
+
|
|
143
|
+
def __init__(self, tagMap=_MISSING, typeMap=_MISSING, **ignored):
|
|
144
|
+
self._tagMap = tagMap if tagMap is not _MISSING else self.TAG_MAP
|
|
145
|
+
self._typeMap = typeMap if typeMap is not _MISSING else self.TYPE_MAP
|
|
146
|
+
|
|
147
|
+
def __call__(self, pyObject, asn1Spec, **options):
|
|
148
|
+
|
|
149
|
+
if LOG:
|
|
150
|
+
debug.scope.push(type(pyObject).__name__)
|
|
151
|
+
LOG('decoder called at scope %s, working with '
|
|
152
|
+
'type %s' % (debug.scope, type(pyObject).__name__))
|
|
153
|
+
|
|
154
|
+
if asn1Spec is None or not isinstance(asn1Spec, base.Asn1Item):
|
|
155
|
+
raise error.PyAsn1Error(
|
|
156
|
+
'asn1Spec is not valid (should be an instance of an ASN.1 '
|
|
157
|
+
'Item, not %s)' % asn1Spec.__class__.__name__)
|
|
158
|
+
|
|
159
|
+
try:
|
|
160
|
+
valueDecoder = self._typeMap[asn1Spec.typeId]
|
|
161
|
+
|
|
162
|
+
except KeyError:
|
|
163
|
+
# use base type for codec lookup to recover untagged types
|
|
164
|
+
baseTagSet = tag.TagSet(asn1Spec.tagSet.baseTag, asn1Spec.tagSet.baseTag)
|
|
165
|
+
|
|
166
|
+
try:
|
|
167
|
+
valueDecoder = self._tagMap[baseTagSet]
|
|
168
|
+
|
|
169
|
+
except KeyError:
|
|
170
|
+
raise error.PyAsn1Error('Unknown ASN.1 tag %s' % asn1Spec.tagSet)
|
|
171
|
+
|
|
172
|
+
if LOG:
|
|
173
|
+
LOG('calling decoder %s on Python type %s '
|
|
174
|
+
'<%s>' % (type(valueDecoder).__name__,
|
|
175
|
+
type(pyObject).__name__, repr(pyObject)))
|
|
176
|
+
|
|
177
|
+
value = valueDecoder(pyObject, asn1Spec, self, **options)
|
|
178
|
+
|
|
179
|
+
if LOG:
|
|
180
|
+
LOG('decoder %s produced ASN.1 type %s '
|
|
181
|
+
'<%s>' % (type(valueDecoder).__name__,
|
|
182
|
+
type(value).__name__, repr(value)))
|
|
183
|
+
debug.scope.pop()
|
|
184
|
+
|
|
185
|
+
return value
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class Decoder(object):
|
|
189
|
+
SINGLE_ITEM_DECODER = SingleItemDecoder
|
|
190
|
+
|
|
191
|
+
def __init__(self, **options):
|
|
192
|
+
self._singleItemDecoder = self.SINGLE_ITEM_DECODER(**options)
|
|
193
|
+
|
|
194
|
+
def __call__(self, pyObject, asn1Spec=None, **kwargs):
|
|
195
|
+
return self._singleItemDecoder(pyObject, asn1Spec=asn1Spec, **kwargs)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
#: Turns Python objects of built-in types into ASN.1 objects.
|
|
199
|
+
#:
|
|
200
|
+
#: Takes Python objects of built-in types and turns them into a tree of
|
|
201
|
+
#: ASN.1 objects (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative) which
|
|
202
|
+
#: may be a scalar or an arbitrary nested structure.
|
|
203
|
+
#:
|
|
204
|
+
#: Parameters
|
|
205
|
+
#: ----------
|
|
206
|
+
#: pyObject: :py:class:`object`
|
|
207
|
+
#: A scalar or nested Python objects
|
|
208
|
+
#:
|
|
209
|
+
#: Keyword Args
|
|
210
|
+
#: ------------
|
|
211
|
+
#: asn1Spec: any pyasn1 type object e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative
|
|
212
|
+
#: A pyasn1 type object to act as a template guiding the decoder. It is required
|
|
213
|
+
#: for successful interpretation of Python objects mapping into their ASN.1
|
|
214
|
+
#: representations.
|
|
215
|
+
#:
|
|
216
|
+
#: Returns
|
|
217
|
+
#: -------
|
|
218
|
+
#: : :py:class:`~pyasn1.type.base.PyAsn1Item` derivative
|
|
219
|
+
#: A scalar or constructed pyasn1 object
|
|
220
|
+
#:
|
|
221
|
+
#: Raises
|
|
222
|
+
#: ------
|
|
223
|
+
#: ~pyasn1.error.PyAsn1Error
|
|
224
|
+
#: On decoding errors
|
|
225
|
+
#:
|
|
226
|
+
#: Examples
|
|
227
|
+
#: --------
|
|
228
|
+
#: Decode native Python object into ASN.1 objects with ASN.1 schema
|
|
229
|
+
#:
|
|
230
|
+
#: .. code-block:: pycon
|
|
231
|
+
#:
|
|
232
|
+
#: >>> seq = SequenceOf(componentType=Integer())
|
|
233
|
+
#: >>> s, _ = decode([1, 2, 3], asn1Spec=seq)
|
|
234
|
+
#: >>> str(s)
|
|
235
|
+
#: SequenceOf:
|
|
236
|
+
#: 1 2 3
|
|
237
|
+
#:
|
|
238
|
+
decode = Decoder()
|
|
239
|
+
|
|
240
|
+
def __getattr__(attr: str):
|
|
241
|
+
if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
|
|
242
|
+
warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
|
|
243
|
+
return globals()[newAttr]
|
|
244
|
+
raise AttributeError(attr)
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is part of pyasn1 software.
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
|
5
|
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
|
6
|
+
#
|
|
7
|
+
from collections import OrderedDict
|
|
8
|
+
import warnings
|
|
9
|
+
|
|
10
|
+
from pyasn1 import debug
|
|
11
|
+
from pyasn1 import error
|
|
12
|
+
from pyasn1.compat import _MISSING
|
|
13
|
+
from pyasn1.type import base
|
|
14
|
+
from pyasn1.type import char
|
|
15
|
+
from pyasn1.type import tag
|
|
16
|
+
from pyasn1.type import univ
|
|
17
|
+
from pyasn1.type import useful
|
|
18
|
+
|
|
19
|
+
__all__ = ['encode']
|
|
20
|
+
|
|
21
|
+
LOG = debug.registerLoggee(__name__, flags=debug.DEBUG_ENCODER)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class AbstractItemEncoder(object):
|
|
25
|
+
def encode(self, value, encodeFun, **options):
|
|
26
|
+
raise error.PyAsn1Error('Not implemented')
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class BooleanEncoder(AbstractItemEncoder):
|
|
30
|
+
def encode(self, value, encodeFun, **options):
|
|
31
|
+
return bool(value)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class IntegerEncoder(AbstractItemEncoder):
|
|
35
|
+
def encode(self, value, encodeFun, **options):
|
|
36
|
+
return int(value)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class BitStringEncoder(AbstractItemEncoder):
|
|
40
|
+
def encode(self, value, encodeFun, **options):
|
|
41
|
+
return str(value)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class OctetStringEncoder(AbstractItemEncoder):
|
|
45
|
+
def encode(self, value, encodeFun, **options):
|
|
46
|
+
return value.asOctets()
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class TextStringEncoder(AbstractItemEncoder):
|
|
50
|
+
def encode(self, value, encodeFun, **options):
|
|
51
|
+
return str(value)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class NullEncoder(AbstractItemEncoder):
|
|
55
|
+
def encode(self, value, encodeFun, **options):
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class ObjectIdentifierEncoder(AbstractItemEncoder):
|
|
60
|
+
def encode(self, value, encodeFun, **options):
|
|
61
|
+
return str(value)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class RelativeOIDEncoder(AbstractItemEncoder):
|
|
65
|
+
def encode(self, value, encodeFun, **options):
|
|
66
|
+
return str(value)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class RealEncoder(AbstractItemEncoder):
|
|
70
|
+
def encode(self, value, encodeFun, **options):
|
|
71
|
+
return float(value)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class SetEncoder(AbstractItemEncoder):
|
|
75
|
+
protoDict = dict
|
|
76
|
+
|
|
77
|
+
def encode(self, value, encodeFun, **options):
|
|
78
|
+
inconsistency = value.isInconsistent
|
|
79
|
+
if inconsistency:
|
|
80
|
+
raise error.PyAsn1Error(
|
|
81
|
+
f"ASN.1 object {value.__class__.__name__} is inconsistent")
|
|
82
|
+
|
|
83
|
+
namedTypes = value.componentType
|
|
84
|
+
substrate = self.protoDict()
|
|
85
|
+
|
|
86
|
+
for idx, (key, subValue) in enumerate(value.items()):
|
|
87
|
+
if namedTypes and namedTypes[idx].isOptional and not value[idx].isValue:
|
|
88
|
+
continue
|
|
89
|
+
substrate[key] = encodeFun(subValue, **options)
|
|
90
|
+
return substrate
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class SequenceEncoder(SetEncoder):
|
|
94
|
+
protoDict = OrderedDict
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
class SequenceOfEncoder(AbstractItemEncoder):
|
|
98
|
+
def encode(self, value, encodeFun, **options):
|
|
99
|
+
inconsistency = value.isInconsistent
|
|
100
|
+
if inconsistency:
|
|
101
|
+
raise error.PyAsn1Error(
|
|
102
|
+
f"ASN.1 object {value.__class__.__name__} is inconsistent")
|
|
103
|
+
return [encodeFun(x, **options) for x in value]
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class ChoiceEncoder(SequenceEncoder):
|
|
107
|
+
pass
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class AnyEncoder(AbstractItemEncoder):
|
|
111
|
+
def encode(self, value, encodeFun, **options):
|
|
112
|
+
return value.asOctets()
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
TAG_MAP = {
|
|
116
|
+
univ.Boolean.tagSet: BooleanEncoder(),
|
|
117
|
+
univ.Integer.tagSet: IntegerEncoder(),
|
|
118
|
+
univ.BitString.tagSet: BitStringEncoder(),
|
|
119
|
+
univ.OctetString.tagSet: OctetStringEncoder(),
|
|
120
|
+
univ.Null.tagSet: NullEncoder(),
|
|
121
|
+
univ.ObjectIdentifier.tagSet: ObjectIdentifierEncoder(),
|
|
122
|
+
univ.RelativeOID.tagSet: RelativeOIDEncoder(),
|
|
123
|
+
univ.Enumerated.tagSet: IntegerEncoder(),
|
|
124
|
+
univ.Real.tagSet: RealEncoder(),
|
|
125
|
+
# Sequence & Set have same tags as SequenceOf & SetOf
|
|
126
|
+
univ.SequenceOf.tagSet: SequenceOfEncoder(),
|
|
127
|
+
univ.SetOf.tagSet: SequenceOfEncoder(),
|
|
128
|
+
univ.Choice.tagSet: ChoiceEncoder(),
|
|
129
|
+
# character string types
|
|
130
|
+
char.UTF8String.tagSet: TextStringEncoder(),
|
|
131
|
+
char.NumericString.tagSet: TextStringEncoder(),
|
|
132
|
+
char.PrintableString.tagSet: TextStringEncoder(),
|
|
133
|
+
char.TeletexString.tagSet: TextStringEncoder(),
|
|
134
|
+
char.VideotexString.tagSet: TextStringEncoder(),
|
|
135
|
+
char.IA5String.tagSet: TextStringEncoder(),
|
|
136
|
+
char.GraphicString.tagSet: TextStringEncoder(),
|
|
137
|
+
char.VisibleString.tagSet: TextStringEncoder(),
|
|
138
|
+
char.GeneralString.tagSet: TextStringEncoder(),
|
|
139
|
+
char.UniversalString.tagSet: TextStringEncoder(),
|
|
140
|
+
char.BMPString.tagSet: TextStringEncoder(),
|
|
141
|
+
# useful types
|
|
142
|
+
useful.ObjectDescriptor.tagSet: OctetStringEncoder(),
|
|
143
|
+
useful.GeneralizedTime.tagSet: OctetStringEncoder(),
|
|
144
|
+
useful.UTCTime.tagSet: OctetStringEncoder()
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
# Put in ambiguous & non-ambiguous types for faster codec lookup
|
|
148
|
+
TYPE_MAP = {
|
|
149
|
+
univ.Boolean.typeId: BooleanEncoder(),
|
|
150
|
+
univ.Integer.typeId: IntegerEncoder(),
|
|
151
|
+
univ.BitString.typeId: BitStringEncoder(),
|
|
152
|
+
univ.OctetString.typeId: OctetStringEncoder(),
|
|
153
|
+
univ.Null.typeId: NullEncoder(),
|
|
154
|
+
univ.ObjectIdentifier.typeId: ObjectIdentifierEncoder(),
|
|
155
|
+
univ.RelativeOID.typeId: RelativeOIDEncoder(),
|
|
156
|
+
univ.Enumerated.typeId: IntegerEncoder(),
|
|
157
|
+
univ.Real.typeId: RealEncoder(),
|
|
158
|
+
# Sequence & Set have same tags as SequenceOf & SetOf
|
|
159
|
+
univ.Set.typeId: SetEncoder(),
|
|
160
|
+
univ.SetOf.typeId: SequenceOfEncoder(),
|
|
161
|
+
univ.Sequence.typeId: SequenceEncoder(),
|
|
162
|
+
univ.SequenceOf.typeId: SequenceOfEncoder(),
|
|
163
|
+
univ.Choice.typeId: ChoiceEncoder(),
|
|
164
|
+
univ.Any.typeId: AnyEncoder(),
|
|
165
|
+
# character string types
|
|
166
|
+
char.UTF8String.typeId: OctetStringEncoder(),
|
|
167
|
+
char.NumericString.typeId: OctetStringEncoder(),
|
|
168
|
+
char.PrintableString.typeId: OctetStringEncoder(),
|
|
169
|
+
char.TeletexString.typeId: OctetStringEncoder(),
|
|
170
|
+
char.VideotexString.typeId: OctetStringEncoder(),
|
|
171
|
+
char.IA5String.typeId: OctetStringEncoder(),
|
|
172
|
+
char.GraphicString.typeId: OctetStringEncoder(),
|
|
173
|
+
char.VisibleString.typeId: OctetStringEncoder(),
|
|
174
|
+
char.GeneralString.typeId: OctetStringEncoder(),
|
|
175
|
+
char.UniversalString.typeId: OctetStringEncoder(),
|
|
176
|
+
char.BMPString.typeId: OctetStringEncoder(),
|
|
177
|
+
# useful types
|
|
178
|
+
useful.ObjectDescriptor.typeId: OctetStringEncoder(),
|
|
179
|
+
useful.GeneralizedTime.typeId: OctetStringEncoder(),
|
|
180
|
+
useful.UTCTime.typeId: OctetStringEncoder()
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class SingleItemEncoder(object):
|
|
185
|
+
|
|
186
|
+
TAG_MAP = TAG_MAP
|
|
187
|
+
TYPE_MAP = TYPE_MAP
|
|
188
|
+
|
|
189
|
+
def __init__(self, tagMap=_MISSING, typeMap=_MISSING, **ignored):
|
|
190
|
+
self._tagMap = tagMap if tagMap is not _MISSING else self.TAG_MAP
|
|
191
|
+
self._typeMap = typeMap if typeMap is not _MISSING else self.TYPE_MAP
|
|
192
|
+
|
|
193
|
+
def __call__(self, value, **options):
|
|
194
|
+
if not isinstance(value, base.Asn1Item):
|
|
195
|
+
raise error.PyAsn1Error(
|
|
196
|
+
'value is not valid (should be an instance of an ASN.1 Item)')
|
|
197
|
+
|
|
198
|
+
if LOG:
|
|
199
|
+
debug.scope.push(type(value).__name__)
|
|
200
|
+
LOG('encoder called for type %s '
|
|
201
|
+
'<%s>' % (type(value).__name__, value.prettyPrint()))
|
|
202
|
+
|
|
203
|
+
tagSet = value.tagSet
|
|
204
|
+
|
|
205
|
+
try:
|
|
206
|
+
concreteEncoder = self._typeMap[value.typeId]
|
|
207
|
+
|
|
208
|
+
except KeyError:
|
|
209
|
+
# use base type for codec lookup to recover untagged types
|
|
210
|
+
baseTagSet = tag.TagSet(
|
|
211
|
+
value.tagSet.baseTag, value.tagSet.baseTag)
|
|
212
|
+
|
|
213
|
+
try:
|
|
214
|
+
concreteEncoder = self._tagMap[baseTagSet]
|
|
215
|
+
|
|
216
|
+
except KeyError:
|
|
217
|
+
raise error.PyAsn1Error('No encoder for %s' % (value,))
|
|
218
|
+
|
|
219
|
+
if LOG:
|
|
220
|
+
LOG('using value codec %s chosen by '
|
|
221
|
+
'%s' % (concreteEncoder.__class__.__name__, tagSet))
|
|
222
|
+
|
|
223
|
+
pyObject = concreteEncoder.encode(value, self, **options)
|
|
224
|
+
|
|
225
|
+
if LOG:
|
|
226
|
+
LOG('encoder %s produced: '
|
|
227
|
+
'%s' % (type(concreteEncoder).__name__, repr(pyObject)))
|
|
228
|
+
debug.scope.pop()
|
|
229
|
+
|
|
230
|
+
return pyObject
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
class Encoder(object):
|
|
234
|
+
SINGLE_ITEM_ENCODER = SingleItemEncoder
|
|
235
|
+
|
|
236
|
+
def __init__(self, **options):
|
|
237
|
+
self._singleItemEncoder = self.SINGLE_ITEM_ENCODER(**options)
|
|
238
|
+
|
|
239
|
+
def __call__(self, pyObject, asn1Spec=None, **options):
|
|
240
|
+
return self._singleItemEncoder(
|
|
241
|
+
pyObject, asn1Spec=asn1Spec, **options)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
#: Turns ASN.1 object into a Python built-in type object(s).
|
|
245
|
+
#:
|
|
246
|
+
#: Takes any ASN.1 object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative)
|
|
247
|
+
#: walks all its components recursively and produces a Python built-in type or a tree
|
|
248
|
+
#: of those.
|
|
249
|
+
#:
|
|
250
|
+
#: One exception is that instead of :py:class:`dict`, the :py:class:`OrderedDict`
|
|
251
|
+
#: is used to preserve ordering of the components in ASN.1 SEQUENCE.
|
|
252
|
+
#:
|
|
253
|
+
#: Parameters
|
|
254
|
+
#: ----------
|
|
255
|
+
# asn1Value: any pyasn1 object (e.g. :py:class:`~pyasn1.type.base.PyAsn1Item` derivative)
|
|
256
|
+
#: pyasn1 object to encode (or a tree of them)
|
|
257
|
+
#:
|
|
258
|
+
#: Returns
|
|
259
|
+
#: -------
|
|
260
|
+
#: : :py:class:`object`
|
|
261
|
+
#: Python built-in type instance (or a tree of them)
|
|
262
|
+
#:
|
|
263
|
+
#: Raises
|
|
264
|
+
#: ------
|
|
265
|
+
#: ~pyasn1.error.PyAsn1Error
|
|
266
|
+
#: On encoding errors
|
|
267
|
+
#:
|
|
268
|
+
#: Examples
|
|
269
|
+
#: --------
|
|
270
|
+
#: Encode ASN.1 value object into native Python types
|
|
271
|
+
#:
|
|
272
|
+
#: .. code-block:: pycon
|
|
273
|
+
#:
|
|
274
|
+
#: >>> seq = SequenceOf(componentType=Integer())
|
|
275
|
+
#: >>> seq.extend([1, 2, 3])
|
|
276
|
+
#: >>> encode(seq)
|
|
277
|
+
#: [1, 2, 3]
|
|
278
|
+
#:
|
|
279
|
+
encode = SingleItemEncoder()
|
|
280
|
+
|
|
281
|
+
def __getattr__(attr: str):
|
|
282
|
+
if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
|
|
283
|
+
warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
|
|
284
|
+
return globals()[newAttr]
|
|
285
|
+
raise AttributeError(attr)
|