Merge pull request #545 from Philipp91/patch-2
Pointer from PKey docs to sign module.
This commit is contained in:
commit
570af5ff09
|
|
@ -117,6 +117,9 @@ impl PKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a new `PKey` containing an HMAC key.
|
/// 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> {
|
pub fn hmac(key: &[u8]) -> Result<PKey, ErrorStack> {
|
||||||
unsafe {
|
unsafe {
|
||||||
assert!(key.len() <= c_int::max_value() as usize);
|
assert!(key.len() <= c_int::max_value() as usize);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue