Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/hmac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- 1.71.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -47,7 +47,7 @@ jobs:
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- 1.71.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4.1.1
Expand Down
93 changes: 47 additions & 46 deletions hmac/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions hmac/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
[package]
name = "hmac"
version = "0.12.1" # Also update html_root_url in lib.rs when bumping this
version = "0.13.0-pre"
description = "Generic implementation of Hash-based Message Authentication Code (HMAC)"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
readme = "README.md"
documentation = "https://docs.rs/hmac"
repository = "https://github.com/RustCrypto/MACs"
keywords = ["crypto", "mac", "hmac", "digest"]
categories = ["cryptography", "no-std"]
rust-version = "1.71"

[dependencies]
digest = { version = "0.10.3", features = ["mac"] }
digest = { version = "=0.11.0-pre.3", features = ["mac"] }

[dev-dependencies]
digest = { version = "0.10", features = ["dev"] }
md-5 = { version = "0.10", default-features = false }
sha1 = { version = "0.10", default-features = false }
sha2 = { version = "0.10", default-features = false }
streebog = { version = "0.10", default-features = false }
hex-literal = "0.2.2"
digest = { version = "=0.11.0-pre.3", features = ["dev"] }
md-5 = { version = "=0.11.0-pre.0", default-features = false }
sha1 = { version = "=0.11.0-pre.0", default-features = false }
sha2 = { version = "=0.11.0-pre.0", default-features = false }
streebog = { version = "=0.11.0-pre.0", default-features = false }
hex-literal = "0.4"

[features]
std = ["digest/std"]
Expand Down
4 changes: 2 additions & 2 deletions hmac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Pure Rust implementation of the [Hash-based Message Authentication Code (HMAC)][

## Minimum Supported Rust Version

Rust **1.41** or higher.
Rust **1.71** or higher.

Minimum supported Rust version can be changed in the future, but it will be
done with a minor version bump.
Expand Down Expand Up @@ -44,7 +44,7 @@ dual licensed as above, without any additional terms or conditions.
[docs-image]: https://docs.rs/hmac/badge.svg
[docs-link]: https://docs.rs/hmac/
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.71+-blue.svg
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260044-MACs

Expand Down
9 changes: 4 additions & 5 deletions hmac/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//!
//! ```rust
//! use sha2::Sha256;
//! use hmac::{Hmac, Mac};
//! use hmac::{Hmac, KeyInit, Mac};
//! use hex_literal::hex;
//!
//! // Create alias for HMAC-SHA256
Expand Down Expand Up @@ -49,7 +49,7 @@
//!
//! ```rust
//! # use sha2::Sha256;
//! # use hmac::{Hmac, Mac};
//! # use hmac::{Hmac, KeyInit, Mac};
//! # use hex_literal::hex;
//! # type HmacSha256 = Hmac<Sha256>;
//! let mut mac = HmacSha256::new_from_slice(b"my secret and secure key")
Expand Down Expand Up @@ -84,8 +84,7 @@
#![no_std]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/26acc39f/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/26acc39f/logo.svg",
html_root_url = "https://docs.rs/hmac/0.12.1"
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/26acc39f/logo.svg"
)]
#![forbid(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_cfg))]
Expand All @@ -95,7 +94,7 @@
extern crate std;

pub use digest;
pub use digest::Mac;
pub use digest::{KeyInit, Mac};

use digest::{
core_api::{Block, BlockSizeUser},
Expand Down
2 changes: 1 addition & 1 deletion hmac/src/optim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use core::{fmt, slice};
#[cfg(feature = "reset")]
use digest::Reset;
use digest::{
array::typenum::{IsLess, Le, NonZero, U256},
block_buffer::Eager,
core_api::{
AlgorithmName, Block, BlockSizeUser, Buffer, BufferKindUser, CoreProxy, CoreWrapper,
FixedOutputCore, OutputSizeUser, UpdateCore,
},
crypto_common::{Key, KeySizeUser},
generic_array::typenum::{IsLess, Le, NonZero, U256},
HashMarker, InvalidLength, KeyInit, MacMarker, Output,
};

Expand Down