#include "aes-internal.h"
#include <assert.h>
#include "macros.h"
Go to the source code of this file.
◆ _nettle_aes_set_key()
Definition at line 50 of file aes-set-key-internal.c.
53 static const uint8_t rcon[10] = {
54 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,
63 for (
i=0,
rp = rcon;
i<nk;
i++)
66 for (
i=nk;
i<lastkey;
i++)
72 else if (nk > 6 && (
i%nk) == 4)
75 subkeys[
i] = subkeys[
i-nk] ^ t;
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
assert(limit<=UINT32_MAX/2)
#define LE_READ_UINT32(p)
References AES_BLOCK_SIZE, aes_sbox, assert(), i, key, LE_READ_UINT32, ROTL32, rp, and SUBBYTE.
Referenced by nettle_aes128_set_encrypt_key(), nettle_aes192_set_encrypt_key(), and nettle_aes256_set_encrypt_key().