Forwarded to openssl-user for discussion.

Best regards,
        Lutz
--
Lutz Jaenicke           jaeni...@openssl.org
OpenSSL Project         http://www.openssl.org/~jaenicke/
--- Begin Message ---
Hello,

I have a problem about using HW_Rand Engine. Would you please give me some
suggestion?

[description]
I got entlen = 0 when called fips_get_entropy,
and got failed in function ssleay_rand_bytes because the variable entropy
is 0 after RAND_poll()

in the file openssl-1.0/crypto/engine/eng_rdrand.c, it didn't implement
function "add" in RAND_METHOD
Did it make me failed?
Please give me some suggestion. I would report other imformation for you if
you need.

[information]
1. compiled openssl-1.0 with openssl-fips-2.0
2. static const char *engine_e_rdrand_name = "Intel RDRAND engine"

[call trace]
OPENSSL_init
  RAND_init_fips
    FIPS_drbg_instantiate
      fips_get_entropy
        drbg_get_entropy
          ssleay_rand_nopseudo_bytes
            ssleay_rand_bytes
              RAND_poll
                RAND_add

Thanks a lot.

--- End Message ---

Reply via email to