Function ffmpeg_sys_next::av_sha_init
source · pub unsafe extern "C" fn av_sha_init(
context: *mut AVSHA,
bits: c_int
) -> c_int
Expand description
Initialize SHA-1 or SHA-2 hashing.
@param context pointer to the function context (of size av_sha_size) @param bits number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits) @return zero if initialization succeeded, -1 otherwise