__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# This file is part of pyasn1-modules.
#
# Copyright (c) 2017, Danielle Madeley <danielle@madeley.id.au>
# License: http://snmplabs.com/pyasn1/license.html
#
# Modified by Russ Housley to add maps for use with opentypes.
#
# Algorithms and Identifiers for Internet X.509 Certificates and CRLs
#
# Derived from RFC 3279:
# https://www.rfc-editor.org/rfc/rfc3279.txt
#
from pyasn1.type import namedtype
from pyasn1.type import namedval
from pyasn1.type import univ
from pyasn1_modules import rfc5280
def _OID(*components):
output = []
for x in tuple(components):
if isinstance(x, univ.ObjectIdentifier):
output.extend(list(x))
else:
output.append(int(x))
return univ.ObjectIdentifier(output)
md2 = _OID(1, 2, 840, 113549, 2, 2)
md5 = _OID(1, 2, 840, 113549, 2, 5)
id_sha1 = _OID(1, 3, 14, 3, 2, 26)
id_dsa = _OID(1, 2, 840, 10040, 4, 1)
class DSAPublicKey(univ.Integer):
pass
class Dss_Parms(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('p', univ.Integer()),
namedtype.NamedType('q', univ.Integer()),
namedtype.NamedType('g', univ.Integer())
)
id_dsa_with_sha1 = _OID(1, 2, 840, 10040, 4, 3)
class Dss_Sig_Value(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('r', univ.Integer()),
namedtype.NamedType('s', univ.Integer())
)
pkcs_1 = _OID(1, 2, 840, 113549, 1, 1)
rsaEncryption = _OID(pkcs_1, 1)
md2WithRSAEncryption = _OID(pkcs_1, 2)
md5WithRSAEncryption = _OID(pkcs_1, 4)
sha1WithRSAEncryption = _OID(pkcs_1, 5)
class RSAPublicKey(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('modulus', univ.Integer()),
namedtype.NamedType('publicExponent', univ.Integer())
)
dhpublicnumber = _OID(1, 2, 840, 10046, 2, 1)
class DHPublicKey(univ.Integer):
pass
class ValidationParms(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('seed', univ.BitString()),
namedtype.NamedType('pgenCounter', univ.Integer())
)
class DomainParameters(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('p', univ.Integer()),
namedtype.NamedType('g', univ.Integer()),
namedtype.NamedType('q', univ.Integer()),
namedtype.OptionalNamedType('j', univ.Integer()),
namedtype.OptionalNamedType('validationParms', ValidationParms())
)
id_keyExchangeAlgorithm = _OID(2, 16, 840, 1, 101, 2, 1, 1, 22)
class KEA_Parms_Id(univ.OctetString):
pass
ansi_X9_62 = _OID(1, 2, 840, 10045)
class FieldID(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('fieldType', univ.ObjectIdentifier()),
namedtype.NamedType('parameters', univ.Any())
)
id_ecSigType = _OID(ansi_X9_62, 4)
ecdsa_with_SHA1 = _OID(id_ecSigType, 1)
class ECDSA_Sig_Value(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('r', univ.Integer()),
namedtype.NamedType('s', univ.Integer())
)
id_fieldType = _OID(ansi_X9_62, 1)
prime_field = _OID(id_fieldType, 1)
class Prime_p(univ.Integer):
pass
characteristic_two_field = _OID(id_fieldType, 2)
class Characteristic_two(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('m', univ.Integer()),
namedtype.NamedType('basis', univ.ObjectIdentifier()),
namedtype.NamedType('parameters', univ.Any())
)
id_characteristic_two_basis = _OID(characteristic_two_field, 3)
gnBasis = _OID(id_characteristic_two_basis, 1)
tpBasis = _OID(id_characteristic_two_basis, 2)
class Trinomial(univ.Integer):
pass
ppBasis = _OID(id_characteristic_two_basis, 3)
class Pentanomial(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('k1', univ.Integer()),
namedtype.NamedType('k2', univ.Integer()),
namedtype.NamedType('k3', univ.Integer())
)
class FieldElement(univ.OctetString):
pass
class ECPoint(univ.OctetString):
pass
class Curve(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('a', FieldElement()),
namedtype.NamedType('b', FieldElement()),
namedtype.OptionalNamedType('seed', univ.BitString())
)
class ECPVer(univ.Integer):
namedValues = namedval.NamedValues(
('ecpVer1', 1)
)
class ECParameters(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('version', ECPVer()),
namedtype.NamedType('fieldID', FieldID()),
namedtype.NamedType('curve', Curve()),
namedtype.NamedType('base', ECPoint()),
namedtype.NamedType('order', univ.Integer()),
namedtype.OptionalNamedType('cofactor', univ.Integer())
)
class EcpkParameters(univ.Choice):
componentType = namedtype.NamedTypes(
namedtype.NamedType('ecParameters', ECParameters()),
namedtype.NamedType('namedCurve', univ.ObjectIdentifier()),
namedtype.NamedType('implicitlyCA', univ.Null())
)
id_publicKeyType = _OID(ansi_X9_62, 2)
id_ecPublicKey = _OID(id_publicKeyType, 1)
ellipticCurve = _OID(ansi_X9_62, 3)
c_TwoCurve = _OID(ellipticCurve, 0)
c2pnb163v1 = _OID(c_TwoCurve, 1)
c2pnb163v2 = _OID(c_TwoCurve, 2)
c2pnb163v3 = _OID(c_TwoCurve, 3)
c2pnb176w1 = _OID(c_TwoCurve, 4)
c2tnb191v1 = _OID(c_TwoCurve, 5)
c2tnb191v2 = _OID(c_TwoCurve, 6)
c2tnb191v3 = _OID(c_TwoCurve, 7)
c2onb191v4 = _OID(c_TwoCurve, 8)
c2onb191v5 = _OID(c_TwoCurve, 9)
c2pnb208w1 = _OID(c_TwoCurve, 10)
c2tnb239v1 = _OID(c_TwoCurve, 11)
c2tnb239v2 = _OID(c_TwoCurve, 12)
c2tnb239v3 = _OID(c_TwoCurve, 13)
c2onb239v4 = _OID(c_TwoCurve, 14)
c2onb239v5 = _OID(c_TwoCurve, 15)
c2pnb272w1 = _OID(c_TwoCurve, 16)
c2pnb304w1 = _OID(c_TwoCurve, 17)
c2tnb359v1 = _OID(c_TwoCurve, 18)
c2pnb368w1 = _OID(c_TwoCurve, 19)
c2tnb431r1 = _OID(c_TwoCurve, 20)
primeCurve = _OID(ellipticCurve, 1)
prime192v1 = _OID(primeCurve, 1)
prime192v2 = _OID(primeCurve, 2)
prime192v3 = _OID(primeCurve, 3)
prime239v1 = _OID(primeCurve, 4)
prime239v2 = _OID(primeCurve, 5)
prime239v3 = _OID(primeCurve, 6)
prime256v1 = _OID(primeCurve, 7)
# Map of Algorithm Identifier OIDs to Parameters added to the
# ones in rfc5280.py. Do not add OIDs with absent paramaters.
_algorithmIdentifierMapUpdate = {
md2: univ.Null(""),
md5: univ.Null(""),
id_sha1: univ.Null(""),
id_dsa: Dss_Parms(),
rsaEncryption: univ.Null(""),
md2WithRSAEncryption: univ.Null(""),
md5WithRSAEncryption: univ.Null(""),
sha1WithRSAEncryption: univ.Null(""),
dhpublicnumber: DomainParameters(),
id_keyExchangeAlgorithm: KEA_Parms_Id(),
id_ecPublicKey: EcpkParameters(),
}
rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 65 B | 0644 |
|
| pem.py | File | 2.01 KB | 0644 |
|
| rfc1155.py | File | 2.62 KB | 0644 |
|
| rfc1157.py | File | 3.47 KB | 0644 |
|
| rfc1901.py | File | 646 B | 0644 |
|
| rfc1902.py | File | 3.62 KB | 0644 |
|
| rfc1905.py | File | 4.72 KB | 0644 |
|
| rfc2251.py | File | 26.3 KB | 0644 |
|
| rfc2314.py | File | 1.28 KB | 0644 |
|
| rfc2315.py | File | 9.44 KB | 0644 |
|
| rfc2437.py | File | 2.56 KB | 0644 |
|
| rfc2459.py | File | 48.83 KB | 0644 |
|
| rfc2511.py | File | 10.11 KB | 0644 |
|
| rfc2560.py | File | 8.21 KB | 0644 |
|
| rfc2631.py | File | 1.19 KB | 0644 |
|
| rfc2634.py | File | 9.2 KB | 0644 |
|
| rfc2985.py | File | 14.02 KB | 0644 |
|
| rfc2986.py | File | 1.85 KB | 0644 |
|
| rfc3114.py | File | 1.92 KB | 0644 |
|
| rfc3161.py | File | 4.16 KB | 0644 |
|
| rfc3274.py | File | 1.63 KB | 0644 |
|
| rfc3279.py | File | 6.65 KB | 0644 |
|
| rfc3280.py | File | 45.53 KB | 0644 |
|
| rfc3281.py | File | 9.63 KB | 0644 |
|
| rfc3412.py | File | 1.91 KB | 0644 |
|
| rfc3414.py | File | 1.14 KB | 0644 |
|
| rfc3447.py | File | 1.57 KB | 0644 |
|
| rfc3560.py | File | 1.78 KB | 0644 |
|
| rfc3565.py | File | 1.4 KB | 0644 |
|
| rfc3709.py | File | 6.32 KB | 0644 |
|
| rfc3770.py | File | 1.7 KB | 0644 |
|
| rfc3779.py | File | 3.18 KB | 0644 |
|
| rfc3852.py | File | 19.63 KB | 0644 |
|
| rfc4043.py | File | 1.04 KB | 0644 |
|
| rfc4055.py | File | 10.15 KB | 0644 |
|
| rfc4073.py | File | 1.6 KB | 0644 |
|
| rfc4108.py | File | 10.35 KB | 0644 |
|
| rfc4210.py | File | 27.8 KB | 0644 |
|
| rfc4211.py | File | 11.83 KB | 0644 |
|
| rfc4334.py | File | 1.55 KB | 0644 |
|
| rfc4985.py | File | 961 B | 0644 |
|
| rfc5035.py | File | 4.42 KB | 0644 |
|
| rfc5083.py | File | 1.84 KB | 0644 |
|
| rfc5084.py | File | 2.79 KB | 0644 |
|
| rfc5208.py | File | 1.4 KB | 0644 |
|
| rfc5280.py | File | 50.04 KB | 0644 |
|
| rfc5480.py | File | 4.72 KB | 0644 |
|
| rfc5649.py | File | 830 B | 0644 |
|
| rfc5652.py | File | 20.95 KB | 0644 |
|
| rfc5751.py | File | 3.12 KB | 0644 |
|
| rfc5755.py | File | 11.8 KB | 0644 |
|
| rfc5913.py | File | 1.13 KB | 0644 |
|
| rfc5914.py | File | 3.63 KB | 0644 |
|
| rfc5915.py | File | 1.03 KB | 0644 |
|
| rfc5916.py | File | 800 B | 0644 |
|
| rfc5917.py | File | 1.48 KB | 0644 |
|
| rfc5924.py | File | 425 B | 0644 |
|
| rfc5934.py | File | 23.24 KB | 0644 |
|
| rfc5940.py | File | 1.58 KB | 0644 |
|
| rfc5958.py | File | 2.59 KB | 0644 |
|
| rfc5990.py | File | 5.38 KB | 0644 |
|
| rfc6010.py | File | 2.29 KB | 0644 |
|
| rfc6019.py | File | 1.06 KB | 0644 |
|
| rfc6031.py | File | 11.85 KB | 0644 |
|
| rfc6032.py | File | 1.9 KB | 0644 |
|
| rfc6120.py | File | 818 B | 0644 |
|
| rfc6170.py | File | 409 B | 0644 |
|
| rfc6187.py | File | 489 B | 0644 |
|
| rfc6210.py | File | 1.03 KB | 0644 |
|
| rfc6211.py | File | 2.2 KB | 0644 |
|
| rfc6402-1.py | File | 16.65 KB | 0644 |
|
| rfc6402.py | File | 16.75 KB | 0644 |
|
| rfc6482.py | File | 2.04 KB | 0644 |
|
| rfc6486.py | File | 1.87 KB | 0644 |
|
| rfc6487.py | File | 472 B | 0644 |
|
| rfc6664.py | File | 4.17 KB | 0644 |
|
| rfc6955.py | File | 2.75 KB | 0644 |
|
| rfc6960.py | File | 7.73 KB | 0644 |
|
| rfc7030.py | File | 1.41 KB | 0644 |
|
| rfc7191.py | File | 6.9 KB | 0644 |
|
| rfc7229.py | File | 743 B | 0644 |
|
| rfc7292.py | File | 8.28 KB | 0644 |
|
| rfc7296.py | File | 885 B | 0644 |
|
| rfc7508.py | File | 2.13 KB | 0644 |
|
| rfc7585.py | File | 1.05 KB | 0644 |
|
| rfc7633.py | File | 841 B | 0644 |
|
| rfc7773.py | File | 1.28 KB | 0644 |
|
| rfc7894-1.py | File | 2.73 KB | 0644 |
|
| rfc7894.py | File | 2.7 KB | 0644 |
|
| rfc7906.py | File | 18.48 KB | 0644 |
|
| rfc7914.py | File | 1.46 KB | 0644 |
|
| rfc8017.py | File | 4.08 KB | 0644 |
|
| rfc8018.py | File | 6.02 KB | 0644 |
|
| rfc8103.py | File | 1017 B | 0644 |
|
| rfc8209.py | File | 393 B | 0644 |
|
| rfc8226.py | File | 4.19 KB | 0644 |
|
| rfc8358.py | File | 1.11 KB | 0644 |
|
| rfc8360.py | File | 1.05 KB | 0644 |
|
| rfc8398.py | File | 1.16 KB | 0644 |
|
| rfc8410.py | File | 971 B | 0644 |
|
| rfc8418.py | File | 1.08 KB | 0644 |
|
| rfc8419.py | File | 1.66 KB | 0644 |
|
| rfc8479.py | File | 1.12 KB | 0644 |
|
| rfc8494.py | File | 2.31 KB | 0644 |
|
| rfc8520.py | File | 1.46 KB | 0644 |
|
| rfc8619.py | File | 1.11 KB | 0644 |
|
| rfc8649.py | File | 982 B | 0644 |
|