aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/include
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-11 16:38:25 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:21:32 -0700
commit0ce2de637bf73e2c7e483e644aa09797439734ef (patch)
treec4d45fff310b523f8fe44d8a7887348aafc5d27a /module/icp/include
parent60356b1a211a0fcfe7dbd2e1dd280d6fc0170cf0 (diff)
Add prototypes
Add prototypes/move prototypes to header files. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10470
Diffstat (limited to 'module/icp/include')
-rw-r--r--module/icp/include/aes/aes_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/module/icp/include/aes/aes_impl.h b/module/icp/include/aes/aes_impl.h
index 0484462ca..41dccaa38 100644
--- a/module/icp/include/aes/aes_impl.h
+++ b/module/icp/include/aes/aes_impl.h
@@ -195,6 +195,16 @@ struct aes_impl_ops {
extern const aes_impl_ops_t aes_generic_impl;
#if defined(__x86_64)
extern const aes_impl_ops_t aes_x86_64_impl;
+
+/* These functions are used to execute amd64 instructions for AMD or Intel: */
+extern int rijndael_key_setup_enc_amd64(uint32_t rk[],
+ const uint32_t cipherKey[], int keyBits);
+extern int rijndael_key_setup_dec_amd64(uint32_t rk[],
+ const uint32_t cipherKey[], int keyBits);
+extern void aes_encrypt_amd64(const uint32_t rk[], int Nr,
+ const uint32_t pt[4], uint32_t ct[4]);
+extern void aes_decrypt_amd64(const uint32_t rk[], int Nr,
+ const uint32_t ct[4], uint32_t pt[4]);
#endif
#if defined(__x86_64) && defined(HAVE_AES)
extern const aes_impl_ops_t aes_aesni_impl;