B_BuildTableFinal

B_BuildTableFinal

int B_BuildTableFinal (

 

B_ALGORITHM_OBJ

buildTableObj,

/* table-building object */

unsigned char

*accelTable,

/* acceleration table buffer */

unsigned int

*accTableByteLen,

/* size of */

 

/*

created acceleration table in bytes */

unsigned int

maxAccTableLength,

/* size of */

 

 

/* acceleration table buffer */

A_SURRENDER_CTX * surrenderCtx

/* surrender context */

);

 

 

 

 

 

Description

Generates and outputs the acceleration table to accelTable, setting accTableByteLen to the number of bytes output. It returns BE_OUTPUT_LEN if maxAccTableLength is smaller than needed.

Return value

Value

Description

0

Operation was successful.

non-zero

Error. See Appendix A, “Crypto-C Error Types.”

 

 

2 9 0

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 300
Image 300
RSA Security 5 manual Int BBuildTableFinal