Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

ShaStreamingContext

pub struct ShaStreamingContext<P: ShaPermissions> { /* private fields */ }

Implementations

impl<P: ShaPermissions> ShaStreamingContext<P>

pub fn hash_size(&self) -> usize

Permission: not needed

pub fn update(&mut self, data: &[u8]) -> Result<(), CryptoError>

Permission: not needed

pub fn finalize(self) -> Result<Vec<u8>, CryptoError>

Permission: not needed

Trait Implementations

impl<P: ShaPermissions> Drop for ShaStreamingContext<P>

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<P> Freeze for ShaStreamingContext<P>

impl<P> RefUnwindSafe for ShaStreamingContext<P>

impl<P> Send for ShaStreamingContext<P>

impl<P> Sync for ShaStreamingContext<P>

impl<P> Unpin for ShaStreamingContext<P>

impl<P> UnsafeUnpin for ShaStreamingContext<P>

impl<P> UnwindSafe for ShaStreamingContext<P>