pylibressl.rsa.keypair

Module Contents

Classes

RSAKeypair

RSA keypair container.

Functions

public_from_private(private_key)

Derive public key from private one.

class pylibressl.rsa.keypair.RSAKeypair(public_key=None, private_key=None)

Bases: object

RSA keypair container.

_set_one_key(self, key, is_public)
_set_pkey(self, public_key, private_key)
has_private_key(self)

Returns True if private key is present in keypair.

key_size(self)

Get key size (actually, modulus length) in bytes.

pylibressl.rsa.keypair.public_from_private(private_key)

Derive public key from private one.