MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / process

Method process

modules/crypt/etc/rsa.js:64–72  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

62 this.orderSize = (n + 7) >>> 3;
63 };
64 process(c) {
65 if (this.mn)
66 return this.mn.exp(c, this.e);
67
68 let v1 = this.mq.exp(c, this.dq);
69 let v2 = this.mp.exp(c, this.dp);
70 let u = this.mp.mul(this.C2, this.mp.sub(v2, v1));
71 return v1 + (u * this.q);
72 };
73 get modulusSize() {
74 return this.orderSize;
75 };

Callers

nothing calls this directly

Calls 3

subMethod · 0.65
expMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected