hashes: Use automatic link
Cargo emits various warnings when building the docs: warning: this URL is not a hyperlink As suggested, add angle brackets to create automatic links.
This commit is contained in:
parent
96e8a080d1
commit
b4c14a4b7c
|
@ -22,7 +22,7 @@
|
||||||
//! SHA512/256 is a hash function that uses the sha512 alogrithm but it truncates
|
//! SHA512/256 is a hash function that uses the sha512 alogrithm but it truncates
|
||||||
//! the output to 256 bits. It has different initial constants than sha512 so it
|
//! the output to 256 bits. It has different initial constants than sha512 so it
|
||||||
//! produces an entirely different hash compared to sha512. More information at
|
//! produces an entirely different hash compared to sha512. More information at
|
||||||
//! https://eprint.iacr.org/2010/548.pdf.
|
//! <https://eprint.iacr.org/2010/548.pdf>.
|
||||||
|
|
||||||
use core::str;
|
use core::str;
|
||||||
use core::ops::Index;
|
use core::ops::Index;
|
||||||
|
@ -35,7 +35,7 @@ use crate::{hex, sha512, sha512::BLOCK_SIZE, Error};
|
||||||
/// SHA512/256 is a hash function that uses the sha512 alogrithm but it truncates
|
/// SHA512/256 is a hash function that uses the sha512 alogrithm but it truncates
|
||||||
/// the output to 256 bits. It has different initial constants than sha512 so it
|
/// the output to 256 bits. It has different initial constants than sha512 so it
|
||||||
/// produces an entirely different hash compared to sha512. More information at
|
/// produces an entirely different hash compared to sha512. More information at
|
||||||
/// https://eprint.iacr.org/2010/548.pdf.
|
/// <https://eprint.iacr.org/2010/548.pdf>.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct HashEngine(sha512::HashEngine);
|
pub struct HashEngine(sha512::HashEngine);
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ impl crate::HashEngine for HashEngine {
|
||||||
crate::internal_macros::hash_type! {
|
crate::internal_macros::hash_type! {
|
||||||
256,
|
256,
|
||||||
false,
|
false,
|
||||||
"Output of the SHA512/256 hash function.\n\nSHA512/256 is a hash function that uses the sha512 alogrithm but it truncates the output to 256 bits. It has different initial constants than sha512 so it produces an entirely different hash compared to sha512. More information at https://eprint.iacr.org/2010/548.pdf. ",
|
"Output of the SHA512/256 hash function.\n\nSHA512/256 is a hash function that uses the sha512 alogrithm but it truncates the output to 256 bits. It has different initial constants than sha512 so it produces an entirely different hash compared to sha512. More information at <https://eprint.iacr.org/2010/548.pdf>. ",
|
||||||
"crate::util::json_hex_string::len_32"
|
"crate::util::json_hex_string::len_32"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue