Skip to content

Commit

Permalink
crypto-bigint v0.2.0 (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jun 8, 2021
1 parent dd17922 commit 2a6892f
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

19 changes: 19 additions & 0 deletions crypto-bigint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.2.0 (2021-06-07)
### Added
- `ConstantTimeGreater`/`ConstantTimeLess` impls for UInt ([#459])
- `From` conversions between `UInt` and limb arrays ([#460])
- `zeroize` feature ([#461])
- Additional `ArrayEncoding::ByteSize` bounds ([#462])
- `UInt::into_limbs` ([#484])
- `Encoding` trait ([#488])

### Removed
- `NumBits`/`NumBytes` traits; use `Encoding` instead ([#488])

[#459]: https://github.com/RustCrypto/utils/pull/459
[#460]: https://github.com/RustCrypto/utils/pull/460
[#461]: https://github.com/RustCrypto/utils/pull/461
[#462]: https://github.com/RustCrypto/utils/pull/462
[#484]: https://github.com/RustCrypto/utils/pull/484
[#488]: https://github.com/RustCrypto/utils/pull/488

## 0.1.0 (2021-05-30)
- Initial release
2 changes: 1 addition & 1 deletion crypto-bigint/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crypto-bigint"
version = "0.2.0-pre" # Also update html_root_url in lib.rs when bumping this
version = "0.2.0" # Also update html_root_url in lib.rs when bumping this
description = """
Pure Rust implementation of a big integer library which has been designed from
the ground-up for use in cryptographic applications. Provides constant-time,
Expand Down
7 changes: 3 additions & 4 deletions crypto-bigint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
//! **Rust 1.51** at a minimum.
//!
//! # Goals
//! - No heap allocations (`no_std`-friendly)
//! - Constant-time by default: if we add variable-time operations in the future
//! they will be secondary and explicitly labeled.
//! - No heap allocations i.e. `no_std`-friendly.
//! - Constant-time by default using traits from the [`subtle`] crate.
//! - Leverage what is possible today with const generics on `stable` rust.
//! - Support `const fn` as much as possible, including decoding big integers from
//! bytes/hex and performing arithmetic operations on them, with the goal of
Expand All @@ -36,7 +35,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_root_url = "https://docs.rs/crypto-bigint/0.1.0"
html_root_url = "https://docs.rs/crypto-bigint/0.2.0"
)]
#![forbid(unsafe_code, clippy::unwrap_used)]
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
Expand Down
2 changes: 1 addition & 1 deletion crypto-bigint/src/uint/array.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! `generic-array` integration with [`UInt`]
//! `generic-array` integration with `UInt`.
// TODO(tarcieri): completely phase out `generic-array` when const generics are powerful enough

use crate::{ArrayEncoding, ByteArray};
Expand Down
2 changes: 1 addition & 1 deletion crypto-bigint/src/uint/macros.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Macros for defining aliases and relationships between [`UInt`] types.
//! Macros for defining aliases and relationships between `UInt` types.
// TODO(tarcieri): replace these with `const_evaluatable_checked` exprs when stable

// TODO(tarcieri): use `const_evaluatable_checked` when stable to make generic around bits.
Expand Down
2 changes: 1 addition & 1 deletion der/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ readme = "README.md"

[dependencies]
const-oid = { version = "0.6", optional = true, path = "../const-oid" }
crypto-bigint = { version = "=0.2.0-pre", optional = true, features = ["generic-array"], path = "../crypto-bigint" }
crypto-bigint = { version = "0.2", optional = true, features = ["generic-array"], path = "../crypto-bigint" }
der_derive = { version = "0.3", optional = true, path = "derive" }

[dev-dependencies]
Expand Down

0 comments on commit 2a6892f

Please sign in to comment.