dst_internal.h revision e915367e40b579d18ac13c9c58c15fec614d9890
#ifndef DST_INTERNAL_H
#define DST_INTERNAL_H
/*
* Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
*
* Permission to use, copy modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND TRUSTED INFORMATION SYSTEMS
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
* TRUSTED INFORMATION SYSTEMS BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
*/
#include "../rename.h"
/*
* define what crypto systems are supported.
* BSAFE, DNSSAFE for RSA
* OPENSSL for DSA
* Only one package per algorithm can be defined.
*/
# error "Cannot have both BSAFE and DNSSAFE defined"
#endif
/***
*** Types
***/
struct dst_key {
unsigned int magic;
char * key_name; /* name of the key */
int key_size; /* size of the key in bits */
int key_proto; /* protocols this key is used for */
int key_alg; /* algorithm of the key */
void * opaque; /* pointer to key in crypto pkg fmt */
};
struct dst_func {
/* conversion functions */
};
/* suffixes for key file names */
#define PRIVATE_KEY "private"
#define PUBLIC_KEY "key"
#ifndef DST_HASH_SIZE
#endif
void dst_s_hmacmd5_init(void);
void dst_s_bsafersa_init(void);
void dst_s_openssldsa_init(void);
void dst_s_openssldh_init(void);
/* support functions */
const char *suffix,
/* digest functions */
/* memory allocators using the DST memory pool */
void dst_mem_free(void *ptr);
#endif /* DST_INTERNAL_H */