Skip to content

Commit

Permalink
Remove asm-related TODO comments (#215)
Browse files Browse the repository at this point in the history
Closes #213

The comments are removed in favor of RustCrypto/asm-hashes#26.
  • Loading branch information
newpavlov committed Jan 13, 2021
1 parent ff2c144 commit 0215edc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion sha1/src/compress.rs
Expand Up @@ -10,7 +10,6 @@ cfg_if::cfg_if! {
mod aarch64;
use aarch64::compress as compress_inner;
} else if #[cfg(all(feature = "asm", any(target_arch = "x86", target_arch = "x86_64")))] {
// TODO: replace after sha1-asm rework
fn compress_inner(state: &mut [u32; 5], blocks: &[[u8; 64]]) {
for block in blocks {
sha1_asm::compress(state, block);
Expand Down
1 change: 0 additions & 1 deletion sha2/src/sha256.rs
Expand Up @@ -147,7 +147,6 @@ cfg_if::cfg_if! {
mod aarch64;
use aarch64::compress;
} else if #[cfg(all(feature = "asm", any(target_arch = "x86", target_arch = "x86_64")))] {
// TODO: replace after sha2-asm rework
fn compress(state: &mut [u32; 8], blocks: &[[u8; 64]]) {
for block in blocks {
sha2_asm::compress256(state, block);
Expand Down
1 change: 0 additions & 1 deletion sha2/src/sha256/aarch64.rs
Expand Up @@ -10,7 +10,6 @@ pub fn compress(state: &mut [u32; 8], blocks: &[[u8; 64]]) {
// TODO: Replace with https://github.com/rust-lang/rfcs/pull/2725
// after stabilization
if sha2_supported() {
// TODO: replace after sha2-asm rework
for block in blocks {
sha2_asm::compress256(state, block);
}
Expand Down
1 change: 0 additions & 1 deletion sha2/src/sha512.rs
Expand Up @@ -232,7 +232,6 @@ cfg_if::cfg_if! {
mod soft;
use soft::compress;
} else if #[cfg(all(feature = "asm", any(target_arch = "x86", target_arch = "x86_64")))] {
// TODO: replace after sha2-asm rework
fn compress(state: &mut [u64; 8], blocks: &[[u8; 128]]) {
for block in blocks {
sha2_asm::compress512(state, block);
Expand Down

0 comments on commit 0215edc

Please sign in to comment.