Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
Роман Сопов committed Sep 11, 2015
1 parent 1e35d57 commit ab04edb
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1,468 deletions.
32 changes: 29 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
var fs = require('fs');
var Crypto = require('crypto');

/*
console.log('Ciphers: ', Crypto.getCiphers());
console.log('Hashes: ', Crypto.getHashes());
console.log('Path: ', gui.App.dataPath);
*/

var res = rutoken.initialize();
console.log('initialize() ', res);

Expand Down Expand Up @@ -50,7 +49,34 @@
console.log('Token info #' + i + "\n", res);

var res = rutoken.getMechanismList(i);
console.log('Mechanism list #' + i + "\n", res);
if(res.error == CKR_OK) {
if(res.data.count > 0) {
console.log('Mechanism list #' + i + "\n");
$.each(res.data.list, function(i, item){
//console.log(item);
console.log(CKM[item.type]);
/* Рутокен ЭЦП
CKM_RSA_PKCS_KEY_PAIR_GEN
CKM_RSA_PKCS
CKM_RSA_PKCS_OAEP
CKM_MD5
CKM_SHA_1
CKM_GOSTR3410_KEY_PAIR_GEN
CKM_GOSTR3410
CKM_GOSTR3410_DERIVE
CKM_GOSTR3411
CKM_GOSTR3410_WITH_GOSTR3411
CKM_GOST28147_KEY_WRAP
CKM_GOST28147_ECB
CKM_GOST28147
CKM_GOST28147_KEY_GEN
CKM_GOST28147_MAC
*/
});
}
} else {
console.log('Mechanism list #' + i + " Error: \n", CKR[res.error]);
}

}

Expand Down
104 changes: 0 additions & 104 deletions node_modules/async/CHANGELOG.md

This file was deleted.

19 changes: 0 additions & 19 deletions node_modules/async/LICENSE

This file was deleted.

Loading

0 comments on commit ab04edb

Please sign in to comment.