MPHELL  4.0.0
Data Fields
field_t Struct Reference

Define a field. More...

#include <mphell-field.h>

Data Fields

void * param
 
field_type type
 
uint8_t size
 
uint16_t bit_size
 
field_elt pool_1 [POOL_SIZE_FIELD]
 
uint8_t i_1
 
char id [20]
 

Detailed Description

Define a field.

Definition at line 90 of file mphell-field.h.

Field Documentation

◆ bit_size

uint16_t bit_size

Size in bit

Definition at line 95 of file mphell-field.h.

◆ i_1

uint8_t i_1

Index for pool 1

Definition at line 97 of file mphell-field.h.

◆ id

char id[20]

Field name

Definition at line 102 of file mphell-field.h.

◆ param

void* param

Pointer to a field information structure: fp_param_t for FP, fp2_param_t for FP2 and fp3_param_t for FP3

Definition at line 92 of file mphell-field.h.

◆ pool_1

field_elt pool_1[POOL_SIZE_FIELD]

Pool of already initialised field element to accelerate field operations, use when STACK_1 is specified

Definition at line 96 of file mphell-field.h.

◆ size

uint8_t size

Size in blocks of the base prime field (ex: 4 for a 4 * 64 = 256 bits prime field on a 64 bits architecture)

Definition at line 94 of file mphell-field.h.

◆ type

field_type type

Type of field, FP, FP2 or FP3

Definition at line 93 of file mphell-field.h.


The documentation for this struct was generated from the following file: