diff options
author | kib <kib@FreeBSD.org> | 2014-06-24 06:55:49 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-06-24 06:55:49 +0000 |
commit | 4b355196abd63a6265ed5047d561045008311aa3 (patch) | |
tree | 2486c37562bc1a79eca2694c364e2406e2b8bbdc /sys/crypto/aesni/aesni.h | |
parent | 98e91d6d21c326ec4d18a2f15569ab9b50747734 (diff) | |
download | FreeBSD-src-4b355196abd63a6265ed5047d561045008311aa3.zip FreeBSD-src-4b355196abd63a6265ed5047d561045008311aa3.tar.gz |
Put the aesni_cipher_setup() and aesni_cipher_process() functions into
the file which is compiled with SSE disabled. The functions set up
the FPU context for kernel, and compiler optimizations which could
lead to use of XMM registers before the fpu_kern_enter(9) is called or
after fpu_kern_leave(9), panic the machine.
Discussed with: jmg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/crypto/aesni/aesni.h')
-rw-r--r-- | sys/crypto/aesni/aesni.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/crypto/aesni/aesni.h b/sys/crypto/aesni/aesni.h index 99edd42..ff1d1a2 100644 --- a/sys/crypto/aesni/aesni.h +++ b/sys/crypto/aesni/aesni.h @@ -96,11 +96,8 @@ void aesni_decrypt_xts(int rounds, const void *data_schedule /*__aligned(16)*/, const void *tweak_schedule /*__aligned(16)*/, size_t len, const uint8_t *from, uint8_t *to, const uint8_t iv[AES_BLOCK_LEN]); -int aesni_cipher_setup(struct aesni_session *ses, - struct cryptoini *encini); -int aesni_cipher_process(struct aesni_session *ses, - struct cryptodesc *enccrd, struct cryptop *crp); - +int aesni_cipher_setup_common(struct aesni_session *ses, const uint8_t *key, + int keylen); uint8_t *aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp, int *allocated); |