123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef POLARSSL_PADLOCK_H
- #define POLARSSL_PADLOCK_H
- #include "polarssl/aes.h"
- #define POLARSSL_ERR_PADLOCK_DATA_MISALIGNED -0x0030
- #if defined(POLARSSL_HAVE_ASM) && defined(__GNUC__) && defined(__i386__)
- #ifndef POLARSSL_HAVE_X86
- #define POLARSSL_HAVE_X86
- #endif
- #define PADLOCK_RNG 0x000C
- #define PADLOCK_ACE 0x00C0
- #define PADLOCK_PHE 0x0C00
- #define PADLOCK_PMM 0x3000
- #define PADLOCK_ALIGN16(x) (unsigned long *) (16 + ((long) x & ~15))
- #ifdef __cplusplus
- extern "C" {
- #endif
- int padlock_supports( int feature );
- int padlock_xcryptecb( aes_context *ctx,
- int mode,
- const unsigned char input[16],
- unsigned char output[16] );
- int padlock_xcryptcbc( aes_context *ctx,
- int mode,
- size_t length,
- unsigned char iv[16],
- const unsigned char *input,
- unsigned char *output );
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|