OpenSSL BN math

Needed to fully populate e.g. backend RSA contexts from an
RSAPrivateKey.