php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
KeccakP-1600-opt64.c File Reference
#include <string.h>
#include <stdlib.h>
#include "brg_endian.h"
#include "KeccakP-1600-opt64-config.h"
#include "KeccakP-1600-64.macros"
#include "KeccakP-1600-unrolling.macros"
#include "SnP-Relaned.h"

Go to the source code of this file.

Macros

#define ALLOW_MISALIGNED_ACCESS
 
#define UseBebigokimisa
 
#define ROL64(a, offset)
 
#define FullUnrolling
 

Typedefs

typedef unsigned long long int UINT64
 

Functions

void KeccakP1600_Initialize (void *state)
 
void KeccakP1600_AddBytesInLane (void *state, unsigned int lanePosition, const unsigned char *data, unsigned int offset, unsigned int length)
 
ALLOW_MISALIGNED_ACCESS void KeccakP1600_AddLanes (void *state, const unsigned char *data, unsigned int laneCount)
 
void KeccakP1600_AddBytes (void *state, const unsigned char *data, unsigned int offset, unsigned int length)
 
void KeccakP1600_OverwriteBytesInLane (void *state, unsigned int lanePosition, const unsigned char *data, unsigned int offset, unsigned int length)
 
void KeccakP1600_OverwriteLanes (void *state, const unsigned char *data, unsigned int laneCount)
 
void KeccakP1600_OverwriteBytes (void *state, const unsigned char *data, unsigned int offset, unsigned int length)
 
void KeccakP1600_OverwriteWithZeroes (void *state, unsigned int byteCount)
 
void KeccakP1600_Permute_Nrounds (void *state, unsigned int nr)
 
void KeccakP1600_Permute_24rounds (void *state)
 
void KeccakP1600_Permute_12rounds (void *state)
 
void KeccakP1600_ExtractBytesInLane (const void *state, unsigned int lanePosition, unsigned char *data, unsigned int offset, unsigned int length)
 
void KeccakP1600_ExtractLanes (const void *state, unsigned char *data, unsigned int laneCount)
 
void KeccakP1600_ExtractBytes (const void *state, unsigned char *data, unsigned int offset, unsigned int length)
 
void KeccakP1600_ExtractAndAddBytesInLane (const void *state, unsigned int lanePosition, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
 
void KeccakP1600_ExtractAndAddLanes (const void *state, const unsigned char *input, unsigned char *output, unsigned int laneCount)
 
void KeccakP1600_ExtractAndAddBytes (const void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
 
ALLOW_MISALIGNED_ACCESS size_t KeccakF1600_FastLoop_Absorb (void *state, unsigned int laneCount, const unsigned char *data, size_t dataByteLen)
 

Macro Definition Documentation

◆ ALLOW_MISALIGNED_ACCESS

#define ALLOW_MISALIGNED_ACCESS

Definition at line 26 of file KeccakP-1600-opt64.c.

◆ FullUnrolling

#define FullUnrolling

Definition at line 51 of file KeccakP-1600-opt64.c.

◆ ROL64

#define ROL64 ( a,
offset )
Value:
((((UINT64)a) << offset) ^ (((UINT64)a) >> (64-offset)))
unsigned long long int UINT64
zend_long offset
$obj a
Definition test.php:84

Definition at line 46 of file KeccakP-1600-opt64.c.

◆ UseBebigokimisa

#define UseBebigokimisa

Definition at line 33 of file KeccakP-1600-opt64.c.

Typedef Documentation

◆ UINT64

typedef unsigned long long int UINT64

Definition at line 30 of file KeccakP-1600-opt64.c.

Function Documentation

◆ KeccakF1600_FastLoop_Absorb()

ALLOW_MISALIGNED_ACCESS size_t KeccakF1600_FastLoop_Absorb ( void * state,
unsigned int laneCount,
const unsigned char * data,
size_t dataByteLen )

Definition at line 475 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_AddBytes()

void KeccakP1600_AddBytes ( void * state,
const unsigned char * data,
unsigned int offset,
unsigned int length )

Definition at line 195 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_AddBytesInLane()

void KeccakP1600_AddBytesInLane ( void * state,
unsigned int lanePosition,
const unsigned char * data,
unsigned int offset,
unsigned int length )

Definition at line 101 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_AddLanes()

ALLOW_MISALIGNED_ACCESS void KeccakP1600_AddLanes ( void * state,
const unsigned char * data,
unsigned int laneCount )

Definition at line 126 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_ExtractAndAddBytes()

void KeccakP1600_ExtractAndAddBytes ( const void * state,
const unsigned char * input,
unsigned char * output,
unsigned int offset,
unsigned int length )

Definition at line 467 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_ExtractAndAddBytesInLane()

void KeccakP1600_ExtractAndAddBytesInLane ( const void * state,
unsigned int lanePosition,
const unsigned char * input,
unsigned char * output,
unsigned int offset,
unsigned int length )

Definition at line 399 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_ExtractAndAddLanes()

void KeccakP1600_ExtractAndAddLanes ( const void * state,
const unsigned char * input,
unsigned char * output,
unsigned int laneCount )

Definition at line 426 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_ExtractBytes()

void KeccakP1600_ExtractBytes ( const void * state,
unsigned char * data,
unsigned int offset,
unsigned int length )

Definition at line 392 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_ExtractBytesInLane()

void KeccakP1600_ExtractBytesInLane ( const void * state,
unsigned int lanePosition,
unsigned char * data,
unsigned int offset,
unsigned int length )

Definition at line 323 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_ExtractLanes()

void KeccakP1600_ExtractLanes ( const void * state,
unsigned char * data,
unsigned int laneCount )

Definition at line 358 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_Initialize()

void KeccakP1600_Initialize ( void * state)

Definition at line 86 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_OverwriteBytes()

void KeccakP1600_OverwriteBytes ( void * state,
const unsigned char * data,
unsigned int offset,
unsigned int length )

Definition at line 244 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_OverwriteBytesInLane()

void KeccakP1600_OverwriteBytesInLane ( void * state,
unsigned int lanePosition,
const unsigned char * data,
unsigned int offset,
unsigned int length )

Definition at line 202 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_OverwriteLanes()

void KeccakP1600_OverwriteLanes ( void * state,
const unsigned char * data,
unsigned int laneCount )

Definition at line 223 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_OverwriteWithZeroes()

void KeccakP1600_OverwriteWithZeroes ( void * state,
unsigned int byteCount )

Definition at line 251 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_Permute_12rounds()

void KeccakP1600_Permute_12rounds ( void * state)

Definition at line 308 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_Permute_24rounds()

void KeccakP1600_Permute_24rounds ( void * state)

Definition at line 293 of file KeccakP-1600-opt64.c.

◆ KeccakP1600_Permute_Nrounds()

void KeccakP1600_Permute_Nrounds ( void * state,
unsigned int nr )

Definition at line 279 of file KeccakP-1600-opt64.c.