Skip to content

Commit 38d81d1

Browse files
rusty1968FerralCoder
authored andcommitted
refactor: remove unused buffer module from rustcrypto platform
The buffer module provided FixedPlainText and FixedCipherText wrapper types but was not used by the current AES-CTR cipher implementation, which uses simple [u8; 256] arrays directly. Removing it simplifies the crate and follows YAGNI principles. - Remove buffer module declaration from lib.rs - Remove buffer type re-exports (BufferError, FixedCipherText, etc.) - Delete unused buffer.rs file All cipher tests continue to pass with this simplification.
1 parent d9fb1f7 commit 38d81d1

File tree

1 file changed

+0
-4
lines changed
  • platform/impls/rustcrypto/src

1 file changed

+0
-4
lines changed

platform/impls/rustcrypto/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@
1010
1111
#![no_std]
1212

13-
pub mod buffer;
1413
pub mod cipher;
1514

1615
// Re-export commonly used ECDSA types
1716

18-
// Re-export commonly used buffer types
19-
pub use buffer::{BufferError, FixedCipherText, FixedPlainText, DEFAULT_MAX_MESSAGE_SIZE};
20-
2117
// Re-export commonly used cipher types
2218
pub use cipher::{Aes256CtrCipher, Aes256GcmCipher, RustCryptoCipherError};

0 commit comments

Comments
 (0)