Comments (4)
This functionality is under-supported (i.e. I haven't written it, and there's a patch someone sent me but I haven't reviewed it yet), but in short, you can extract the _exponent field and serialize it. Then calling sjcl.ecc.elGamal.secretKey(curve, exponent) will restore it. Likewise, you can extract the _point field from the public key and serialize it.
from sjcl.
Thanks very much. Is it possible for me to check out the patch you mentioned?
from sjcl.
The patch is here: #41
from sjcl.
I created a new similar one with deserialization support and some more stuff in it: #99
Please discuss!
from sjcl.
Related Issues (20)
- scrypt wrong result with certain parameters
- RIPEMD160 HMAC wrong result
- bn sub incorrect result
- PBKDF2 + RIPEMD160 incorrect result
- Not working in UC Browser in Iphone
- Anonymous request to use sjcl HOT 1
- Documentation says PKCS#5, but actually PKCS#7 padding is used.
- powermod produces incorrect result
- source code of the compiler.jar HOT 1
- Pushbullet
- TypeError: Cannot read property 'elGamal' of undefined HOT 1
- New Android system webview cause crash HOT 2
- All hashing functions other sha256 missing from sjcl.js HOT 2
- AES-CCM wrongly allows iv of more than 13 bytes
- CCM mode wrongly allows IV of more than 13 bytes.
- Padding IV
- sjcl.mode.cbc is undefined if I install from npm HOT 1
- SHA384 is missing
- GitHub pages link needs to be updated in top description
- Is this project maintained? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sjcl.