ESAPI-C 1.0
The OWASP Enterprise Security API for C

crypto.h

Go to the documentation of this file.
00001 
00014 #include <gcrypt.h>
00015 
00016 #ifndef _CRYPTO_H
00017 #define _CRYPTO_H
00018 
00019 #include "esapi.h"
00020 
00024 #define GCRYPT_NO_DEPRECATED 1
00025 
00029 #define GCRYPT_NO_MPI_MACROS 1
00030 
00042 extern char *esapi_encrypt(struct esapi_ctx *, const char *);
00043 
00054 extern char *esapi_decrypt(struct esapi_ctx *, const char *);
00055 
00076 extern char *esapi_hash(struct esapi_ctx *, const char *);
00077 
00086 extern gcry_sexp_t *esapi_sign(struct esapi_ctx *, void *, int);
00087 
00096 extern void esapi_fill_random_token(struct esapi_ctx *, char *, int);
00097 
00106 extern void esapi_fill_crypto_key(struct esapi_ctx *, char *, int);
00107 
00114 extern void esapi_crypto_init(struct esapi_ctx *);
00115 
00126 extern int esapi_verify_signature(struct esapi_ctx *, void *, int,
00127                 gcry_sexp_t *);
00128 
00132 extern gcry_sexp_t convert_to_asymmetric_key(void *, int);
00133 
00134 #endif
00135 
 All Data Structures Files Functions Variables Typedefs Defines