Remove unneeded #includes.

This commit is contained in:
Dag-Erling Smørgrav 2016-09-17 16:05:31 +02:00
parent b9cf4fb835
commit 43587fe51a
12 changed files with 6 additions and 20 deletions

View file

@ -32,7 +32,6 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cryb/endian.h>

View file

@ -33,7 +33,6 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cryb/aes.h>

View file

@ -31,9 +31,8 @@
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
/* test our own code, not the compiler's */
#undef HAVE___BUILTIN_BSWAP16

View file

@ -33,7 +33,6 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cryb/endian.h>
#include <cryb/hash.h>

View file

@ -32,7 +32,6 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cryb/rc4.h>

View file

@ -33,10 +33,7 @@
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/rfc3986.h>

View file

@ -34,10 +34,7 @@
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cryb/rfc4648.h>

View file

@ -178,7 +178,7 @@ t_sha224_short_updates(char **desc CRYB_UNUSED, void *arg)
sha224_update(&ctx, vector->msg + i, 5);
sha224_update(&ctx, vector->msg + i, len - i);
sha224_final(&ctx, digest);
return (memcmp(digest, vector->digest, SHA224_DIGEST_LEN) == 0);
return (t_compare_mem(digest, vector->digest, SHA224_DIGEST_LEN));
}
#endif

View file

@ -189,7 +189,7 @@ t_sha384_short_updates(char **desc CRYB_UNUSED, void *arg)
sha384_update(&ctx, vector->msg + i, 5);
sha384_update(&ctx, vector->msg + i, len - i);
sha384_final(&ctx, digest);
return (memcmp(digest, vector->digest, SHA384_DIGEST_LEN) == 0);
return (t_compare_mem(digest, vector->digest, SHA384_DIGEST_LEN));
}
#endif

View file

@ -31,9 +31,8 @@
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cryb/string.h>

View file

@ -31,9 +31,8 @@
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#undef HAVE_STRLCMP
#include <cryb/strlcmp.h>

View file

@ -31,9 +31,8 @@
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include <cryb/wstring.h>