Skip to content

Pure python, slow and standard implementation of PKCS #1 also knows as RSA

Notifications You must be signed in to change notification settings

bdauvergne/python-pkcs1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-pkcs1

https://travis-ci.org/bdauvergne/python-pkcs1.svg?branch=master

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 - integer<->byte string conversion
  • pkcs1.keys - RSA keys classes, naive RSA encryption
  • 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

About

Pure python, slow and standard implementation of PKCS #1 also knows as RSA

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages