1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use crate::{aesgcm::NONCE_LEN, block::Block};

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod x86;

pub trait Ctr {
    type Block: Block;

    fn new(nonce: &[u8; NONCE_LEN]) -> Self;
    fn block(&self) -> Self::Block;
    fn increment(&mut self);
}