Updated documentation
parent
8c47095a57
commit
ce74eac58d
|
|
@ -16,7 +16,7 @@ NAMESPACE_BEGIN(CryptoPP)
|
||||||
PadlockRNG::PadlockRNG(word32 divisor)
|
PadlockRNG::PadlockRNG(word32 divisor)
|
||||||
: m_divisor(DivisorHelper(divisor))
|
: m_divisor(DivisorHelper(divisor))
|
||||||
{
|
{
|
||||||
#if CRYPTOPP_X86_ASM_AVAILABLE
|
#if defined(CRYPTOPP_X86_ASM_AVAILABLE)
|
||||||
if (!HasPadlockRNG())
|
if (!HasPadlockRNG())
|
||||||
throw PadlockRNG_Err("PadlockRNG", "PadlockRNG generator not available");
|
throw PadlockRNG_Err("PadlockRNG", "PadlockRNG generator not available");
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,9 @@ public:
|
||||||
: Exception(OTHER_ERROR, component + ": " + message) {}
|
: 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
|
//! \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.
|
//! 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
|
//! The <tt>divisor</tt> controls the number of bytes discarded. The formula for
|
||||||
|
|
@ -53,6 +55,8 @@ public:
|
||||||
|
|
||||||
//! \brief Construct a PadlockRNG generator
|
//! \brief Construct a PadlockRNG generator
|
||||||
//! \param divisor the XSTORE divisor
|
//! \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
|
//! \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.
|
//! 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
|
//! The <tt>divisor</tt> controls the number of bytes discarded. The formula for
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue