Lightweight Cryptography Primitives
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
internal-speck64.h File Reference

SPECK-64 block cipher. More...

Go to the source code of this file.

Functions

void speck64_128_encrypt (const unsigned char *key, unsigned char *output, const unsigned char *input)
 Encrypts a 64-bit block with SPECK-64-128 in COMET byte order. More...
 

Detailed Description

SPECK-64 block cipher.

Function Documentation

void speck64_128_encrypt ( const unsigned char *  key,
unsigned char *  output,
const unsigned char *  input 
)

Encrypts a 64-bit block with SPECK-64-128 in COMET byte order.

Parameters
keyPoints to the 16 bytes of the key.
outputOutput buffer which must be at least 8 bytes in length.
inputInput buffer which must be at least 8 bytes in length.

The input and output buffers can be the same buffer for in-place encryption.

Note
This version expects the key, input, and output to be in little-endian byte order, as expected by the COMET specification.