mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
Add SEC 1 section to comment about IV
This commit is contained in:
parent
0b6a702f24
commit
8f652287bd
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ func symEncrypt(rand io.Reader, params *ECIESParams, key, m []byte) (ct []byte,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
In SEC 1 Version 2.0 the IV value is not specified in for XOR CTR.
|
In SEC 1 Version 2.0 section 3.8 the IV value is not specified in for XOR CTR.
|
||||||
It is specified, however, that it should not be transmitted as part of the ciphertext.
|
It is specified, however, that it should not be transmitted as part of the ciphertext.
|
||||||
This means it cannot be random, as the other party would not know the value.
|
This means it cannot be random, as the other party would not know the value.
|
||||||
Therefore we set it to the zeroed value defined for AES in CTR mode.
|
Therefore we set it to the zeroed value defined for AES in CTR mode.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue