Package com.mku.bridge
Interface INativeProxy
- All Known Implementing Classes:
NativeProxy
public interface INativeProxy
Proxy interface for use with native libraries for different platforms and operating systems.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
salmonExpandKey
(byte[] key, byte[] expandedKey) Proxy Key schedule algorithm for expanding the 32 byte key to 240 bytes required for AES 256.void
salmonInit
(int aesImpl) Proxy Init the native code with AES implementation, and hash length options.int
salmonTransform
(byte[] key, byte[] counter, byte[] srcBuffer, int srcOffset, byte[] destBuffer, int destOffset, int count) Proxy Transform the input byte array using AES-256 CTR mode
-
Method Details
-
salmonInit
void salmonInit(int aesImpl) Proxy Init the native code with AES implementation, and hash length options.- Parameters:
aesImpl
- Aes Implementation
-
salmonExpandKey
void salmonExpandKey(byte[] key, byte[] expandedKey) Proxy Key schedule algorithm for expanding the 32 byte key to 240 bytes required for AES 256.- Parameters:
key
- The keyexpandedKey
- The expanded key
-
salmonTransform
int salmonTransform(byte[] key, byte[] counter, byte[] srcBuffer, int srcOffset, byte[] destBuffer, int destOffset, int count) Proxy Transform the input byte array using AES-256 CTR mode- Parameters:
key
- The keycounter
- The countersrcBuffer
- The source byte array.srcOffset
- The source byte offset.destBuffer
- The destination byte array.destOffset
- The destination byte offset.count
- The count of bytes to transform.- Returns:
- The number of bytes that were transformed.
-