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

GOST algorithm #2

Open
shoegazer-ru opened this issue May 18, 2021 · 0 comments
Open

GOST algorithm #2

shoegazer-ru opened this issue May 18, 2021 · 0 comments

Comments

@shoegazer-ru
Copy link

shoegazer-ru commented May 18, 2021

Hey!
How can i implement GOST signature algorithm?
I have openssl with required ciphers, but it looks like this lib not use openssl.

I have this error

Unsupported signature algorithm 1.2.643.7.1.1.3.2.

i have this code

$seq = Sequence::fromDER($binaryData);
$signed_data = $seq->getTagged(0)->asExplicit()->asSequence();
$ecac = $signed_data->getTagged(0)->asImplicit(Element::TYPE_SET)->asSet();
$ecoc = $ecac->at($ecac->count() - 1);
$cert = Certificate::fromASN1($ecoc->asSequence());
$tbsCert = $cert->tbsCertificate();

maybe you can advice me how to use openssl to parse signature data?
im parsing pdf files to retrieve signature data like author, serialNumber and dates

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

1 participant