mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
address review items
This commit is contained in:
@ -437,7 +437,7 @@ static void print_jdkek()
|
|||||||
|
|
||||||
/* instantiate RNG and create JDKEK, TDKEK, and TDSK key */
|
/* instantiate RNG and create JDKEK, TDKEK, and TDSK key */
|
||||||
#define WC_RNG_START_SIZE 6
|
#define WC_RNG_START_SIZE 6
|
||||||
static unsigned int wc_rng_start[] = {
|
static unsigned int wc_rng_start[WC_RNG_START_SIZE] = {
|
||||||
CAAM_HEAD | 0x00000006,
|
CAAM_HEAD | 0x00000006,
|
||||||
CAAM_OP | CAAM_CLASS1 | CAAM_RNG | 0x00000004, /* Instantiate RNG handle 0
|
CAAM_OP | CAAM_CLASS1 | CAAM_RNG | 0x00000004, /* Instantiate RNG handle 0
|
||||||
with TRNG */
|
with TRNG */
|
||||||
@ -460,7 +460,7 @@ int caamInitRng(struct CAAM_DEVICE* dev)
|
|||||||
/* set up the job description for RNG initialization */
|
/* set up the job description for RNG initialization */
|
||||||
memset(&desc, 0, sizeof(DESCSTRUCT));
|
memset(&desc, 0, sizeof(DESCSTRUCT));
|
||||||
desc.desc[desc.idx++] = CAAM_HEAD; /* later will put size to header*/
|
desc.desc[desc.idx++] = CAAM_HEAD; /* later will put size to header*/
|
||||||
for (i = 1; i < WC_RNG_START_SIZE; i = i + 1) {
|
for (i = 1; i < WC_RNG_START_SIZE; i++) {
|
||||||
desc.desc[desc.idx++] = wc_rng_start[i];
|
desc.desc[desc.idx++] = wc_rng_start[i];
|
||||||
}
|
}
|
||||||
desc.caam = dev;
|
desc.caam = dev;
|
||||||
|
Reference in New Issue
Block a user