1 #ifndef _CRYPTO_AES_AESNI_H_
2 #define _CRYPTO_AES_AESNI_H_
8 * crypto_aes_key_expand_aesni(key, len):
9 * Expand the ${len}-byte AES key ${key} into a structure which can be passed
10 * to crypto_aes_encrypt_block_aesni. The length must be 16 or 32. This
11 * implementation uses x86 AESNI instructions, and should only be used if
12 * CPUSUPPORT_X86_AESNI is defined and cpusupport_x86_aesni() returns nonzero.
14 void * crypto_aes_key_expand_aesni(const uint8_t *, size_t);
17 * crypto_aes_encrypt_block_aesni(in, out, key):
18 * Using the expanded AES key ${key}, encrypt the block ${in} and write the
19 * resulting ciphertext to ${out}. This implementation uses x86 AESNI
20 * instructions, and should only be used if CPUSUPPORT_X86_AESNI is defined
21 * and cpusupport_x86_aesni() returns nonzero.
23 void crypto_aes_encrypt_block_aesni(const uint8_t *, uint8_t *, const void *);
26 * crypto_aes_key_free_aesni(key):
27 * Free the expanded AES key ${key}.
29 void crypto_aes_key_free_aesni(void *);
31 #endif /* !_CRYPTO_AES_AESNI_H_ */
This page took 0.020918 seconds and 4 git commands to generate.