Commit e1e19732 authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Carles Cufi
Browse files

samples: drivers: crypto: Aligned AES key



Some drivers require the encryption key to be 4-byte aligned.

Signed-off-by: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent 16f34e96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(main);
#error "You need to enable one crypto device"
#endif

static uint8_t key[16] = {
static uint8_t key[16] __aligned(32) = {
	0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88,
	0x09, 0xcf, 0x4f, 0x3c
};