b4b50cc0c6
Wrap signature format in #ifdef LTC_SSH Update docs Code review fixes Replace strcmp/memcmp with XSTRCMP/XMEMCMP for check-source Fix for check-defines XSTRCMP/XMEMCMP != 0 GCC7.3 wants only literal strings for sprintf format Code review changes Rework SSH decoding and tests Fix encoding and tests COMPARE_TESTVECTOR macro Single return point in ssh_decode_sequence_multi Actually use XSTRNCPY rather than just defining it More code review fixes Code review tweaks Ensure it's not possible to read past buffer end Keep track of size remaining, not end pointer
46 lines
850 B
C
46 lines
850 B
C
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
|
|
*
|
|
* LibTomCrypt is a library that provides various cryptographic
|
|
* algorithms in a highly modular and flexible manner.
|
|
*
|
|
* The library is free for all purposes without any express
|
|
* guarantee it works.
|
|
*/
|
|
#include <tomcrypt_test.h>
|
|
|
|
int misc_test(void)
|
|
{
|
|
#ifdef LTC_HKDF
|
|
DO(hkdf_test());
|
|
#endif
|
|
#ifdef LTC_PKCS_5
|
|
DO(pkcs_5_test());
|
|
#endif
|
|
#ifdef LTC_PADDING
|
|
DO(padding_test());
|
|
#endif
|
|
#ifdef LTC_BASE64
|
|
DO(base64_test());
|
|
#endif
|
|
#ifdef LTC_BASE32
|
|
DO(base32_test());
|
|
#endif
|
|
#ifdef LTC_BASE16
|
|
DO(base16_test());
|
|
#endif
|
|
#ifdef LTC_ADLER32
|
|
DO(adler32_test());
|
|
#endif
|
|
#ifdef LTC_CRC32
|
|
DO(crc32_test());
|
|
#endif
|
|
#ifdef LTC_SSH
|
|
DO(ssh_test());
|
|
#endif
|
|
return 0;
|
|
}
|
|
|
|
/* ref: $Format:%D$ */
|
|
/* git commit: $Format:%H$ */
|
|
/* commit time: $Format:%ai$ */
|