Salmon
Loading...
Searching...
No Matches
salmon-aes-intr.h File Reference

Encrypt and decrypt data with AES-256 in CTR mode using AES-NI intrinsics. More...

#include <stdint.h>

Go to the source code of this file.

Functions

int aes_intr_transform_ctr (const unsigned char *expandedKey, unsigned char *counter, const unsigned char *srcBuffer, int srcOffset, unsigned char *destBuffer, int destOffset, int count)
 

Detailed Description

Encrypt and decrypt data with AES-256 in CTR mode using AES-NI intrinsics.

Function Documentation

◆ aes_intr_transform_ctr()

int aes_intr_transform_ctr ( const unsigned char * expandedKey,
unsigned char * counter,
const unsigned char * srcBuffer,
int srcOffset,
unsigned char * destBuffer,
int destOffset,
int count )

Transform the data using AES-256 CTR mode.

Parameters
expandedKeyThe expanded AES-256 key (240 bytes), see aes_key_expand()
counterThe counter.
srcBufferThe source array to transform.
srcOffsetThe source offset.
destBufferThe source array to transform.
destOffsetThe destination offset
countThe number of bytes to transform
Returns
The number of bytes transformed.