#include #include #include #include #include // MEMCPY ET MEMCMP #include "md5_small.c" int main() { unsigned int t=8; unsigned int hash_byte_length; unsigned char m[] = "coucouaezrezrez"; unsigned int taille_message=sizeof(m); printf("taille mess = %u \n", taille_message); //Calcul hash_byte_lenght nombre minimal octects contenant t if (t%8 !=0){ hash_byte_length=t/8 +1; } else { hash_byte_length=t/8; } unsigned char *hash = malloc(hash_byte_length*sizeof(*hash)); //printf("taille char =%lu", sizeof(char)); //printf("hash_byte_length %u", hash_byte_length); //printf("taille_a_hash %u", taille_a_hash); //printf("\n"); md5_small(hash, hash_byte_length, t, m, taille_message); printf("x0 = "); for (int i=0; i