TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tomcrypt.h File Reference
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <limits.h>
#include "tomcrypt_custom.h"
#include "tomcrypt_cfg.h"
#include "tomcrypt_macros.h"
#include "tomcrypt_cipher.h"
#include "tomcrypt_hash.h"
#include "tomcrypt_mac.h"
#include "tomcrypt_prng.h"
#include "tomcrypt_pk.h"
#include "tomcrypt_math.h"
#include "tomcrypt_misc.h"
#include "tomcrypt_argchk.h"
#include "tomcrypt_pkcs.h"
+ Include dependency graph for tomcrypt.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRYPT   0x0117
 
#define SCRYPT   "1.17"
 
#define MAXBLOCKSIZE   128
 
#define TAB_SIZE   32
 

Enumerations

enum  {
  CRYPT_OK =0, CRYPT_ERROR, CRYPT_NOP, CRYPT_INVALID_KEYSIZE,
  CRYPT_INVALID_ROUNDS, CRYPT_FAIL_TESTVECTOR, CRYPT_BUFFER_OVERFLOW, CRYPT_INVALID_PACKET,
  CRYPT_INVALID_PRNGSIZE, CRYPT_ERROR_READPRNG, CRYPT_INVALID_CIPHER, CRYPT_INVALID_HASH,
  CRYPT_INVALID_PRNG, CRYPT_MEM, CRYPT_PK_TYPE_MISMATCH, CRYPT_PK_NOT_PRIVATE,
  CRYPT_INVALID_ARG, CRYPT_FILE_NOTFOUND, CRYPT_PK_INVALID_TYPE, CRYPT_PK_INVALID_SYSTEM,
  CRYPT_PK_DUP, CRYPT_PK_NOT_FOUND, CRYPT_PK_INVALID_SIZE, CRYPT_INVALID_PRIME_SIZE,
  CRYPT_PK_INVALID_PADDING
}
 

Macro Definition Documentation

#define CRYPT   0x0117
#define MAXBLOCKSIZE   128
#define SCRYPT   "1.17"
#define TAB_SIZE   32

Enumeration Type Documentation

anonymous enum
Enumerator
CRYPT_OK 
CRYPT_ERROR 
CRYPT_NOP 
CRYPT_INVALID_KEYSIZE 
CRYPT_INVALID_ROUNDS 
CRYPT_FAIL_TESTVECTOR 
CRYPT_BUFFER_OVERFLOW 
CRYPT_INVALID_PACKET 
CRYPT_INVALID_PRNGSIZE 
CRYPT_ERROR_READPRNG 
CRYPT_INVALID_CIPHER 
CRYPT_INVALID_HASH 
CRYPT_INVALID_PRNG 
CRYPT_MEM 
CRYPT_PK_TYPE_MISMATCH 
CRYPT_PK_NOT_PRIVATE 
CRYPT_INVALID_ARG 
CRYPT_FILE_NOTFOUND 
CRYPT_PK_INVALID_TYPE 
CRYPT_PK_INVALID_SYSTEM 
CRYPT_PK_DUP 
CRYPT_PK_NOT_FOUND 
CRYPT_PK_INVALID_SIZE 
CRYPT_INVALID_PRIME_SIZE 
CRYPT_PK_INVALID_PADDING 
29  {
30  CRYPT_OK=0, /* Result OK */
31  CRYPT_ERROR, /* Generic Error */
32  CRYPT_NOP, /* Not a failure but no operation was performed */
33 
34  CRYPT_INVALID_KEYSIZE, /* Invalid key size given */
35  CRYPT_INVALID_ROUNDS, /* Invalid number of rounds */
36  CRYPT_FAIL_TESTVECTOR, /* Algorithm failed test vectors */
37 
38  CRYPT_BUFFER_OVERFLOW, /* Not enough space for output */
39  CRYPT_INVALID_PACKET, /* Invalid input packet given */
40 
41  CRYPT_INVALID_PRNGSIZE, /* Invalid number of bits for a PRNG */
42  CRYPT_ERROR_READPRNG, /* Could not read enough from PRNG */
43 
44  CRYPT_INVALID_CIPHER, /* Invalid cipher specified */
45  CRYPT_INVALID_HASH, /* Invalid hash specified */
46  CRYPT_INVALID_PRNG, /* Invalid PRNG specified */
47 
48  CRYPT_MEM, /* Out of memory */
49 
50  CRYPT_PK_TYPE_MISMATCH, /* Not equivalent types of PK keys */
51  CRYPT_PK_NOT_PRIVATE, /* Requires a private PK key */
52 
53  CRYPT_INVALID_ARG, /* Generic invalid argument */
54  CRYPT_FILE_NOTFOUND, /* File Not Found */
55 
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 */
61 
62  CRYPT_INVALID_PRIME_SIZE,/* Invalid size of prime requested */
63  CRYPT_PK_INVALID_PADDING /* Invalid padding on input */
64 };
Definition: tomcrypt.h:41
Definition: tomcrypt.h:58
Definition: tomcrypt.h:54
Definition: tomcrypt.h:46
Definition: tomcrypt.h:63
Definition: tomcrypt.h:36
Definition: tomcrypt.h:44
Definition: tomcrypt.h:34
Definition: tomcrypt.h:60
Definition: tomcrypt.h:30
Definition: tomcrypt.h:42
Definition: tomcrypt.h:53
Definition: tomcrypt.h:35
Definition: tomcrypt.h:32
Definition: tomcrypt.h:39
Definition: tomcrypt.h:59
Definition: tomcrypt.h:51
Definition: tomcrypt.h:62
Definition: tomcrypt.h:48
Definition: tomcrypt.h:57
Definition: tomcrypt.h:38
Definition: tomcrypt.h:31
Definition: tomcrypt.h:50
Definition: tomcrypt.h:56
Definition: tomcrypt.h:45