Monero
Loading...
Searching...
No Matches
argon2_core.h File Reference
#include <stdint.h>
#include "argon2.h"
Include dependency graph for argon2_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  block_
struct  Argon2_instance_t
struct  Argon2_position_t
struct  Argon2_thread_data

Macros

#define CONST_CAST(x)

Typedefs

typedef struct block_ block
typedef struct Argon2_instance_t argon2_instance_t
typedef struct Argon2_position_t argon2_position_t
typedef struct Argon2_thread_data argon2_thread_data

Enumerations

enum  argon2_core_constants {
  ARGON2_BLOCK_SIZE = 1024 , ARGON2_QWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 8 , ARGON2_OWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 16 , ARGON2_HWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 32 ,
  ARGON2_512BIT_WORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 64 , ARGON2_ADDRESSES_IN_BLOCK = 128 , ARGON2_PREHASH_DIGEST_LENGTH = 64 , ARGON2_PREHASH_SEED_LENGTH = 72
}

Functions

uint32_t randomx_argon2_index_alpha (const argon2_instance_t *instance, const argon2_position_t *position, uint32_t pseudo_rand, int same_lane)
int randomx_argon2_validate_inputs (const argon2_context *context)
int randomx_argon2_initialize (argon2_instance_t *instance, argon2_context *context)
int randomx_argon2_fill_memory_blocks (argon2_instance_t *instance)

Macro Definition Documentation

◆ CONST_CAST

#define CONST_CAST ( x)
Value:
_W64 unsigned int uintptr_t
Definition stdint.h:165

Typedef Documentation

◆ argon2_instance_t

◆ argon2_position_t

◆ argon2_thread_data

◆ block

typedef struct block_ block

Enumeration Type Documentation

◆ argon2_core_constants

Enumerator
ARGON2_BLOCK_SIZE 
ARGON2_QWORDS_IN_BLOCK 
ARGON2_OWORDS_IN_BLOCK 
ARGON2_HWORDS_IN_BLOCK 
ARGON2_512BIT_WORDS_IN_BLOCK 
ARGON2_ADDRESSES_IN_BLOCK 
ARGON2_PREHASH_DIGEST_LENGTH 
ARGON2_PREHASH_SEED_LENGTH 

Function Documentation

◆ randomx_argon2_fill_memory_blocks()

int randomx_argon2_fill_memory_blocks ( argon2_instance_t * instance)

◆ randomx_argon2_index_alpha()

uint32_t randomx_argon2_index_alpha ( const argon2_instance_t * instance,
const argon2_position_t * position,
uint32_t pseudo_rand,
int same_lane )

◆ randomx_argon2_initialize()

int randomx_argon2_initialize ( argon2_instance_t * instance,
argon2_context * context )

◆ randomx_argon2_validate_inputs()

int randomx_argon2_validate_inputs ( const argon2_context * context)