Skip to content
Snippets Groups Projects
Select Git revision
  • a986fa71015e84dc627a5ed1dcefe622d75b16f2
  • master default
  • x86_ghash
  • x86_poly
  • ppc-poly1305-multi
  • ppc-poly-multi-44
  • power7-chacha-fix
  • ppc-r64-44-n
  • ppc-r64-44
  • s390x-gief-fix
  • chacha_m4_fix
  • arm64-poly
  • poly_avx2
  • s390x-poly
  • ppc-poly
  • s390x-ghash-refactor
  • arm64-chacha
  • s390x-ecc-7748
  • s390x-ecc-mod
  • s390x-vf-fix
  • s390x-chacha
  • s390x-sha1
  • nettle_3.6_release_20200429
  • nettle_3.6rc3
  • nettle_3.6rc2
  • nettle_3.6rc1
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
42 results

cmac-test.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    md4-test.c 858 B
    #include "testutils.h"
    #include "md4.h"
    
    int
    test_main(void)
    {
      test_hash(&nettle_md4, LDATA(""),
    	    H("31d6cfe0d16ae931b73c59d7e0c089c0"));
      test_hash(&nettle_md4, LDATA("a"),
    	    H("bde52cb31de33e46245e05fbdbd6fb24"));
      test_hash(&nettle_md4, LDATA("abc"),
    	    H("a448017aaf21d8525fc10ae87aa6729d"));
      test_hash(&nettle_md4, LDATA("message digest"),
    	    H("d9130a8164549fe818874806e1c7014b"));
      test_hash(&nettle_md4, LDATA("abcdefghijklmnopqrstuvwxyz"),
    	    H("d79e1c308aa5bbcdeea8ed63df412da9"));
      test_hash(&nettle_md4,
    	    LDATA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
    		  "0123456789"),
    	    H("043f8582f241db351ce627e153e7f0e4"));
      test_hash(&nettle_md4,
    	    LDATA("12345678901234567890123456789012345678901234567890"
    		  "123456789012345678901234567890"),
    	    H("e33b4ddc9c38f2199c3e7b164fcc0536"));
      
      SUCCESS();
    }