Skip to main content

Python implementation of the RFC3447 or PKCS #1 version 2.0

Project description

This package implements the PKCS #1 v2.0 standard from RSA Laboratories. It aims at a full and tested coverage of the standard, maximum portability by using only pure python and external dependencies only for performance gains.

Performance are improved by using the gmpy package to compute modular exponentiation if it is present.

The package contains the following modules:

  • pkcs1.primitives - basic RSA exponentation, integer<->byte string conversion

  • pkcs1.primes - prime number generation

  • pkcs1.eme_pkcs1_v15 - PKCS#1 v1.5 encoding for encryption

  • pkcs1.emsa_pkcs1_v15 - PKCS#1 v1.5 encoding for signature

  • pkcs1.mgf - mask generation function number one

  • pkcs1.exceptions - specialized exceptions

  • pkcs1.rsaes_pkcs1_v15 - RSA encryption using PKCS#1 v1.5 padding

  • pkcs1.rsaes_oaep - RSA encryption using non-deterministic OAEP padding

  • pkcs1.rsassa_pkcs1_v15 - RSA signature using PKCS#1 v1.5 encoding

  • pkcs1.rsassa_pss - RSA signature using non-deterministic encoding

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkcs1-0.9.2.tar.gz (388.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page