Skip to content

GOST algorithm #2

Description

@shoegazer-ru

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions