@stablelib/ed25519
Advanced tools
Comparing version 0.7.2 to 0.10.7
@@ -612,3 +612,3 @@ // Copyright (C) 2016 Dmitry Chestnykh | ||
function pack(r: GF, p: GF[]) { | ||
function pack(r: Uint8Array, p: GF[]) { | ||
const tx = gf(), ty = gf(), zi = gf(); | ||
@@ -622,3 +622,3 @@ inv25519(zi, p[2]); | ||
function scalarmult(p: GF[], q: GF[], s: GF) { | ||
function scalarmult(p: GF[], q: GF[], s: Uint8Array) { | ||
set25519(p[0], gf0); | ||
@@ -637,3 +637,3 @@ set25519(p[1], gf1); | ||
function scalarbase(p: GF[], s: GF) { | ||
function scalarbase(p: GF[], s: Uint8Array) { | ||
const q = [gf(), gf(), gf(), gf()]; | ||
@@ -727,3 +727,3 @@ set25519(q[0], X); | ||
function reduce(r: GF) { | ||
function reduce(r: Uint8Array) { | ||
const x = new Float64Array(64); | ||
@@ -741,3 +741,2 @@ for (let i = 0; i < 64; i++) { | ||
export function sign(secretKey: Uint8Array, message: Uint8Array): Uint8Array { | ||
// const h = new Uint8Array(64); | ||
const x = new Float64Array(64); | ||
@@ -783,3 +782,3 @@ const p = [gf(), gf(), gf(), gf()]; | ||
function unpackneg(r: GF[], p: GF) { | ||
function unpackneg(r: GF[], p: Uint8Array) { | ||
const t = gf(), chk = gf(), num = gf(), | ||
@@ -786,0 +785,0 @@ den = gf(), den2 = gf(), den4 = gf(), |
@@ -714,3 +714,2 @@ "use strict"; | ||
function sign(secretKey, message) { | ||
// const h = new Uint8Array(64); | ||
var x = new Float64Array(64); | ||
@@ -717,0 +716,0 @@ var p = [gf(), gf(), gf(), gf()]; |
{ | ||
"name": "@stablelib/ed25519", | ||
"version": "0.7.2", | ||
"version": "0.10.7", | ||
"description": "Ed25519 public-key signature (EdDSA with Curve25519)", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ed25519.js", |
Sorry, the diff of this file is not supported yet
1997002
16469