Skip to content

BLAKE2 oid error #875

@gk717

Description

@gk717

It seems that in the file BLAKE2b.py instead of the lines

# See https://tools.ietf.org/html/rfc7693
if digest_bytes in (20, 32, 48, 64) and not key:
    self.oid = "1.3.6.1.4.1.1722.12.2.1." + str(digest_bytes)

there should be the lines

# See https://tools.ietf.org/html/rfc7693
if digest_bytes in (20, 32, 48, 64) and not key:
    self.oid = "1.3.6.1.4.1.1722.12.2.1." + str(digest_bytes // 4)

There is a similar problem with the file BLAKE2s.py

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions