summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorMichael Brown2007-02-01 03:18:56 +0100
committerMichael Brown2007-02-01 03:18:56 +0100
commitf5776dbef1f308b45c3402dc51489a554db17ed8 (patch)
treeef7c35ee0bbeb984268142358aca59915e61e4f3 /src/include/gpxe
parentMore assertions (diff)
downloadipxe-f5776dbef1f308b45c3402dc51489a554db17ed8.tar.gz
ipxe-f5776dbef1f308b45c3402dc51489a554db17ed8.tar.xz
ipxe-f5776dbef1f308b45c3402dc51489a554db17ed8.zip
Fix prototypes
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/crypto.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gpxe/crypto.h b/src/include/gpxe/crypto.h
index 831c0363d..fc1f50bc5 100644
--- a/src/include/gpxe/crypto.h
+++ b/src/include/gpxe/crypto.h
@@ -33,13 +33,13 @@ struct crypto_algorithm {
* @v keylen Key length
* @ret rc Return status code
*/
- int ( * setkey ) ( void *ctx, void *key, size_t keylen );
+ int ( * setkey ) ( void *ctx, const void *key, size_t keylen );
/** Set initialisation vector
*
* @v ctx Context
* @v iv Initialisation vector
*/
- void ( *setiv ) ( void *ctx, void *iv );
+ void ( *setiv ) ( void *ctx, const void *iv );
/** Encode data
*
* @v ctx Context
@@ -92,12 +92,12 @@ static inline void digest_final ( struct crypto_algorithm *crypto,
}
static inline void cipher_setiv ( struct crypto_algorithm *crypto,
- void *ctx, void *iv ) {
+ void *ctx, const void *iv ) {
crypto->setiv ( ctx, iv );
}
static inline int cipher_setkey ( struct crypto_algorithm *crypto,
- void *ctx, void *key, size_t keylen ) {
+ void *ctx, const void *key, size_t keylen ) {
return crypto->setkey ( ctx, key, keylen );
}