5 * $Id: crypt.h,v 1.2 2003-06-11 07:14:12 srittau Exp $
7 * Copyright (c) 1990,1993 Regents of The University of Michigan.
8 * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
9 * All Rights Reserved. See COPYRIGHT.
12 #include <sys/types.h>
14 typedef void *CryptHandle;
16 void atalk_hexify(u_int8_t *dst, size_t dstlen, const u_int8_t *src, size_t srclen);
17 void atalk_unhexify(u_int8_t *dst, size_t dstlen, const u_int8_t *src, size_t srclen);
19 int atalk_encrypt_start(CryptHandle *handle, u_int8_t *key);
20 int atalk_encrypt_do(CryptHandle handle, u_int8_t *dst, u_int8_t *src);
21 void atalk_encrypt_end(CryptHandle handle);
23 int atalk_encrypt(u_int8_t *key, u_int8_t *dst, u_int8_t *src);
24 int atalk_decrypt(u_int8_t *key, u_int8_t *dst, u_int8_t *src);
26 #endif /* __UAMS_CRYPT_H */