RTD RNG

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTD RNG

789 Views
vikmonti7804
Contributor III

Hi

   I am trying to generate the RNG from the RTD crypto mcal

api Std_ReturnType Crypto_ProcessJob
(
uint32 objectId,
Crypto_JobType* job
)

.Crypto_JobType CryptJob =
{
CRYPTO_ALGOFAM_RNG, /* jobId
CRYPTO_JOBSTATE_ACTIVE, /* jobState
{
NULL_PTR,     //App_au8EncryptedSharedSecret, /* inputPtr
0, //APP_ENCRYPTED_SHARED_SECRET_SIZE, /* inputLength
NULL_PTR,      /* secondaryInputPtr
0U,             /* secondaryInputLength
NULL_PTR,          /* tertiaryInputPtr
0U,             /* tertiaryInputLength
0,               //App_au8PlainSharedSecret, /* outputPtr
0,               //&App_u32PlainSharedSecretSize, /* outputLengthPtr
NULL_PTR,          /* secondaryOutputPtr
NULL_PTR,          /* secondaryOutputLengthPtr
0U, /* input64
NULL_PTR,             /* verifyPtr
NULL_PTR,           /* output64Ptr
CRYPTO_OPERATIONMODE_START, //CRYPTO_OPERATIONMODE_SINGLECALL,
0U,            /* cryIfKeyId
0U,           /* targetCryIfKeyId
},
&JobPrimitiveInfo, /* jobPrimitiveInfo
&JobInfoType, /* jobInfo
NULL_PTR,
0U
};

 

CryptJob.jobId = CRYPTO_ALGOFAM_RNG;
CryptJob.jobState = CRYPTO_JOBSTATE_ACTIVE;
CryptJob.jobPrimitiveInputOutput.outputPtr = rngNum;
CryptJob.jobPrimitiveInputOutput.outputLengthPtr = (uint32_t *)rngLength;

 

But not able to get the random number, kindly hep with this.

0 Kudos
Reply
5 Replies

730 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @vikmonti7804 

I'm already checking this with SW team because I'm not familiar with Crypto layer. I'm trying to prioritize this but it may take some time anyway. I will get back to you as soon as possible.

Regards,

Lukas

0 Kudos
Reply

712 Views
vikmonti7804
Contributor III

Kindly prioritize it as it has been many days passed.

thank you

0 Kudos
Reply

686 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Sorry, I'm still waiting even though it's a high priority...

0 Kudos
Reply

740 Views
vikmonti7804
Contributor III

I have not got any reply on my question, kindly provide the solution asap.

0 Kudos
Reply

771 Views
vikmonti7804
Contributor III

Hi,

Can you please provide the help for the above problem.

We have to develop autosar complaint firmware so we are using the RTD package for the development, I see two Api given for use from application layer.

Crypto_Hse_ProcessJob and Crypto_ProcessJob,

1. which one should we use at application layer?

2. Kindly provode the solution of above problem with appropriate API?

we are getting delayed in customer deliver so reply asap.

0 Kudos
Reply