crypto_aes_aesni_m128i.h 522 B

12345678910111213141516
  1. #ifndef CRYPTO_AES_AESNI_M128I_H_
  2. #define CRYPTO_AES_AESNI_M128I_H_
  3. #include <emmintrin.h>
  4. /**
  5. * crypto_aes_encrypt_block_aesni_m128i(in, key):
  6. * Using the expanded AES key ${key}, encrypt the block ${in} and return the
  7. * resulting ciphertext. This implementation uses x86 AESNI instructions,
  8. * and should only be used if CPUSUPPORT_X86_AESNI is defined and
  9. * cpusupport_x86_aesni() returns nonzero.
  10. */
  11. __m128i crypto_aes_encrypt_block_aesni_m128i(__m128i, const void *);
  12. #endif /* !CRYPTO_AES_AESNI_M128I_H_ */