~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to contrib/pgcrypto/rijndael.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
1
/*
2
 
 * $PostgreSQL: pgsql/contrib/pgcrypto/rijndael.h,v 1.6 2008/05/17 01:28:21 adunstan Exp $ 
 
2
 * $PostgreSQL: pgsql/contrib/pgcrypto/rijndael.h,v 1.7 2009/06/11 14:48:52 momjian Exp $
3
3
 *
4
4
 *      $OpenBSD: rijndael.h,v 1.3 2001/05/09 23:01:32 markus Exp $ */
5
5
 
36
36
        int                     decrypt;
37
37
        u4byte          e_key[64];
38
38
        u4byte          d_key[64];
39
 
}       rijndael_ctx;
 
39
} rijndael_ctx;
40
40
 
41
41
 
42
42
/* 2. Standard interface for AES cryptographic routines                         */
51
51
 
52
52
/* conventional interface */
53
53
 
54
 
void            aes_set_key(rijndael_ctx * ctx, const uint8 *key, unsigned keybits, int enc);
55
 
void            aes_ecb_encrypt(rijndael_ctx * ctx, uint8 *data, unsigned len);
56
 
void            aes_ecb_decrypt(rijndael_ctx * ctx, uint8 *data, unsigned len);
57
 
void            aes_cbc_encrypt(rijndael_ctx * ctx, uint8 *iva, uint8 *data, unsigned len);
58
 
void            aes_cbc_decrypt(rijndael_ctx * ctx, uint8 *iva, uint8 *data, unsigned len);
 
54
void            aes_set_key(rijndael_ctx *ctx, const uint8 *key, unsigned keybits, int enc);
 
55
void            aes_ecb_encrypt(rijndael_ctx *ctx, uint8 *data, unsigned len);
 
56
void            aes_ecb_decrypt(rijndael_ctx *ctx, uint8 *data, unsigned len);
 
57
void            aes_cbc_encrypt(rijndael_ctx *ctx, uint8 *iva, uint8 *data, unsigned len);
 
58
void            aes_cbc_decrypt(rijndael_ctx *ctx, uint8 *iva, uint8 *data, unsigned len);
59
59
 
60
60
#endif   /* _RIJNDAEL_H_ */