summaryrefslogtreecommitdiff
path: root/sys/crypto/xform.h
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-12-20 20:31:19 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-12-20 20:31:19 +0000
commitd13069623678a3b7fca87169db73232db87fc4f4 (patch)
tree0b525ac8b00115795091867e2f378cf74bc53bae /sys/crypto/xform.h
parent089a88ce93e203fa05b0bf649e3e8225213cb51b (diff)
Allow the setkey function of a transform to fail, eg. when an insufficient
number of key bits is supplied. Only AES and DES/3DES might fail. ok and help markus@
Diffstat (limited to 'sys/crypto/xform.h')
-rw-r--r--sys/crypto/xform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/xform.h b/sys/crypto/xform.h
index bc9be17fcd8..fa7838665c2 100644
--- a/sys/crypto/xform.h
+++ b/sys/crypto/xform.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xform.h,v 1.14 2004/05/07 14:42:26 millert Exp $ */
+/* $OpenBSD: xform.h,v 1.15 2004/12/20 20:31:18 hshoexer Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -49,7 +49,7 @@ struct enc_xform {
u_int16_t minkey, maxkey;
void (*encrypt) (caddr_t, u_int8_t *);
void (*decrypt) (caddr_t, u_int8_t *);
- void (*setkey) (u_int8_t **, u_int8_t *, int len);
+ int (*setkey) (u_int8_t **, u_int8_t *, int len);
void (*zerokey) (u_int8_t **);
};