I have a value stored as an unsigned char * (in C). This holds the SHA1 hash of a string. My goal is to cover the SHA1 key space.
Since I'm using
<openssl/evp.h> to generate the hashes, I end up with an unsigned char* holding the SHA1 value.
Now I want to iterate from that value till the end of the SHA1 key space. So if the value was a decimal int I would iterate with
i = <original_value> and
i++ till I reach the max possible value of the key space.
How do I do this over an unsigned char * value?