OpenSSL BN math

Needed to fully populate e.g. backend RSA contexts from an
RSAPrivateKey.
Merge pull request #547 from public/bn-maths

OpenSSL BN math