sec: fix formatting
This commit is contained in:
parent
b8858c0bc9
commit
1087ac07de
1 changed files with 12 additions and 12 deletions
24
src/sec.js
24
src/sec.js
|
@ -9,32 +9,32 @@ var ECPointFp = ECCurveFp.ECPointFp
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
function X9ECParameters(curve,g,n,h) {
|
function X9ECParameters(curve,g,n,h) {
|
||||||
this.curve = curve;
|
this.curve = curve
|
||||||
this.g = g;
|
this.g = g
|
||||||
this.n = n;
|
this.n = n
|
||||||
this.h = h;
|
this.h = h
|
||||||
}
|
}
|
||||||
|
|
||||||
function x9getCurve() {
|
function x9getCurve() {
|
||||||
return this.curve;
|
return this.curve
|
||||||
}
|
}
|
||||||
|
|
||||||
function x9getG() {
|
function x9getG() {
|
||||||
return this.g;
|
return this.g
|
||||||
}
|
}
|
||||||
|
|
||||||
function x9getN() {
|
function x9getN() {
|
||||||
return this.n;
|
return this.n
|
||||||
}
|
}
|
||||||
|
|
||||||
function x9getH() {
|
function x9getH() {
|
||||||
return this.h;
|
return this.h
|
||||||
}
|
}
|
||||||
|
|
||||||
X9ECParameters.prototype.getCurve = x9getCurve;
|
X9ECParameters.prototype.getCurve = x9getCurve
|
||||||
X9ECParameters.prototype.getG = x9getG;
|
X9ECParameters.prototype.getG = x9getG
|
||||||
X9ECParameters.prototype.getN = x9getN;
|
X9ECParameters.prototype.getN = x9getN
|
||||||
X9ECParameters.prototype.getH = x9getH;
|
X9ECParameters.prototype.getH = x9getH
|
||||||
|
|
||||||
// ----------------
|
// ----------------
|
||||||
// SECNamedCurves
|
// SECNamedCurves
|
||||||
|
|
Loading…
Add table
Reference in a new issue