11 /* use configuration data */
12 #include <tomcrypt_custom.h>
22 /* max size of either a cipher/hash block or symmetric key [largest of the two] */
23 #define MAXBLOCKSIZE 128
25 /* descriptor table size */
28 /* error codes [will be expanded in future releases] */
30 CRYPT_OK=0, /* Result OK */
31 CRYPT_ERROR, /* Generic Error */
32 CRYPT_NOP, /* Not a failure but no operation was performed */
34 CRYPT_INVALID_KEYSIZE, /* Invalid key size given */
35 CRYPT_INVALID_ROUNDS, /* Invalid number of rounds */
36 CRYPT_FAIL_TESTVECTOR, /* Algorithm failed test vectors */
38 CRYPT_BUFFER_OVERFLOW, /* Not enough space for output */
39 CRYPT_INVALID_PACKET, /* Invalid input packet given */
41 CRYPT_INVALID_PRNGSIZE, /* Invalid number of bits for a PRNG */
42 CRYPT_ERROR_READPRNG, /* Could not read enough from PRNG */
44 CRYPT_INVALID_CIPHER, /* Invalid cipher specified */
45 CRYPT_INVALID_HASH, /* Invalid hash specified */
46 CRYPT_INVALID_PRNG, /* Invalid PRNG specified */
48 CRYPT_MEM, /* Out of memory */
50 CRYPT_PK_TYPE_MISMATCH, /* Not equivalent types of PK keys */
51 CRYPT_PK_NOT_PRIVATE, /* Requires a private PK key */
53 CRYPT_INVALID_ARG, /* Generic invalid argument */
54 CRYPT_FILE_NOTFOUND, /* File Not Found */
56 CRYPT_PK_INVALID_TYPE, /* Invalid type of PK key */
57 CRYPT_PK_INVALID_SYSTEM,/* Invalid PK system specified */
58 CRYPT_PK_DUP, /* Duplicate key already in key ring */
59 CRYPT_PK_NOT_FOUND, /* Key not found in keyring */
60 CRYPT_PK_INVALID_SIZE, /* Invalid size input for PK parameters */
62 CRYPT_INVALID_PRIME_SIZE,/* Invalid size of prime requested */
63 CRYPT_PK_INVALID_PADDING /* Invalid padding on input */
66 #include <tomcrypt_cfg.h>
67 #include <tomcrypt_macros.h>
68 #include <tomcrypt_cipher.h>
69 #include <tomcrypt_hash.h>
70 #include <tomcrypt_mac.h>
71 #include <tomcrypt_prng.h>
72 #include <tomcrypt_pk.h>
73 #include <tomcrypt_math.h>
74 #include <tomcrypt_misc.h>
75 #include <tomcrypt_argchk.h>
76 #include <tomcrypt_pkcs.h>
82 #endif /* TOMCRYPT_H_ */
85 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt.h,v $ */
86 /* $Revision: 1.20 $ */
87 /* $Date: 2006/11/26 01:45:14 $ */