[][src]Function stainless_ffmpeg_sys::av_sha_init

pub unsafe extern "C" fn av_sha_init(context: *mut AVSHA, bits: c_int) -> c_int

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