错误函数描述

This commit is contained in:
Quan guanyu 2025-09-29 14:50:44 +08:00
parent 69e446d7b2
commit ce886f1c6b
3 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ func (cd *CtrDrbg) bcc(block cipher.Block, data []byte) []byte {
return chainingValue
}
// Destroy destroys the internal state of HMAC DRBG instance
// Destroy destroys the internal state of DRBG instance
// 对称加密的RNG内部状态组成为 {V,Key, reseed_counter, last_reseed_time,reseed_interval_in_counter, reseed_interval_in_time}
func (cd *CtrDrbg) Destroy() {
cd.BaseDrbg.Destroy()

View File

@ -223,8 +223,8 @@ func (hd *HashDrbg) derive(seedMaterial []byte, len int) []byte {
return k
}
// Destroy 根据 GM/T 0105-2021 B.2 对内部状态进行清零处理
// SM3_RNG 内部状态组成为 {V,C, reseed_counter, last_reseed_time,reseed_interval_in_counter, reseed_interval_in_time}
// Destroy destroys the internal state of DRBG instance
// HASH 内部状态组成为 {V,C, reseed_counter, last_reseed_time,reseed_interval_in_counter, reseed_interval_in_time}
func (hd *HashDrbg) Destroy() {
hd.BaseDrbg.Destroy()
setZero(hd.c)

View File

@ -154,7 +154,7 @@ func (hd *HmacDrbg) update(byteSlices ...[]byte) error {
return nil
}
// Destroy destroys the internal state of HMAC DRBG instance
// Destroy destroys the internal state of DRBG instance
// HMAC的RNG内部状态组成为 {V,Key, reseed_counter, last_reseed_time,reseed_interval_in_counter, reseed_interval_in_time}
func (hd *HmacDrbg) Destroy() {
hd.BaseDrbg.Destroy()