Print this page
4896 Performance improvements for KCF AES modes
@@ -20,10 +20,13 @@
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2015 by Saso Kiselkov. All rights reserved.
+ */
#include <sys/strsun.h>
#include <sys/systm.h>
#include <sys/sysmacros.h>
#include <sys/kmem.h>
@@ -394,11 +397,11 @@
}
int
crypto_update_iov(void *ctx, crypto_data_t *input, crypto_data_t *output,
int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
- void (*copy_block)(uint8_t *, uint64_t *))
+ void (*copy_block)(const uint8_t *, uint64_t *))
{
common_ctx_t *common_ctx = ctx;
int rv;
if (input->cd_miscdata != NULL) {
@@ -416,11 +419,11 @@
}
int
crypto_update_uio(void *ctx, crypto_data_t *input, crypto_data_t *output,
int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
- void (*copy_block)(uint8_t *, uint64_t *))
+ void (*copy_block)(const uint8_t *, uint64_t *))
{
common_ctx_t *common_ctx = ctx;
uio_t *uiop = input->cd_uio;
off_t offset = input->cd_offset;
size_t length = input->cd_length;
@@ -481,11 +484,11 @@
}
int
crypto_update_mp(void *ctx, crypto_data_t *input, crypto_data_t *output,
int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
- void (*copy_block)(uint8_t *, uint64_t *))
+ void (*copy_block)(const uint8_t *, uint64_t *))
{
common_ctx_t *common_ctx = ctx;
off_t offset = input->cd_offset;
size_t length = input->cd_length;
mblk_t *mp;