Commit 570af5ff authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #545 from Philipp91/patch-2

Pointer from PKey docs to sign module.
parents 95a26604 e2f15695
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);