1.1.5 • Published 1 year ago

@platynum/rocatest v1.1.5

Weekly downloads
144
License
BSD-3-Clause
Repository
gitlab
Last release
1 year ago

Javascript ROCA test

This module enables you to check RSA public keys for the ROCA vulnerability. For more information on the vulnerability, please check https://crocs.fi.muni.cz/public/papers/rsa_ccs17.

NOTE: This module is based on https://github.com/fotisl/rocatest

Download module

This module is availbale via npm

$ npm install @platynum/rocatest

Technical details

The test is based on the original moduli test. It can detect vulnerable keys loaded using the jsrsasign https://github.com/kjur/jsrsasign library.

Sample usage

const jsrsasign = require('jsrsasign');
const { rocatest } = require('@platynum/rocatest');

let key = jsrsasign.KEYUTIL.generateKeypair('RSA', 512);
if (rocatest.check(key.pubKeyObj) === true)
    console.log('Key is vulnerable');
1.1.5

1 year ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.4

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago