Rizin
unix-like reverse engineering framework and cli tools
aes128-set-decrypt-key.c File Reference
#include <assert.h>
#include "aes-internal.h"
#include "macros.h"

Go to the source code of this file.

Functions

void nettle_aes128_invert_key (struct aes128_ctx *dst, const struct aes128_ctx *src)
 
void nettle_aes128_set_decrypt_key (struct aes128_ctx *ctx, const uint8_t *key)
 

Function Documentation

◆ nettle_aes128_invert_key()

void nettle_aes128_invert_key ( struct aes128_ctx dst,
const struct aes128_ctx src 
)

Definition at line 61 of file aes128-set-decrypt-key.c.

62 {
63  _nettle_aes_invert (_AES128_ROUNDS, dst->keys, src->keys);
64 }
void _nettle_aes_invert(unsigned rounds, uint32_t *dst, const uint32_t *src)
#define _AES128_ROUNDS
Definition: aes.h:73
lzma_index * src
Definition: index.h:567
char * dst
Definition: lz4.h:724

References _AES128_ROUNDS, _nettle_aes_invert(), dst, and src.

◆ nettle_aes128_set_decrypt_key()

void nettle_aes128_set_decrypt_key ( struct aes128_ctx ctx,
const uint8_t key 
)

Definition at line 67 of file aes128-set-decrypt-key.c.

68 {
71 }
void aes128_set_encrypt_key(struct aes128_ctx *ctx, const uint8_t *key)
void aes128_invert_key(struct aes128_ctx *dst, const struct aes128_ctx *src)
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
Definition: sflib.h:118

References aes128_invert_key(), aes128_set_encrypt_key(), and key.