Merge pull request #545 from Philipp91/patch-2

Pointer from PKey docs to sign module.
This commit is contained in:
Steven Fackler 2017-01-03 12:37:17 -08:00 committed by GitHub
commit 570af5ff09
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ impl PKey {
}
/// Creates a new `PKey` containing an HMAC key.
///
/// # Note
/// To compute HMAC values, use the `sign` module.
pub fn hmac(key: &[u8]) -> Result<PKey, ErrorStack> {
unsafe {
assert!(key.len() <= c_int::max_value() as usize);