Skip to main content

Module sha

Module sha 

Source
Expand description

Components for collections of SHA.

§Usage

   type Sha = components::sha::ShaSoftware256ComponentType;
   const SHA_DIGEST_LEN: usize = 32;
   type ShaDriver = components::sha::ShaDriverComponentType<Sha, SHA_DIGEST_LEN>;

   let sha_driver = components::sha::ShaDriverComponent::new(
       board_kernel,
       capsules_extra::sha::DRIVER_NUM,
       sha,
   )
   .finalize(components::sha_driver_component_static!(
       Sha,
       SHA_DIGEST_LEN
   ));

Structs§

ShaDriverComponent
ShaSoftware256Component

Type Aliases§

ShaDriverComponentType
ShaSoftware256ComponentType