Rizin
unix-like reverse engineering framework and cli tools
aes-decrypt.c File Reference
#include <stdlib.h>
#include "aes-internal.h"

Go to the source code of this file.

Functions

void aes_decrypt (const struct aes_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
 

Function Documentation

◆ aes_decrypt()

void aes_decrypt ( const struct aes_ctx ctx,
size_t  length,
uint8_t dst,
const uint8_t src 
)

Definition at line 46 of file aes-decrypt.c.

49 {
50  switch (ctx->key_size)
51  {
52  default: abort();
53  case AES128_KEY_SIZE:
54  aes128_decrypt(&ctx->u.ctx128, length, dst, src);
55  break;
56  case AES192_KEY_SIZE:
57  aes192_decrypt(&ctx->u.ctx192, length, dst, src);
58  break;
59  case AES256_KEY_SIZE:
60  aes256_decrypt(&ctx->u.ctx256, length, dst, src);
61  break;
62  }
63 }
void aes128_decrypt(const struct aes128_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
#define AES192_KEY_SIZE
Definition: aes.h:71
#define AES256_KEY_SIZE
Definition: aes.h:72
void aes256_decrypt(const struct aes256_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
#define AES128_KEY_SIZE
Definition: aes.h:70
void aes192_decrypt(const struct aes192_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src)
lzma_index * src
Definition: index.h:567
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 static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
Definition: sflib.h:133
char * dst
Definition: lz4.h:724

References aes128_decrypt(), AES128_KEY_SIZE, aes192_decrypt(), AES192_KEY_SIZE, aes256_decrypt(), AES256_KEY_SIZE, dst, length, and src.