summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/crypto/io/aes.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/crypto/io/aes.c')
-rw-r--r--usr/src/uts/common/crypto/io/aes.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr/src/uts/common/crypto/io/aes.c b/usr/src/uts/common/crypto/io/aes.c
index a008927cbb..7c6a105777 100644
--- a/usr/src/uts/common/crypto/io/aes.c
+++ b/usr/src/uts/common/crypto/io/aes.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2017 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2018, Joyent, Inc.
*/
/*
@@ -405,22 +406,6 @@ aes_common_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism,
return (CRYPTO_SUCCESS);
}
-static void
-aes_copy_block64(uint8_t *in, uint64_t *out)
-{
- if (IS_P2ALIGNED(in, sizeof (uint64_t))) {
- /* LINTED: pointer alignment */
- out[0] = *(uint64_t *)&in[0];
- /* LINTED: pointer alignment */
- out[1] = *(uint64_t *)&in[8];
- } else {
- uint8_t *iv8 = (uint8_t *)&out[0];
-
- AES_COPY_BLOCK(in, iv8);
- }
-}
-
-
static int
aes_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext,
crypto_data_t *ciphertext, crypto_req_handle_t req)