Go to the documentation of this file.
28#ifndef POLARSSL_PADLOCK_H
29#define POLARSSL_PADLOCK_H
33#define POLARSSL_ERR_PADLOCK_DATA_MISALIGNED -0x0030
35#if defined(POLARSSL_HAVE_ASM) && defined(__GNUC__) && defined(__i386__)
37#ifndef POLARSSL_HAVE_X86
38#define POLARSSL_HAVE_X86
41#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
49#define PADLOCK_RNG 0x000C
50#define PADLOCK_ACE 0x00C0
51#define PADLOCK_PHE 0x0C00
52#define PADLOCK_PMM 0x3000
54#define PADLOCK_ALIGN16(x) (uint32_t *) (16 + ((int32_t) x & ~15))
67int padlock_supports(
int feature );
81 const unsigned char input[16],
82 unsigned char output[16] );
100 const unsigned char *input,
101 unsigned char *output );