pull/5106/head
风扇滑翔翼 2025-09-07 13:23:44 +00:00 committed by GitHub
parent 6ec0291d4e
commit a055120ab1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -9,5 +9,5 @@ import (
func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD {
hashedSeed := sha256.Sum256([]byte(seed))
return crypto.NewAesGcm(hashedSeed[:])
return crypto.NewAesGcm(hashedSeed[:16])
}