libnx  v4.2.0
Data Structures | Functions
aes_xts.h File Reference

Hardware accelerated AES-XTS implementation. More...

#include "aes.h"

Go to the source code of this file.

Data Structures

struct  Aes128XtsContext
 Context for AES-128 XTS. More...
 
struct  Aes192XtsContext
 Context for AES-192 XTS. More...
 
struct  Aes256XtsContext
 Context for AES-256 XTS. More...
 

Functions

void aes128XtsContextCreate (Aes128XtsContext *out, const void *key0, const void *key1, bool is_encryptor)
 128-bit XTS API.
 
void aes128XtsContextResetTweak (Aes128XtsContext *ctx, const void *tweak)
 
void aes128XtsContextResetSector (Aes128XtsContext *ctx, uint64_t sector, bool is_nintendo)
 
size_t aes128XtsEncrypt (Aes128XtsContext *ctx, void *dst, const void *src, size_t size)
 
size_t aes128XtsDecrypt (Aes128XtsContext *ctx, void *dst, const void *src, size_t size)
 
void aes192XtsContextCreate (Aes192XtsContext *out, const void *key0, const void *key1, bool is_encryptor)
 192-bit XTS API.
 
void aes192XtsContextResetTweak (Aes192XtsContext *ctx, const void *tweak)
 
void aes192XtsContextResetSector (Aes192XtsContext *ctx, uint64_t sector, bool is_nintendo)
 
size_t aes192XtsEncrypt (Aes192XtsContext *ctx, void *dst, const void *src, size_t size)
 
size_t aes192XtsDecrypt (Aes192XtsContext *ctx, void *dst, const void *src, size_t size)
 
void aes256XtsContextCreate (Aes256XtsContext *out, const void *key0, const void *key1, bool is_encryptor)
 256-bit XTS API.
 
void aes256XtsContextResetTweak (Aes256XtsContext *ctx, const void *tweak)
 
void aes256XtsContextResetSector (Aes256XtsContext *ctx, uint64_t sector, bool is_nintendo)
 
size_t aes256XtsEncrypt (Aes256XtsContext *ctx, void *dst, const void *src, size_t size)
 
size_t aes256XtsDecrypt (Aes256XtsContext *ctx, void *dst, const void *src, size_t size)
 

Detailed Description

Hardware accelerated AES-XTS implementation.