Limit memory allocation of get_bytes to 1MB

If get_bytes() can pad unlimited, a RSA pub key could be crafted
that would allocate GB's of nulls, thereby forming a DoS-vector.
Merge pull request #116 from mvschaik/patch-1

Limit memory allocation of get_bytes to 1MB