All crypto host tests which consumed randlib broken due to:

https://github.com/tianocore/edk2/pull/5714

Not sure why this issue not reported  by CI when merge this PR.

 

The reason is that the ```BaseRngLibConstructor``` of rnglib is not called in host test, so ```mRdRandSupported``` is not enabled.

Then the Crypto API calls ```GetRandomNumber*``` will fail.

GetRandomNumber64 (

  OUT     UINT64  *Rand

  )

{

  ……

  if (!ArchIsRngSupported ()) {

    return FALSE;

  }

 

Is there a way to let unit test host to call the constructors correctly?

 

Regards,

Yi

 

_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#119567) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_