Merge pull request #840 from reaperhulk/pkcs1-key-size-checks

some checks for PKCS1 keys being too small for the payload to be signed