mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Unmarkdownify the secureCompare changelog entry
This commit is contained in:
parent
ce9f3111fd
commit
4a2b94e189
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ constant time regardless of the equality of the two ranges in order to protect
|
||||||
against timing attacks. For more information on the attack, please refer to
|
against timing attacks. For more information on the attack, please refer to
|
||||||
the docs on $(REF secureEqual, std, digest, digest).
|
the docs on $(REF secureEqual, std, digest, digest).
|
||||||
|
|
||||||
```
|
-----
|
||||||
import std.digest.digest : secureEqual, toHexString;
|
import std.digest.digest : secureEqual, toHexString;
|
||||||
import std.digest.hmac : hmac;
|
import std.digest.hmac : hmac;
|
||||||
import std.digest.sha : SHA1;
|
import std.digest.sha : SHA1;
|
||||||
|
@ -26,4 +26,4 @@ void main()
|
||||||
assert( secureEqual(hex1, hex2));
|
assert( secureEqual(hex1, hex2));
|
||||||
assert(!secureEqual(hex1, hex3));
|
assert(!secureEqual(hex1, hex3));
|
||||||
}
|
}
|
||||||
```
|
-----
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue