/usr/lib/python3.9/site-packages/dns/dnssecalgs/__pycache__
NameSizeModeActions
base.cpython-39.opt-1.pyc37550644editdlrm
base.cpython-39.pyc37550644editdlrm
cryptography.cpython-39.opt-1.pyc27160644editdlrm
cryptography.cpython-39.pyc27160644editdlrm
dsa.cpython-39.opt-1.pyc37630644editdlrm
dsa.cpython-39.pyc37630644editdlrm
ecdsa.cpython-39.opt-1.pyc38190644editdlrm
ecdsa.cpython-39.pyc38190644editdlrm
eddsa.cpython-39.opt-1.pyc29970644editdlrm
eddsa.cpython-39.pyc29970644editdlrm
rsa.cpython-39.opt-1.pyc48440644editdlrm
rsa.cpython-39.pyc48440644editdlrm
__init__.cpython-39.opt-1.pyc37100644editdlrm
__init__.cpython-39.pyc37100644editdlrm
Edit: /usr/lib/python3.9/site-packages/dns/dnssecalgs/__pycache__/base.cpython-39.pyc (3755B)
a àMÒeŽ ã@sˆddlmZmZddlmZmZmZddlZddl Zddl m Z ddl m Z ddlmZddlmZGdd „d eƒZGd d „d eƒZdS) é)ÚABCÚabstractmethod)ÚAnyÚOptionalÚTypeN)Ú Algorithm)ÚAlgorithmKeyMismatch)ÚDNSKEY)ÚFlagc@sÂeZdZUeed<eeddœdd„ƒZeeeddœdd„ƒZ eed œd d „ƒZ e e ddœd d „ƒZ ejdfeee dœdd„Ze ee ddœdd„ƒƒZe eeddœdd„ƒƒZeed œdd„ƒZdS)ÚGenericPublicKeyÚ algorithmN©ÚkeyÚreturncCsdS©N©©Úselfrrrú7/usr/lib/python3.9/site-packages/dns/dnssecalgs/base.pyÚ__init__szGenericPublicKey.__init__)Ú signatureÚdatarcCsdS)zVerify signed DNSSEC dataNr)rrrrrrÚverifyszGenericPublicKey.verify©rcCsdS)zEncode key as bytes for DNSKEYNr©rrrrÚencode_key_bytessz!GenericPublicKey.encode_key_bytescCs|j|jkrt‚dSr)r r©ÚclsrrrrÚ!_ensure_algorithm_key_combinations z2GenericPublicKey._ensure_algorithm_key_combinationé)ÚflagsÚprotocolrcCs"ttjjtjj|||j| ¡d�S)zReturn public key as DNSKEY)ZrdclassZrdtyper r!r r)r ÚdnsZ rdataclassÚINZ rdatatyper r)rr r!rrrÚ to_dnskey súzGenericPublicKey.to_dnskeycCsdS)zCreate public key from DNSKEYNrrrrrÚ from_dnskey+szGenericPublicKey.from_dnskey)Ú public_pemrcCsdS)zXCreate public key from PEM-encoded SubjectPublicKeyInfo as specified in RFC 5280Nr)rr&rrrÚfrom_pem0szGenericPublicKey.from_pemcCsdS)zVReturn public-key as PEM-encoded SubjectPublicKeyInfo as specified in RFC 5280NrrrrrÚto_pem6szGenericPublicKey.to_pem)Ú__name__Ú __module__Ú __qualname__rÚ__annotations__rrrÚbytesrrÚ classmethodr rr ZZONEÚintr$r%r'r(rrrrr s$  r c@s’eZdZUeeed<eeddœdd„ƒZede e e dœdd „ƒZ ed d œd d „ƒZ e ede ee ddœdd„ƒƒZedee e dœdd„ƒZdS)ÚGenericPrivateKeyZ public_clsNr cCsdSrrrrrrr?szGenericPrivateKey.__init__F)rrrcCsdS)zSign DNSSEC dataNr)rrrrrrÚsignCszGenericPrivateKey.signr rcCsdS)zReturn public key instanceNrrrrrÚ public_keyGszGenericPrivateKey.public_key)Ú private_pemÚpasswordrcCsdS)z*Create private key from PEM-encoded PKCS#8Nr)rr3r4rrrr'KszGenericPrivateKey.from_pem)r4rcCsdS)z(Return private key as PEM-encoded PKCS#8Nr)rr4rrrr(RszGenericPrivateKey.to_pem)F)N)N)r)r*r+rr r,rrrr-Úboolr1r2r.rr'r(rrrrr0<s  ÿþr0)ÚabcrrÚtypingrrrZdns.rdataclassr"Z dns.rdatatypeZdns.dnssectypesrZ dns.exceptionrZdns.rdtypes.ANY.DNSKEYr Zdns.rdtypes.dnskeybaser r r0rrrrÚs    0