Skip to main content

hmac_sha256

Function hmac_sha256 

Source
pub fn hmac_sha256(key: &[u8], data: &[u8]) -> [u8; 32]
Expand description

Computes HMAC-SHA256 with a fixed-size key block and no external process.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::dynamic::hmac_sha256.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::hmac_sha256("key", b"");