|
RetroArch
|
#include "mbedtls/config.h"#include "mbedtls/arc4.h"#include <string.h>#include "mbedtls/platform.h"#include "arc4_alt.h"Functions | |
| void | mbedtls_arc4_init (mbedtls_arc4_context *ctx) |
| Initialize ARC4 context. More... | |
| void | mbedtls_arc4_free (mbedtls_arc4_context *ctx) |
| Clear ARC4 context. More... | |
| void | mbedtls_arc4_setup (mbedtls_arc4_context *ctx, const unsigned char *key, unsigned int keylen) |
| ARC4 key schedule. More... | |
| int | mbedtls_arc4_crypt (mbedtls_arc4_context *ctx, size_t length, const unsigned char *input, unsigned char *output) |
| ARC4 cipher function. More... | |
| int | mbedtls_arc4_self_test (int verbose) |
| Checkup routine. More... | |
Variables | |
| static const unsigned char | arc4_test_key [3][8] |
| static const unsigned char | arc4_test_pt [3][8] |
| static const unsigned char | arc4_test_ct [3][8] |
| int mbedtls_arc4_crypt | ( | mbedtls_arc4_context * | ctx, |
| size_t | length, | ||
| const unsigned char * | input, | ||
| unsigned char * | output | ||
| ) |
ARC4 cipher function.
| ctx | ARC4 context |
| length | length of the input data |
| input | buffer holding the input data |
| output | buffer for the output data |
| void mbedtls_arc4_free | ( | mbedtls_arc4_context * | ctx | ) |
Clear ARC4 context.
| ctx | ARC4 context to be cleared |
| void mbedtls_arc4_init | ( | mbedtls_arc4_context * | ctx | ) |
Initialize ARC4 context.
| ctx | ARC4 context to be initialized |
| int mbedtls_arc4_self_test | ( | int | verbose | ) |
Checkup routine.
| void mbedtls_arc4_setup | ( | mbedtls_arc4_context * | ctx, |
| const unsigned char * | key, | ||
| unsigned int | keylen | ||
| ) |
ARC4 key schedule.
| ctx | ARC4 context to be setup |
| key | the secret key |
| keylen | length of the key, in bytes |
|
static |
|
static |
|
static |
1.8.15