void sha1_of_string(char* string, unsigned char* hash)
{
unsigned char hash_buffer[20];
sha1(string, strlen(string), hash_buffer);
for (int i = 0; i < 20; i++)
{
hash[i] = hash_buffer[i];
}
}
it should be:
void sha1_of_string(char* string, unsigned char* hash)
{
sha1(string, strlen(string), hash);
}
int buffer_size
=> size_t buffer_size
main
doesn't make any sense at all // calculates the sha1 hash of argv[1]
int main(int argc, char** argv)
{
if (argc != 2)
{
printf("usage: %s <string>\n", argv[0]);
return 1;
}
sha1_of_string(argv[1], (unsigned char*)argv[2]);
return 0;
}
void CCharacterCore::Tick(bool UseInput)
i have some rotation line