pyca/cryptography — pull request #605 by reaperhulk (2014-02-13 06:05:16+00:00)
Title: Add RSA CRT Coefficients

These are used in most (all?) RSA implementations to substantially speed up operations. The names are sourced from OpenSSL but are relatively descriptive:

* `dmp1` means d mod (p-1)
* `dmq1` means d mod (q-1)
* `iqmp` is the multiplicative inverse of q modulo p (inverse q mod p)

We do some basic sanity checking on these in the constructor (`dmp1`/`dmq1` must be odd and all 3 must be smaller than the modulus), but do the actual arithmetic in the unit tests for the pkcs1 loader.