[−][src]Function pspsdk_sys::sdk::sceKernelUtilsSha1BlockInit
pub unsafe extern "C" fn sceKernelUtilsSha1BlockInit(
ctx: *mut SceKernelUtilsSha1Context
) -> c_int
Function to initialise a context for SHA1 hashing.
@param ctx - Pointer to a context.
@return < 0 on error.
@par Example: @code SceKernelUtilsSha1Context ctx; u8 digest[20]; sceKernelUtilsSha1BlockInit(&ctx); sceKernelUtilsSha1BlockUpdate(&ctx, (u8*) "Hello", 5); sceKernelUtilsSha1BlockResult(&ctx, digest); @endcode