Skip to content
Snippets Groups Projects
Select Git revision
  • 7d87cfc3f5313daa8966c44bb7de34c9d6787fe2
  • master default
  • chacha-poly1305-test
  • rsa-crt-hardening
  • chacha96
  • fat-library
  • versioned-symbols
  • curve25519
  • dsa-reorg
  • aead-api
  • set_key-changes
  • poly1305
  • aes-reorg
  • nettle-2.7-fixes
  • size_t-changes
  • ecc-support
  • experimental-20050201
  • lsh-1.4.2
  • 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
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
  • nettle_2.2_release_20110711
  • nettle_2.1_release_20100725
  • camellia_32bit_20100720
  • nettle_2.0_release_20090608
  • nettle_1.15_release_20061128
  • after_experimental_merge_20060516
  • head_before_experimental_merge_20060516
38 results

md4-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();
    }