Struct nrf5x::aes::AesECB [] [src]

pub struct AesECB<'a> {
    regs: *const AESECB_REGS,
    client: Cell<Option<&'a Client<'a>>>,
    input: TakeCell<'a, [u8]>,
    output: TakeCell<'a, [u8]>,
    keystream: Cell<[u8; 128]>,
    current_idx: Cell<usize>,
    start_idx: Cell<usize>,
    end_idx: Cell<usize>,
}

Fields

Input either plaintext or ciphertext to be encrypted or decrypted.

Keystream to be XOR'ed with the input.

Methods

impl<'a> AesECB<'a>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> AES128<'a> for AesECB<'a>
[src]

[src]

Enable the AES hardware. Must be called before any other methods Read more

[src]

Disable the AES hardware

[src]

Set the client instance which will receive crypt_done() callbacks

[src]

Set the encryption key. Returns EINVAL if length is not AES128_KEY_SIZE Read more

[src]

Set the IV (or initial counter). Returns EINVAL if length is not AES128_BLOCK_SIZE Read more

[src]

Begin a new message (with the configured IV) when crypt() is next called. Multiple calls to crypt() may be made between calls to start_message(), allowing the encryption context to extend over non-contiguous extents of data. Read more

[src]

Request an encryption/decryption Read more

impl<'a> AES128Ctr for AesECB<'a>
[src]

[src]

Call before AES128::crypt() to perform AES128Ctr