Skip to content

Why do you have to provide the mlen parameter for verify (or maybe it should be an out param) #1

Description

@DavyLandman

I'm thinking of using qDSA for a small IOT project that I'm working on, and while exploring the API, I had a question.

int verify(
        unsigned char *m, long long mlen,
        unsigned char *sm, unsigned long long smlen,
        const unsigned char *pk
        );

the long long mlen, shouldn't it be either not there, or actually a pointer, since the first thing you do is override the value with smlen - 64?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions