Merge pull request #37 from mozilla/rfk/update-to-latest-bidcrypto
Update to latest browserid-crypto.
This commit is contained in:
Коммит
0760ddcb03
|
@ -2,7 +2,7 @@
|
|||
"author": "Lloyd <lloyd@hilaiel.com> (http://lloyd.io)",
|
||||
"name": "browserid-local-verify",
|
||||
"description": "A node.js verification library for local verification of BrowserID assertions.",
|
||||
"version": "0.0.12",
|
||||
"version": "0.1.0",
|
||||
"repository": {
|
||||
"url": "https://github.com/mozilla/browserid-local-verify"
|
||||
},
|
||||
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
"main": "lib/browserid-local-verify",
|
||||
"dependencies": {
|
||||
"browserid-crypto": "0.6.1",
|
||||
"browserid-crypto": "0.7.0",
|
||||
"async": "0.2.9",
|
||||
"dbug": "0.4.1",
|
||||
"urlparse": "0.0.1",
|
||||
|
|
|
@ -16,11 +16,11 @@ async = require('async');
|
|||
|
||||
describe('key size and type', function() {
|
||||
const keyTypes = [
|
||||
{ algorithm: 'rsa', keysize: 64 },
|
||||
{ algorithm: 'rsa', keysize: 128 },
|
||||
{ algorithm: 'rsa', keysize: 256 },
|
||||
{ algorithm: 'dsa', keysize: 128 },
|
||||
{ algorithm: 'dsa', keysize: 256 }
|
||||
{ algorithm: 'RS', keysize: 64 },
|
||||
{ algorithm: 'RS', keysize: 128 },
|
||||
{ algorithm: 'RS', keysize: 256 },
|
||||
{ algorithm: 'DS', keysize: 128 },
|
||||
{ algorithm: 'DS', keysize: 256 }
|
||||
];
|
||||
|
||||
// a local idp with a 1s delay in serving support documents
|
||||
|
|
|
@ -18,11 +18,11 @@ function Client(args) {
|
|||
this.args = args;
|
||||
this.args.idp = args.idp;
|
||||
this.args.email = args.email || 'test@' + args.idp.domain();
|
||||
this.args.algorithm = this.args.algorithm || "dsa";
|
||||
this.args.algorithm = this.args.algorithm || "DS";
|
||||
this.args.keysize = this.args.keysize || 128;
|
||||
this.args.delegation = this.args.delegation || null;
|
||||
|
||||
// allow algorithm specification as (i.e.) 'rsa' or 'RS'
|
||||
// allow algorithm specification as (i.e.) 'rs' or 'RS'
|
||||
this.args.algorithm = this.args.algorithm.toUpperCase();
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ function stop(cb) {
|
|||
module.exports = function(num, cb) {
|
||||
async.times(num, function(x, done) {
|
||||
var idp = new IdP({
|
||||
algorithm: 'dsa',
|
||||
algorithm: 'DS',
|
||||
keysize: 128
|
||||
});
|
||||
idp.start(function(err) {
|
||||
|
|
|
@ -28,11 +28,11 @@ function IdP(args) {
|
|||
this.args = args;
|
||||
// default paramter values
|
||||
this.args.delay = this.args.delay || 0;
|
||||
this.args.algorithm = this.args.algorithm || "rsa";
|
||||
this.args.algorithm = this.args.algorithm || "RS";
|
||||
this.args.keysize = this.args.keysize || 128;
|
||||
this.args.delegation = this.args.delegation || null;
|
||||
|
||||
// allow algorithm specification as (i.e.) 'rsa' or 'RS'
|
||||
// allow algorithm specification as (i.e.) 'rs' or 'RS'
|
||||
this.args.algorithm = this.args.algorithm.toUpperCase();
|
||||
|
||||
if (args.wellKnown) this.wellKnown(args.wellKnown);
|
||||
|
|
Загрузка…
Ссылка в новой задаче