6.0.4 • Published 10 months ago

sidh v6.0.4

Weekly downloads
36
License
MIT
Repository
github
Last release
10 months ago

sidh

Overview

The SIDH post-quantum asymmetric cypher compiled to WebAssembly using Emscripten. The specific implementation in use is from Microsoft Research. A simple JavaScript wrapper is provided to make SIDH easy to use in web applications.

The default parameter set is SIKEp751 (roughly 256-bit strength).

WARNING: You probably shouldn't use this.

Example Usage

import {sidh} from 'sidh';

const keyPair /*: {privateKey: Uint8Array; publicKey: Uint8Array} */ =
	await sidh.keyPair()
;

const {cyphertext, secret} /*: {cyphertext: Uint8Array; secret: Uint8Array} */ =
	await sidh.encrypt(keyPair.publicKey)
;

const decrypted /*: Uint8Array */ =
	await sidh.decrypt(cyphertext, keyPair.privateKey) // same as secret
;

console.log(keyPair);
console.log(secret);
console.log(cyphertext);
console.log(decrypted);

Changelog

Breaking changes in major versions:

6.0.0:

  • Upgraded to SIDH 3.5.1 with stronger parameters and a KEM API. For backwards compatibility with previous versions of this package, use sidh-legacy.

5.0.0:

  • Upgraded to SIDH 3.0 and built new API in line with mceliece and ntru.

4.0.0:

  • As part of upgrading from asm.js to WebAssembly (with asm.js included as a fallback), the API is fully asynchronous.

3.0.0:

  • Removed some undocumented functions as part of minor API cleanup.

2.0.0:

  • Upgraded to SIDH 2.0.
6.0.3

12 months ago

6.0.4

10 months ago

6.0.2

1 year ago

5.1.5

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

5.1.6

2 years ago

5.1.4

4 years ago

5.1.3

4 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.1.0-next

5 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.1.6

6 years ago

4.1.5

6 years ago

4.1.4

6 years ago

4.1.3

6 years ago

4.1.2

6 years ago

4.1.0

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago