💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.serialization.ssh captured on 2023-01-29 at 04:20:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

🚧 View Differences

-=-=-=-=-=-=-

Back to module index

Go to module by name

cryptography.hazmat.primitives.serialization

cryptography.hazmat.primitives

cryptography.hazmat

cryptography

cryptography.hazmat.primitives.serialization.ssh

This module has no docstring.

Classes

Cipher

decryptor(self)
encryptor(self)

Encoding

An enumeration.
DER = <Encoding.DER: 'DER'>
OpenSSH = <Encoding.OpenSSH: 'OpenSSH'>
PEM = <Encoding.PEM: 'PEM'>
Raw = <Encoding.Raw: 'Raw'>
SMIME = <Encoding.SMIME: 'S/MIME'>
X962 = <Encoding.X962: 'ANSI X9.62'>

KeySerializationEncryption

NoEncryption

PrivateFormat

An enumeration.
OpenSSH = <PrivateFormat.OpenSSH: 'OpenSSH'>
PKCS12 = <PrivateFormat.PKCS12: 'PKCS12'>
PKCS8 = <PrivateFormat.PKCS8: 'PKCS8'>
Raw = <PrivateFormat.Raw: 'Raw'>
TraditionalOpenSSL = <PrivateFormat.TraditionalOpenSSL: 'TraditionalOpenSSL'>

PublicFormat

An enumeration.
CompressedPoint = <PublicFormat.CompressedPoint: 'X9.62 Compressed Point'>
OpenSSH = <PublicFormat.OpenSSH: 'OpenSSH'>
PKCS1 = <PublicFormat.PKCS1: 'Raw PKCS#1'>
Raw = <PublicFormat.Raw: 'Raw'>
SubjectPublicKeyInfo = <PublicFormat.SubjectPublicKeyInfo: 'X.509 subjectPublicKeyInfo with PKCS#1'>
UncompressedPoint = <PublicFormat.UncompressedPoint: 'X9.62 Uncompressed Point'>

UnsupportedAlgorithm

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Functions

load_ssh_private_key

load_ssh_private_key(data: bytes, password: Optional[bytes], backend: Any = None) -> Union[cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey, cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey, cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey, cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PrivateKey]

  Load private key from OpenSSH custom encoding.

load_ssh_public_key

load_ssh_public_key(data: bytes, backend: Any = None) -> Union[cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey, cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey, cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey, cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PublicKey]

  Load public key from OpenSSH one-line format.

serialize_ssh_public_key

serialize_ssh_public_key(public_key: Union[cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey, cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey, cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey, cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PublicKey]) -> bytes

  One-line public key format for OpenSSH

Modules

algorithms

binascii

dsa

ec

ed25519

modes

os

re

rsa

typing

utils