Skip to content

blst_scalar_from_uint32 appears to read past a uint32 #256

@friedrichsenm

Description

@friedrichsenm

When using blst_scalar_from_uint32, the scalar gets additional bytes added to it that aren't from the integer.

This looks like it is because the function expects an array of 8 integers, but in the Rust bindings (which I'm using), I'm only passing in a single u32, so the C code is reading extra bytes past the integer and filling the scalar with them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions