Skip to content

Commit

Permalink
fixed eckcdsa csprng iv
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Jan 25, 2024
1 parent 65895ae commit 8a0bc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eckcdsa/mixed_csprng.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func mixedCSPRNG(rand io.Reader, priv *PrivateKey, hash []byte) (io.Reader, erro

// Create a CSPRNG that xors a stream of zeros with
// the output of the AES-CTR instance.
const aesIV = "IV for ECKCDSA CTR"
const aesIV = "IVforEC-KCDSACTR"
return &cipher.StreamReader{
R: zeroReader,
S: cipher.NewCTR(block, []byte(aesIV)),
Expand Down

0 comments on commit 8a0bc62

Please sign in to comment.