# Enum crypto::sha3::Sha3Mode [−] [src]

    pub enum Sha3Mode {
        Sha3_224,
        Sha3_256,
        Sha3_384,
        Sha3_512,
        Shake128,
        Shake256,
        Keccak224,
        Keccak256,
        Keccak384,
        Keccak512,
    }

SHA-3 Modes.

## Variants

`Sha3_224``Sha3_256``Sha3_384``Sha3_512``Shake128``Shake256``Keccak224``Keccak256``Keccak384``Keccak512`

## Methods

### `impl Sha3Mode`
[src]

#### `fn digest_length(&self) -> usize`

Return the expected hash size in bytes specified for `mode`, or 0 for modes with variable output as for shake functions.

#### `fn is_shake(&self) -> bool`

Return `true` if `mode` is a SHAKE mode.

#### `fn is_keccak(&self) -> bool`

Return `true` if `mode` is a Keccak mode.

## Trait Implementations

### `impl Debug for Sha3Mode`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Copy for Sha3Mode`
[src]

### `impl Clone for Sha3Mode`
[src]

#### `fn clone(&self) -> Sha3Mode`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)