Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

In jsbn, what is the correct function of variable DV? #39

@gil2gm

Description

@gil2gm

in jsbn.js file

// (protected) set from integer value x, -DV <= x < DV

function bnpFromInt(x) {
this.t = 1;
this.s = (x < 0) ? -1 : 0;
if (x > 0) this[0] = x;
else if (x < -1) this[0] = x + DV;
else this.t = 0;
}

what is the correct function of variable DV?, i mean, DV -> this.DV? or x.DV? or the function is correct?

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