summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/crypto.h
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-05-14 08:42:57 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-05-14 08:42:57 +0000
commit9ebd50fd1a5b0b38ce6d40aaa65ad328f655e9af (patch)
treea3ae649e989a6b8165141e3969fc1388a3c14ff0 /sbin/isakmpd/crypto.h
parenta1364e6eb548a466cdbf649b747244c5ba58a466 (diff)
Some more KNF, no binary change.
ok ho@
Diffstat (limited to 'sbin/isakmpd/crypto.h')
-rw-r--r--sbin/isakmpd/crypto.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sbin/isakmpd/crypto.h b/sbin/isakmpd/crypto.h
index 7354e03ad2f..1095c7e48c7 100644
--- a/sbin/isakmpd/crypto.h
+++ b/sbin/isakmpd/crypto.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.h,v 1.13 2004/04/15 18:39:25 deraadt Exp $ */
+/* $OpenBSD: crypto.h,v 1.14 2004/05/14 08:42:56 hshoexer Exp $ */
/* $EOM: crypto.h,v 1.12 2000/10/15 21:56:41 niklas Exp $ */
/*
@@ -158,18 +158,17 @@ struct crypto_xf {
u_int16_t keymin, keymax; /* Possible Keying Bytes */
u_int16_t blocksize; /* Need to keep IV in the state */
struct keystate *state; /* Key information, can also be passed sep. */
- enum cryptoerr (*init) (struct keystate *, u_int8_t *, u_int16_t);
- void (*encrypt) (struct keystate *, u_int8_t *, u_int16_t);
- void (*decrypt) (struct keystate *, u_int8_t *, u_int16_t);
+ enum cryptoerr (*init)(struct keystate *, u_int8_t *, u_int16_t);
+ void (*encrypt)(struct keystate *, u_int8_t *, u_int16_t);
+ void (*decrypt)(struct keystate *, u_int8_t *, u_int16_t);
};
extern struct keystate *crypto_clone_keystate(struct keystate *);
extern void crypto_decrypt(struct keystate *, u_int8_t *, u_int16_t);
extern void crypto_encrypt(struct keystate *, u_int8_t *, u_int16_t);
extern struct crypto_xf *crypto_get(enum transform);
-extern struct keystate *
-crypto_init(struct crypto_xf *, u_int8_t *,
- u_int16_t, enum cryptoerr *);
+extern struct keystate *crypto_init(struct crypto_xf *, u_int8_t *, u_int16_t,
+ enum cryptoerr *);
extern void crypto_init_iv(struct keystate *, u_int8_t *, size_t);
extern void crypto_update_iv(struct keystate *);