Skip to content

Commit f286144

Browse files
committed
Minor.
1 parent 9801930 commit f286144

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

keystore/encryptor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ func (k *keystore) encryptECDHP256Anonymous(data []byte, remotePubKey []byte) ([
305305

306306
// Caution:
307307
// Include both nonce and ephemeral public key in AAD for complete authentication
308-
// AAD is [12 byte nonce] [65 byte ephemeral public key]. This is in line with https://www.ietf.org/rfc//rfc5116:
308+
// AAD is [12 byte nonce] [65 byte ephemeral public key].
309+
// Including nonce in AAD is in line with https://www.ietf.org/rfc//rfc5116:
309310
// <<<The nonce is authenticated internally to the algorithm, and it is not
310311
// necessary to include it in the AD input. The nonce MAY be included
311312
// in P or A if it is convenient to the application.>>>

0 commit comments

Comments
 (0)