angelos.lib.ssh.nacl

Module docstring.

class angelos.lib.ssh.nacl.BaseKey(key, box)

Bases: object

Base class for private/public keys.

property key

Key property.

class angelos.lib.ssh.nacl.NaClKey(key)

Bases: asyncssh.public_key.SSHKey

SSHKey for NaCl.

algorithm = b'angelos-tongues'
all_sig_algorithms = {b'angelos-tongues'}
classmethod decode_ssh_private(packet)

Decode private SSH key.

classmethod decode_ssh_public(packet)

Decode public SSH key.

encode_ssh_private()

Encode private SSH key.

encode_ssh_public()

Encode public SSH key.

static factory(keys)
classmethod make_private(private_value)

Produce a private NaCl key.

classmethod make_public(public_value)

Produce a public SSH key.

sig_algorithms = (b'angelos-tongues',)
sign_der(data, sig_algorithm)

Abstract method to compute a DER-encoded signature.

sign_ssh(data, sig_algorithm)

Abstract method to compute an SSH-encoded signature.

verify_der(data, sig_algorithm, sig)

Abstract method to verify a DER-encoded signature.

verify_ssh(data, sig_algorithm, sig)

Abstract method to verify an SSH-encoded signature.

class angelos.lib.ssh.nacl.NaClPrivateKey(key, box)

Bases: angelos.lib.ssh.nacl.BaseKey

Private key based on NaCl for asyncssh.

classmethod construct(seed)

Construct an NaCl public key.

classmethod generate()

Generate a new NaCl private key.

sign(data)

Sign a block of data.

property value

Verification key.

class angelos.lib.ssh.nacl.NaClPublicKey(key, box)

Bases: angelos.lib.ssh.nacl.BaseKey

Public key based on NaCl for asyncssh.

classmethod construct(verify)

Construct an NaCl public key.

property value

Verification key.

verify(data, sig)

Verify the signature on a block of data.

angelos.lib.ssh.nacl.make_known_hosts()

Produce a known hosts generator.