forked from wolfSSL/wolfssl
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 */
|
||||
#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_OP | CAAM_CLASS1 | CAAM_RNG | 0x00000004, /* Instantiate RNG handle 0
|
||||
with TRNG */
|
||||
@ -460,7 +460,7 @@ int caamInitRng(struct CAAM_DEVICE* dev)
|
||||
/* set up the job description for RNG initialization */
|
||||
memset(&desc, 0, sizeof(DESCSTRUCT));
|
||||
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.caam = dev;
|
||||
|
Reference in New Issue
Block a user