summaryrefslogtreecommitdiffstats
path: root/sys/geom/bde/g_bde.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2014-11-10 09:44:38 +0000
committerdes <des@FreeBSD.org>2014-11-10 09:44:38 +0000
commitd656003ded2880b12ef4b7bc010f43960fead6dc (patch)
tree23cd106f8b3ce857a01712210f815b716473d3b4 /sys/geom/bde/g_bde.h
parent02cd0a8cd68b8db488add1997d8762a5d6048bd7 (diff)
downloadFreeBSD-src-d656003ded2880b12ef4b7bc010f43960fead6dc.zip
FreeBSD-src-d656003ded2880b12ef4b7bc010f43960fead6dc.tar.gz
Constify the AES code and propagate to consumers. This allows us to
update the Fortuna code to use SHAd-256 as defined in FS&K. Approved by: so (self)
Diffstat (limited to 'sys/geom/bde/g_bde.h')
-rw-r--r--sys/geom/bde/g_bde.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/bde/g_bde.h b/sys/geom/bde/g_bde.h
index 9332c6b..2f29fe3 100644
--- a/sys/geom/bde/g_bde.h
+++ b/sys/geom/bde/g_bde.h
@@ -182,7 +182,7 @@ AES_init(cipherInstance *ci)
}
static __inline void
-AES_makekey(keyInstance *ki, int dir, u_int len, void *key)
+AES_makekey(keyInstance *ki, int dir, u_int len, const void *key)
{
int error;
@@ -191,7 +191,7 @@ AES_makekey(keyInstance *ki, int dir, u_int len, void *key)
}
static __inline void
-AES_encrypt(cipherInstance *ci, keyInstance *ki, void *in, void *out, u_int len)
+AES_encrypt(cipherInstance *ci, keyInstance *ki, const void *in, void *out, u_int len)
{
int error;
@@ -200,7 +200,7 @@ AES_encrypt(cipherInstance *ci, keyInstance *ki, void *in, void *out, u_int len)
}
static __inline void
-AES_decrypt(cipherInstance *ci, keyInstance *ki, void *in, void *out, u_int len)
+AES_decrypt(cipherInstance *ci, keyInstance *ki, const void *in, void *out, u_int len)
{
int error;
OpenPOWER on IntegriCloud