Updated documentation

pull/462/head
Jeffrey Walton 2017-08-20 04:40:57 -04:00
parent 8c47095a57
commit ce74eac58d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,7 @@ NAMESPACE_BEGIN(CryptoPP)
PadlockRNG::PadlockRNG(word32 divisor)
: m_divisor(DivisorHelper(divisor))
{
#if CRYPTOPP_X86_ASM_AVAILABLE
#if defined(CRYPTOPP_X86_ASM_AVAILABLE)
if (!HasPadlockRNG())
throw PadlockRNG_Err("PadlockRNG", "PadlockRNG generator not available");
#else

View File

@ -26,7 +26,9 @@ public:
: Exception(OTHER_ERROR, component + ": " + message) {}
};
//! \brief Hardware generated random numbers using PadlockRNG instruction
//! \brief Hardware generated random numbers using VIA XSTORE
//! \details Some VIA processors provide a Security Engine called Padlock. The Padlock
//! Security Engine provides AES, SHA and a RNG. PadlockRNG provides access to the RNG.
//! \details The PadlockRNG uses an 8 byte FIFO buffer for random numbers. The
//! generator can be configured to discard bits from the buffer to resist analysis.
//! The <tt>divisor</tt> controls the number of bytes discarded. The formula for
@ -53,6 +55,8 @@ public:
//! \brief Construct a PadlockRNG generator
//! \param divisor the XSTORE divisor
//! \details Some VIA processors provide a Security Engine called Padlock. The Padlock
//! Security Engine provides AES, SHA and a RNG. PadlockRNG provides access to the RNG.
//! \details The PadlockRNG uses an 8 byte FIFO buffer for random numbers. The
//! generator can be configured to discard bits from the buffer to resist analysis.
//! The <tt>divisor</tt> controls the number of bytes discarded. The formula for