Skip to content
Snippets Groups Projects
Select Git revision
  • e7097540cf2c99abbc0983980e3796ced35e6935
  • master default protected
  • 9.0
  • 8.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
41 results

macros.h

Blame
  • sha256-test.c 671 B
    #include "testutils.h"
    #include "sha.h"
    
    int
    test_main(void)
    {
      test_hash(&nettle_sha256, 3, "abc",
    	    H("ba7816bf8f01cfea 414140de5dae2223"
    	      "b00361a396177a9c b410ff61f20015ad"));
    
      test_hash(&nettle_sha256, 56,
    	    "abcdbcdecdefdefgefghfghighij"
    	    "hijkijkljklmklmnlmnomnopnopq",
    	    H("248d6a61d20638b8 e5c026930c3e6039"
    	      "a33ce45964ff2167 f6ecedd419db06c1"));
    
      test_hash(&nettle_sha256, 112,
    	    "abcdefghbcdefghicdefghijdefg"
    	    "hijkefghijklfghijklmghijklmn"
    	    "hijklmnoijklmnopjklmnopqklmn"
    	    "opqrlmnopqrsmnopqrstnopqrstu",
    	    H("cf5b16a778af8380 036ce59e7b049237"
    	      "0b249b11e8f07a51 afac45037afee9d1"));
    
        SUCCESS();
    }