Lines Matching refs:ec
38400 var EC = require('elliptic').ec;
38566 var EC = require('elliptic').ec;
43641 this.curve = new elliptic.ec(this.curveType.name); // eslint-disable-line new-cap
45637 elliptic.ec = require('./elliptic/ec');
47773 function KeyPair(ec, options) {
47774 this.ec = ec;
47784 KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
47786 return new KeyPair(ec, {
47792 KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
47794 return new KeyPair(ec, {
47810 if (!pub.mul(this.ec.curve.n).isInfinity()) return {
47827 if (!this.pub) this.pub = this.ec.g.mul(this.priv);
47840 this.priv = this.priv.umod(this.ec.curve.n);
47848 if (this.ec.curve.type === 'mont') {
47850 } else if (this.ec.curve.type === 'short' || this.ec.curve.type === 'edwards') {
47854 this.pub = this.ec.curve.point(key.x, key.y);
47858 this.pub = this.ec.curve.decodePoint(key, enc);
47868 return this.ec.sign(msg, this, enc, options);
47872 return this.ec.verify(msg, signature, this);