GaloisInc/RSA — pull request #2 by rekado (2012-04-22 03:49:45+00:00)
Title: Crypto pubkey types

This is a set of changes to use the RSA PublicKey / PrivateKey definitions from the crypto-pubkey-types package for improved interoperability with other crypto and certificate modules.

I converted `Int64` to `Int` with `fromIntegral` where necessary and changed type signatures where required to accept `Int` instead of `Int64` (public_size/private_size are `Int`s, not `Int64` in crypto-pubkey-types).

It would probably be cleaner to replace all instances of `Int64` with `Int`, but I think that this change set is less problematic. The test suite passes. (Previous problems with the test suite were a consequence of a bug in `monadcryptorandom` which has meanwhile been fixed.)