From 834bc098675dcd6b419cb813c1a9eee740f985a8 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Thu, 20 Apr 2023 14:49:40 +0200 Subject: [PATCH] services/aes: always use no_std Signed-off-by: Jean-Pierre De Jesus DIAZ --- services/aes/src/lib.rs | 2 +- services/aes/src/soft/fixslice32.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/aes/src/lib.rs b/services/aes/src/lib.rs index 3eee5f4b7..3ba3297c9 100644 --- a/services/aes/src/lib.rs +++ b/services/aes/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(target_os = "none", no_std)] +#![no_std] /* Soft AES implementations vendored in from https://github.com/RustCrypto/block-ciphers.git diff --git a/services/aes/src/soft/fixslice32.rs b/services/aes/src/soft/fixslice32.rs index 238bd93b0..20fba3820 100644 --- a/services/aes/src/soft/fixslice32.rs +++ b/services/aes/src/soft/fixslice32.rs @@ -16,7 +16,7 @@ #![allow(clippy::unreadable_literal)] use crate::Block; -use std::convert::TryInto; +use core::convert::TryInto; use cipher::{consts::U2, generic_array::GenericArray}; /// AES block batch size for this implementation