From 99c81a5e4990e751ec72719ccb37005386933374 Mon Sep 17 00:00:00 2001 From: eschorn1 Date: Fri, 8 Mar 2024 13:25:25 -0600 Subject: [PATCH] v0.1.1 RC --- CHANGELOG.md | 8 ++++++++ README.md | 1 + wasm/Cargo.toml | 7 ++++--- wasm/src/lib.rs | 2 +- wasm/www/index.html | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 563723e..e2bb1b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ 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.1.1 (2024-03-08) + +- Extensive internal refinement +- Rework of expanded keys (in place of precomputes) +- Benchmarking, constant time checks, embedded sample, fuzz testing, wasm example + + ## 0.1.0 (2024-01-01) - Initial release diff --git a/README.md b/README.md index 5df5268..d91396d 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ The Rust [Documentation][docs-link] lives under each **Module** corresponding to it will be done with a minor version bump. * All on-by-default features of this library are covered by SemVer. * This software is experimental and still under active development -- USE AT YOUR OWN RISK! +* Code repository contains extensive examples related to benchmarking, fuzzing, CT checks, embedded HW, and WASM use. ## License diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 53fe453..a836c78 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "wasm" -version = "0.1.0" -authors = ["eschorn1 "] -edition = "2018" +version = "0.1.1" +authors = ["Eric Schorn "] description = "Sample web page utilizing FIPS 204 code" repository = "" license = "MIT OR Apache-2.0" +publish = false +edition = "2021" [lib] diff --git a/wasm/src/lib.rs b/wasm/src/lib.rs index 25a01a5..c2d0327 100644 --- a/wasm/src/lib.rs +++ b/wasm/src/lib.rs @@ -16,7 +16,7 @@ pub fn sign(message: &str) -> String { let sig_hex = hex::encode(&sig); let pk_hex = hex::encode(&pk.into_bytes()); - let s0 = format!("The message to sign is: {} len {}\n", message, message.len()); + let s0 = format!("The message to sign is: {}\n", message); let s1 = format!("The seed used to generate the keys is: {}\n\n", seed); let s2 = format!("The generated public||private key is: {}\n", sk_hex); let s3 = format!("Using that private key, the calculated signature is: {}\n\n", sig_hex); diff --git a/wasm/www/index.html b/wasm/www/index.html index 856d9fe..7e3748c 100644 --- a/wasm/www/index.html +++ b/wasm/www/index.html @@ -17,7 +17,7 @@

FIPS 204 WASM Demo

its results can be compared to native test cases. Please see section 3.5.1 of the FIPS 204 standard for critical - requirements on randomness when utlizing FIPS 204 in production. + requirements on randomness when utilizing FIPS 204 in production.

Enter a message to sign below and click on 'Submit'. Keys will be generated, the message signed, and results