Documentation ¶
Overview ¶
Package drbg implements the HMAC_DRBG construct as per NIST Special Publication 800-90A Revision 1.
Index ¶
Constants ¶
View Source
const ( // MaxLength is the maximum length of the input entropy, personalization // nonce, and additional input bit strings in bytes. // // Note: SP 800-90A R1 allows 8 bits more than the value used. MaxLength = math.MaxUint32 // 2^35 - 8 bits. // ReseedInterval is the maximum number of requests that can be made // before a reseed operation is required. ReseedInterval = 1 << 48 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Drbg ¶
type Drbg struct {
// contains filtered or unexported fields
}
Drbg is a keyed and initialized HMAC_DRBG instance.
Note: This implementation does not support reseeding, and if the internal counter is exceeded, the instance will be rendered unusable. The limit is sufficiently large that it will not be hit under realistic usage.
Click to show internal directories.
Click to hide internal directories.