~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to contrib/pgcrypto/sha2.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $PostgreSQL: pgsql/contrib/pgcrypto/sha2.h,v 1.4 2006/07/13 04:15:25 neilc Exp $ */
 
1
/*      $PostgreSQL: pgsql/contrib/pgcrypto/sha2.h,v 1.5 2009/06/11 14:48:52 momjian Exp $ */
2
2
/*      $OpenBSD: sha2.h,v 1.2 2004/04/28 23:11:57 millert Exp $        */
3
3
 
4
4
/*
70
70
        uint32          state[8];
71
71
        uint64          bitcount;
72
72
        uint8           buffer[SHA256_BLOCK_LENGTH];
73
 
}       SHA256_CTX;
 
73
} SHA256_CTX;
74
74
typedef struct _SHA512_CTX
75
75
{
76
76
        uint64          state[8];
77
77
        uint64          bitcount[2];
78
78
        uint8           buffer[SHA512_BLOCK_LENGTH];
79
 
}       SHA512_CTX;
 
79
} SHA512_CTX;
80
80
 
81
81
typedef SHA256_CTX SHA224_CTX;
82
82
typedef SHA512_CTX SHA384_CTX;