~ubuntu-branches/ubuntu/trusty/gnutls26/trusty-security

« back to all changes in this revision

Viewing changes to tests/gc.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2010-04-22 19:29:52 UTC
  • mto: (12.4.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20100422192952-gbj6cvaan8e4ejck
Tags: upstream-2.9.10
ImportĀ upstreamĀ versionĀ 2.9.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004, 2005, 2008 Free Software Foundation
 
2
 * Copyright (C) 2004, 2005, 2008, 2010 Free Software Foundation, Inc.
3
3
 *
4
4
 * This file is part of GNUTLS.
5
5
 *
49
49
    {
50
50
      if (memcmp (digest, "\x3c\xb0\x9d\x83\x28\x01\xef\xc0"
51
51
                  "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0)
52
 
        success ("_gnutls_hmac_fast(MD5) OK\n");
 
52
        {
 
53
          if (debug)
 
54
            success ("_gnutls_hmac_fast(MD5) OK\n");
 
55
        }
53
56
      else
54
57
        {
55
58
          hexprint (digest, 16);
67
70
      if (memcmp (digest, "\x58\x93\x7a\x58\xfe\xea\x82\xf8"
68
71
                  "\x0e\x64\x62\x01\x40\x2b\x2c\xed\x5d\x54\xc1\xfa",
69
72
                  20) == 0)
70
 
        success ("_gnutls_hmac_fast(SHA1) OK\n");
 
73
        {
 
74
          if (debug)
 
75
            success ("_gnutls_hmac_fast(SHA1) OK\n");
 
76
        }
71
77
      else
72
78
        {
73
79
          hexprint (digest, 20);
82
88
    {
83
89
      if (memcmp (digest, "\x09\xb7\x85\x57\xdd\xf6\x07\x15"
84
90
                  "\x1c\x52\x34\xde\xba\x5c\xdc\x59", 16) == 0)
85
 
        success ("_gnutls_pkcs5_pbkdf2_sha1() OK\n");
 
91
        {
 
92
          if (debug)
 
93
            success ("_gnutls_pkcs5_pbkdf2_sha1() OK\n");
 
94
        }
86
95
      else
87
96
        {
88
97
          hexprint (digest, 16);