| ... | @@ -318,6 +318,7 @@ pub const Ed25519 = struct { | ... | @@ -318,6 +318,7 @@ pub const Ed25519 = struct { |
| 318 | h.update(&scalar_and_prefix.prefix); | 318 | h.update(&scalar_and_prefix.prefix); |
| 319 | var noise2: [noise_length]u8 = undefined; | 319 | var noise2: [noise_length]u8 = undefined; |
| 320 | crypto.random.bytes(&noise2); | 320 | crypto.random.bytes(&noise2); |
| | 321 | h.update(&noise2); |
| 321 | if (noise) |*z| { | 322 | if (noise) |*z| { |
| 322 | h.update(z); | 323 | h.update(z); |
| 323 | } | 324 | } |