How to use the rdrand engine in OpenSSL for random number generation

The OpenSSL* ENGINE API includes an engine specifically for Intel® Data Protection Technology with Secure Key. When this engine is enabled, the RAND_bytes() function will exclusively use the RDRAND instruction for generating random numbers and will not need to rely on the OS's entropy pool for reseeding. End applications can simply call RAND_bytes(), do not have to invoke RAND_seed() or RAND_add(), and the OpenSSL library will not call RAND_poll() internally.

Download the complete code sample at the bottom of the article.

  • Developers
  • Business Client
  • Server
  • C/C++
  • intel data protection with secure key
  • Secure Key
  • DRNG
  • rdrand
  • Security
  • Intel® SGX for Dummies – Part 2

    In my last blog post, only about 9 short months ago, I provided an overview of the Intel® SGX design objectives.  Sincere apologies for the long delay between postings, my colleagues and I have been hard at work on the latest security technologies and I need to remember to carve out more time to post.

    As a reminder, I highlighted these eight design objectives for Intel® SGX: - Internalization, Control Mode, EHBC, Performance

    It’s been a while since the last Meshcentral report, so I wanted to give people a status update before I head over on a week vacation. The team’s been hard at work on all sorts of improvements and new features. In this report, I want to focus on just a few core improvements.

    Subscribe to Security