Package Crypto :: Package PublicKey :: Module RSA
[hide private]
[frames] | no frames]

Module RSA

RSA public-key cryptography algorithm.
Classes [hide private]
  _RSAobj
Class defining an actual RSA key.
  RSAImplementation
An RSA key factory.
Variables [hide private]
  generate = _impl.generate
Randomly generate a fresh, new RSA key object.
  construct = _impl.construct
Construct an RSA key object from a tuple of valid RSA components.
  importKey = _impl.importKey
Import an RSA key (public or private half), encoded in standard form.
  error = _impl.error
  algorithmIdentifier = DerSequence([b('\x06\x09\x2A\x86\x48\x86...
This is the ASN.1 DER object that qualifies an algorithm as compliant to PKCS#1 (that is, the standard RSA).
Variables Details [hide private]

generate

Randomly generate a fresh, new RSA key object.

See RSAImplementation.generate.

Value:
_impl.generate

construct

Construct an RSA key object from a tuple of valid RSA components.

See RSAImplementation.construct.

Value:
_impl.construct

importKey

Import an RSA key (public or private half), encoded in standard form.

See RSAImplementation.importKey.

Value:
_impl.importKey

algorithmIdentifier

This is the ASN.1 DER object that qualifies an algorithm as compliant to PKCS#1 (that is, the standard RSA).
Value:
DerSequence([b('\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x01\x01'), DerNul\
l().encode()]).encode()