Skip to content

Commit

Permalink
Merge pull request Argyle-Software#84 from Argyle-Software/v0.6
Browse files Browse the repository at this point in the history
Release: v0.6.0
  • Loading branch information
mberry authored Apr 17, 2023
2 parents a550645 + 28e9a5a commit e3d5a09
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 23 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Version Release

on:
push:
branches:
- master
tags:
- 'v[0-9]+.[0-9]+.*'

Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 0.6.0 - 2023-4-18

### Security
- Rejection sampling (thanks Bas Westerbaan @Cloudflare)

### Changed
- KYBER_N/8 constant definition

### Fixed
- frommont function incorrectly named

### Removed
- Unnecessary copy in decapsulation function

## 0.5.0 - 2023-3-16

### Added
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pqc_kyber"
version = "0.5.0"
version = "0.6.0"
authors = ["Mitchell Berry <foss@mitchellberry.com>"]
edition = "2018"
license = "MIT/Apache-2.0"
Expand All @@ -15,8 +15,8 @@ readme = "readme.md"
rand_core = { version = "0.6.4", default-features = false }
wasm-bindgen = { version = "0.2.84", optional = true }
sha2 = { version = "0.10.6", optional = true , default-features = false }
getrandom = {version = "0.2.8", features = ["js"], optional = true }
zeroize = { version = "1.5.7", features = ["derive"], optional = true }
getrandom = {version = "0.2.9", features = ["js"], optional = true }
zeroize = { version = "1.6.0", features = ["derive"], optional = true }
aes = { version = "0.8.2", optional = true }
ctr = { version = "0.9.2", optional = true }
# Optional dev-deps, see https://github.com/rust-lang/cargo/issues/1596
Expand Down
5 changes: 4 additions & 1 deletion pkg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
],
"module": "pqc_kyber.js",
"types": "pqc_kyber.d.ts",
"sideEffects": false,
"sideEffects": [
"./pqc_kyber.js",
"./snippets/*"
],
"keywords": [
"kyber",
"kem",
Expand Down
28 changes: 14 additions & 14 deletions pkg/pqc_kyber_bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export function __wbindgen_object_drop_ref(arg0) {
takeObject(arg0);
};

export function __wbg_crypto_e1d53a1d73fb10b8(arg0) {
export function __wbg_crypto_70a96de3b6b73dac(arg0) {
const ret = getObject(arg0).crypto;
return addHeapObject(ret);
};
Expand All @@ -485,17 +485,17 @@ export function __wbindgen_is_object(arg0) {
return ret;
};

export function __wbg_process_038c26bf42b093f8(arg0) {
export function __wbg_process_dd1577445152112e(arg0) {
const ret = getObject(arg0).process;
return addHeapObject(ret);
};

export function __wbg_versions_ab37218d2f0b24a8(arg0) {
export function __wbg_versions_58036bec3add9e6f(arg0) {
const ret = getObject(arg0).versions;
return addHeapObject(ret);
};

export function __wbg_node_080f4b19d15bc1fe(arg0) {
export function __wbg_node_6a9d28205ed5b0d8(arg0) {
const ret = getObject(arg0).node;
return addHeapObject(ret);
};
Expand All @@ -505,12 +505,12 @@ export function __wbindgen_is_string(arg0) {
return ret;
};

export function __wbg_msCrypto_6e7d3e1f92610cbb(arg0) {
export function __wbg_msCrypto_adbc770ec9eca9c7(arg0) {
const ret = getObject(arg0).msCrypto;
return addHeapObject(ret);
};

export function __wbg_require_78a3dcfbdba9cbce() { return handleError(function () {
export function __wbg_require_f05d779769764e82() { return handleError(function () {
const ret = module.require;
return addHeapObject(ret);
}, arguments) };
Expand All @@ -525,12 +525,12 @@ export function __wbindgen_string_new(arg0, arg1) {
return addHeapObject(ret);
};

export function __wbg_getRandomValues_805f1c3d65988a5a() { return handleError(function (arg0, arg1) {
export function __wbg_getRandomValues_3774744e221a22ad() { return handleError(function (arg0, arg1) {
getObject(arg0).getRandomValues(getObject(arg1));
}, arguments) };

export function __wbg_randomFillSync_6894564c2c334c42() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
export function __wbg_randomFillSync_e950366c42764a07() { return handleError(function (arg0, arg1) {
getObject(arg0).randomFillSync(takeObject(arg1));
}, arguments) };

export function __wbg_newnoargs_2b8b6bd7753c76ba(arg0, arg1) {
Expand Down Expand Up @@ -583,6 +583,11 @@ export function __wbg_buffer_cf65c07de34b9a08(arg0) {
return addHeapObject(ret);
};

export function __wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5(arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
};

export function __wbg_new_537b7341ce90bb31(arg0) {
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
Expand All @@ -592,11 +597,6 @@ export function __wbg_set_17499e8aa4003ebd(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};

export function __wbg_length_27a2afe8ab42b09f(arg0) {
const ret = getObject(arg0).length;
return ret;
};

export function __wbg_newwithlength_b56c882b57805732(arg0) {
const ret = new Uint8Array(arg0 >>> 0);
return addHeapObject(ret);
Expand Down
Binary file modified pkg/pqc_kyber_bg.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![Crates](https://img.shields.io/crates/v/pqc-kyber)](https://crates.io/crates/pqc-kyber)
[![NPM](https://img.shields.io/npm/v/pqc-kyber?color=yellow)](https://www.npmjs.com/package/pqc-kyber)
[![License](https://img.shields.io/crates/l/pqc_kyber)](https://github.com/Argyle-Software/kyber/blob/master/LICENSE-MIT)
[![dependency status](https://deps.rs/crate/pqc_kyber/0.4.0/status.svg)](https://deps.rs/crate/pqc_kyber/0.5.0)
[![dependency status](https://deps.rs/crate/pqc_kyber/0.6.0/status.svg)](https://deps.rs/crate/pqc_kyber/0.6.0)

A rust implementation of the Kyber algorithm, a KEM standardised by the NIST Post-Quantum Standardization Project.

Expand Down Expand Up @@ -134,7 +134,7 @@ If no security level is specified then kyber768 is used by default as recommende

```toml
[dependencies]
pqc_kyber = {version = "0.5.0", features = ["kyber512", "90s", "avx2"]}
pqc_kyber = {version = "0.6.0", features = ["kyber512", "90s", "avx2"]}
```


Expand Down
2 changes: 1 addition & 1 deletion release.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* name - Replace `pqc_kyber` with `pqc-kyber`
* description - Revert line to replace with old description

9. `git commit -m "v0.0.0"`
9. `git commit -m "release v0.0.0"`

10. `git tag v0.0.0`

Expand Down

0 comments on commit e3d5a09

Please sign in to comment.