Skip to main content

encode_string_alloc

Function encode_string_alloc 

Source
pub fn encode_string_alloc(
    algorithm: Algorithm,
    version: Version,
    params: &Params,
    salt: &[u8],
    hash: &[u8],
) -> Result<String, Error>
Expand description

encode_string into a freshly allocated String.

ยงErrors

As encode_string, plus Error::MemoryAllocationError if the buffer cannot be allocated (the C returns the same code when its malloc fails).