Loading...
Searching...
No Matches
33#include "salmon-aes-intr/salmon-aes-intr.h"
38#define AES_IMPL_AES_INTR 1
39#define AES_IMPL_TINY_AES 2
42#include <android/log.h>
43#define printf(...) __android_log_print(ANDROID_LOG_VERBOSE, "salmon", __VA_ARGS__)
47#ifdef USE_PRIMITVE_ARR_CRITICAL
48#define GetJavaArray GetPrimitiveArrayCritical
49#define ReleaseJavaArray ReleasePrimitiveArrayCritical
52#define GetJavaArray GetByteArrayElements
53#define ReleaseJavaArray ReleaseByteArrayElements
57#define EXPORT_DLL __declspec(dllexport)
62static inline long incrementCounter(
long value,
unsigned char * counter);
69extern EXPORT_DLL
void salmon_init(
int aesImpl);
76extern EXPORT_DLL
void salmon_expandKey(
const unsigned char* key,
unsigned char* expandedKey);
91extern EXPORT_DLL
int salmon_transform(
92 const unsigned char* key,
unsigned char* counter,
93 unsigned char *srcBuffer,
int srcOffset,
94 unsigned char *destBuffer,
int destOffset,
int count);