Skip to content

Commit

Permalink
Remove bump of configure version
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Aug 12, 2024
1 parent fb6a84e commit 1d235c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,3 @@ log-info = []
log-debug = []
log-warn = []
log-error = []

# Support for large ECC keys (brainpool 512 and NIST P521), that do not have functional import/export
large-ecc = []
14 changes: 2 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const BACKEND_DIR: &Path = path!("se050-bak");
pub const GLOBAL_ATTEST_ID: ObjectId = ObjectId(hex!("F0000012"));

/// The version to know wether it should be re-configured
pub const SE050_CONFIGURE_VERSION: u32 = 3;
pub const SE050_CONFIGURE_VERSION: u32 = 2;

pub enum Se05xLocation {
Persistent,
Expand Down Expand Up @@ -199,17 +199,6 @@ mod tests {
fn backend_version() {
// History of previous SE050_CONFIGURE_VERSION and the curves they used
let curves_versions: &[(u32, &[_])] = &[
(
3,
&[
PRIME256V1_INITIALIZER,
SECP384R1_INITIALIZER,
SECP521R1_INITIALIZER,
BRAINPOOL_P256R1_INITIALIZER,
BRAINPOOL_P384R1_INITIALIZER,
BRAINPOOL_P512R1_INITIALIZER,
],
),
(
2,
&[
Expand All @@ -218,6 +207,7 @@ mod tests {
SECP521R1_INITIALIZER,
BRAINPOOL_P256R1_INITIALIZER,
BRAINPOOL_P384R1_INITIALIZER,
BRAINPOOL_P512R1_INITIALIZER,
],
),
(1, &[PRIME256V1_INITIALIZER, SECP521R1_INITIALIZER]),
Expand Down

0 comments on commit 1d235c8

Please sign in to comment.