Miroshin Stepan

Results 111 issues of Miroshin Stepan

Propose to add new functionality. Add feature allows to convert ASN structure in Javascript object using given schema. ``` Extension = { type: "SEQUENCE", value: { typeId: {type: "OBJECT ITDENTIFIER"},...

1. Updated types 2. Extended function fromBase64 3. Removed `typings` from repo. It can be installed via `typings install` command 4. Ingored `typings` on publish

`EnvelopedData::decrypt` imports private key from pkcs8 buffer only. But what to do if CryptoKey is unextractable? We need to extend that function and make `decryptionParameters.recipientPrivateKey: ArrayBuffer | CryptoKey` https://github.com/PeculiarVentures/PKI.js/blob/8f84d40ee6181d3020239a85f4d923bb13a4d99e/src/EnvelopedData.js#L1446-L1451

enhancement

I've got EnvelopedData with RSA encryption algorithm. I've got an exception on decryption ### Exception ``` Error: Object's schema was not verified against input data for RSAESOAEPParams at RSAESOAEPParams.fromSchema (packages/protocol/node_modules/pkijs/src/RSAESOAEPParams.js:169:10)...

Is it possible to create PFX file which can be used in Windows CAPI, OSX KeyChain, NSS and OpenSSL? I've tried examples from pkijs.org. Created PFX files work with OpenSSL...

I've got error from https://github.com/PeculiarVentures/PKI.js/blob/master/src/CryptoEngine.js#L284 ```js TypeError: Cannot read property 'toUpperCase' of undefined at CryptoEngine.importKey (node_modules/pkijs/build/CryptoEngine.js:351:39) at CryptoEngine.getPublicKey (node_modules/pkijs/build/CryptoEngine.js:2548:16) at Certificate.getPublicKey (node_modules/pkijs/build/Certificate.js:478:43) ``` W3 Crypto API supports string for `hash`...

Using of Uint8Array instead of ArrayBuffer allows minimizing data copying. Allos it must allow extending types for incoming arguments. The current version uses `slice` for getting subarrays. It copies data...

enhancement

ASN1.js module uses strict verification for `isConstructed` property in schema. How can I create a schema which supports both cases for `OCTET STRING` type? ```js const raw = new Uint8Array([0x24,...

- [ ] Compare `jwk.alg` (if presents) with `algorithm` argument and throw `DOMException` if they are not equal ### Example ```js var key = await crypto.subtle.generateKey({name: "AES-CBC", length: 256}, true,...

enhancement

__IE__ ![image](https://user-images.githubusercontent.com/7333669/29328121-201e4134-81fa-11e7-8273-147434b7a919.png) __Other browsers__ ![image](https://user-images.githubusercontent.com/7333669/29328140-33dea7ea-81fa-11e7-8db3-12e7c6696136.png)