jkurwa
======
GF2m ellipcit curves library in javascript.
* Supports short Weierstrass curves used in Ukrainian standard DSTU 4145;
* Provides key deriviation for DSTU block ciphers (see https://github.com/muromec/em-gost);
* Encypted containers can be parsed and decrypted if respective cipher implementation is passed. See gost89 and dstucrypt/agent for reference;
* Encrypted and signed messages in wicked PKCS#7 format used by tax office (sta.gov.ua) are supported for both read and write (see jk.Box, jk.util.transport);
* Includes parsers for signed and encrypted messages, X509.v3 certificates, JKS and Key-6.dat key containers, TSP, CMP, OCSP requests and responses.
Warning
-------
* Jkurwa does not guarranty constant-time calculcation;
* Jkurwa only verifies signature against public key and does not actually check X.509 certificate validity unless CA list is loaded.
See dstucrypt/agent repo readme for details.
![cej repo je strefa wolna wid Kaczyńskiego](https://raw.githubusercontent.com/muromec/jkurwa/master/kdpv.jpg)
[![Build Status](https://travis-ci.org/dstucrypt/jkurwa.svg?branch=master)](https://travis-ci.org/dstucrypt/jkurwa)
[![codecov](https://codecov.io/gh/dstucrypt/jkurwa/branch/master/graph/badge.svg)](https://codecov.io/gh/dstucrypt/jkurwa)
[![npm module](https://badge.fury.io/js/jkurwa.svg)](https://www.npmjs.org/package/jkurwa)
[![dependencies](https://david-dm.org/dstucrypt/jkurwa.png)](https://david-dm.org/dstucrypt/jkurwa)
Usage
-----
See ./test/ and ./examples/ directories. See dstucrypt/agent repo for example app.
Sister libraries:
* https://github.com/dstucrypt/ukurwa4145 - DSTU 4145 in Python;
* https://github.com/dstucrypt/gost89 - GOST cipher, hash, mac, key wrapper and container loader in pure js;
* https://github.com/dstucrypt/python-gost89 - gost hash for python (2 and 3);
* https://github.com/dstucrypt/jksreader - library to parse java-style key containers used by privatbank;
* https://github.com/muromec/zozol - dumb ASN.1 parser and serialisator for python with X509 and wicked CMS schemas;
* https://github.com/dstucrypt/openssl-dstu - patched OpenSSL with DSTU 4145 and GOST family support (outdated, unmaintained).
Demo site: https://dstucrypt.github.io/signerbox2/
Demo apps:
* https://github.com/dstucrypt/agent -- command line utility and daemon service to sign, encrypt and decrypt files;
* https://github.com/dstucrypt/dstukeys -- web interface with examples of authentication;
* https://github.com/dstucrypt/signerbox2/ -- another web app;
* https://github.com/max1gu/e-rro -- cash register app (прогрманий рро).
To cross-verifiy signatures use https://czo.gov.ua/verify .
References
----------
* Certificate format (in Ukrainian), basically kind of X.509v3: http://zakon4.rada.gov.ua/laws/show/z1398-12
* Private key container format, PBES2-like (effective from 01.01.2016): http://zakon3.rada.gov.ua/laws/show/z2227-13
* See https://github.com/dstucrypt/agent repo for tax report format and implementation details
* Law on Trust Services - http://zakon.rada.gov.ua/laws/show/2155-19
Bonus
---
First known use of the word Kurwa was recorded in 1415. Happy 600 birthday Kurwa!
没有合适的资源?快使用搜索试试~ 我知道了~
JS中的黄道曲线密码学标准DSTU4145.zip
共94个文件
js:61个
cer:14个
transport:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 106 浏览量
2023-03-28
13:56:50
上传
评论
收藏 924KB ZIP 举报
温馨提示
JS中的黄道曲线密码学标准DSTU4145
资源推荐
资源详情
资源评论
收起资源包目录
JS中的黄道曲线密码学标准DSTU4145.zip (94个子文件)
jkurwa-master
lib
app
ctx.js 17KB
keycoder.js 1KB
services
cmp.js 1KB
tsp.js 1KB
ocsp.js 1KB
rand.js 282B
spec
rfc5035-certid.js 2KB
dstszi2010.js 12KB
pbes.js 4KB
pfx.js 2KB
rfc3161-tsp.js 2KB
rfc2560-ocsp.js 8KB
rfc5126-cades.js 2KB
rfc4210-cmp.js 10KB
keystore.js 4KB
rfc3280.js 9KB
field.js 8KB
rand.browser.js 106B
util.js 2KB
wnaf
wnaf.js 2KB
index.js 239B
mul.js 3KB
models
Pub.js 4KB
Message.js 14KB
Certificate.js 12KB
CertificateRef.js 621B
index.js 191B
Priv.js 11KB
OcspResponse.js 5KB
index.js 1KB
standard.js 1KB
point.js 3KB
util
complain.js 174B
pem.js 2KB
base64.js 2KB
invariant.js 157B
transport.js 6KB
str.js 383B
tsp.js 191B
role.js 2KB
load.js 3KB
packed_xml.js 4KB
gf2m.js 6KB
curve.js 9KB
codecov.yml 23B
.travis.yml 86B
CHANGES.md 224B
examples
unpack.js 341B
decrypt.js 1KB
certfetch.js 3KB
gost-decrypt.js 1KB
gost-crypt.js 2KB
tsp.js 2KB
ocsp.js 2KB
package.json 1KB
package-lock.json 625KB
.npmignore 93B
test
setup.js 145B
test-transport.js 458B
test-cert.js 17KB
test-box.js 13KB
test-store.js 2KB
data
PRIV1.cer 250B
message_detached.p7 1023B
Key40A0.pem 395B
SELF_SIGNED1.cer 525B
STORE_A040.pem 667B
SELF_SIGNED_ENC_E54B.cer 590B
CA-Justice.cer 1KB
SELF_SIGNED_ENC_6929.cer 525B
KeyE54B.cer 345B
enc_message.p7 438B
Key40A0.cer 250B
CAList.cer 2KB
SFS_1.cer 2KB
clear_message.transport 57B
SELF_SIGNED_ENC1.cer 590B
Key6929.cer 250B
STORE_A040.dat 436B
message.transport 1KB
CA-Justice-ECDSA-261217.cer 1KB
enc_message.transport 1010B
CA-Justice-ECDSA-261217.pem 2KB
SELF_SIGNED_ENC_40A0.cer 525B
message.p7 1KB
CZOROOT.cer 1KB
test-api.js 8KB
test-sign.js 7KB
test-b64.js 753B
test.js 14KB
test-gf2m.js 1003B
.gitignore 37B
kdpv.jpg 696KB
README.md 3KB
共 94 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功