Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private key from GOST format #275

Closed
makenti opened this issue Jun 26, 2015 · 5 comments
Closed

Private key from GOST format #275

makenti opened this issue Jun 26, 2015 · 5 comments

Comments

@makenti
Copy link

makenti commented Jun 26, 2015

How to extract private key from certificate in GOST (https://en.wikipedia.org/wiki/GOST_(block_cipher)) format?

@dlongley
Copy link
Member

You'd have to implement the GOST cipher. Per the wikipedia article, it appears that it is not fully defined by its standard, so even once implemented, you may still find there's an incompatibility with whatever data you're working with.

@BaurzhanSakhariev
Copy link

I'm also interested in that problem.

@makenti, do you mean extract GOST private key from pkcs#12 file or something else?

AFAIK, ASN.1 format is just JSON-like format, i.e sequence-bla-bla-bla, integer:bla-bla-bla, and each key-cert container with different algorithm has own structure because even private and public keys are different (GOST~ECDSA, public key is point (x,y) , RSA public key modulus and exponent, not curve point). So, you should fork forge project and write own GOST-container parser, looking for forge RSA keys container parser as reference implementartion.

I really don't understant, why dlongley tells about GOST cipher implementation - probably, some values inside key-certificate container encrypted with GOST. May be I understand your question incorrectly. But if you want to parse key container, rewrite parser, not cipher.

@makenti
Copy link
Author

makenti commented Jul 10, 2015

hello @BaurzhanSakhariev. thx for your advice. I will write to your email for detail information.

@dlongley
Copy link
Member

dlongley commented Oct 5, 2016

Closing as potentially resolved, also, no plans to implement GOST in forge.

@dlongley dlongley closed this as completed Oct 5, 2016
@kifirkin
Copy link

@dlongley Still no plans to implement GOST?
I found https://github.com/rudonick/crypto library, but it is impossible for me to pull another crypto library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants