blob: 94d7f58c0de6513e88396cb8f06b2225445bea92 [file] [log] [blame]
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>BIG · Apache Milagro</title><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="generator" content="Docusaurus"/><meta name="description" content="&lt;a name=&quot;BIG&quot;&gt;&lt;/a&gt;"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="BIG · Apache Milagro"/><meta property="og:type" content="website"/><meta property="og:url" content="https://milagro.apache.org/"/><meta property="og:description" content="&lt;a name=&quot;BIG&quot;&gt;&lt;/a&gt;"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/img/favicon.ico"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><link rel="alternate" type="application/atom+xml" href="https://milagro.apache.org/blog/atom.xml" title="Apache Milagro Blog ATOM Feed"/><link rel="alternate" type="application/rss+xml" href="https://milagro.apache.org/blog/feed.xml" title="Apache Milagro Blog RSS Feed"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script><script src="/js/scrollSpy.js"></script><link rel="stylesheet" href="/css/main.css"/><script src="/js/codetabs.js"></script></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/"><img class="logo" src="/img/milagro.svg" alt="Apache Milagro"/><h2 class="headerTitleWithLogo">Apache Milagro</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/docs/milagro-intro" target="_self">Docs</a></li><li class="siteNavGroupActive"><a href="/docs/support" target="_self">Support</a></li><li class="siteNavGroupActive"><a href="/docs/contributor-guide" target="_self">Contributing</a></li><li class="siteNavGroupActive"><a href="/docs/downloads" target="_self">Downloads</a></li><li class=""><a href="/blog/" target="_self">Status</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><div class="hamburger-menu"><div class="line1"></div><div class="line2"></div><div class="line3"></div></div></div><h2><i></i><span>AMCL JavaScript API 1.0.0</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle collapsible">About Milagro<span class="arrow"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#565656" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></h3><ul class="hide"><li class="navListItem"><a class="navItem" href="/docs/milagro-intro">Milagro Introduction</a></li><li class="navListItem"><a class="navItem" href="/docs/milagro-crypto">Milagro Crypto</a></li><li class="navListItem"><a class="navItem" href="/docs/milagro-protocols">Milagro Protocols</a></li><li class="navListItem"><a class="navItem" href="/docs/milagro-design">Milagro Design</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle collapsible">AMCL Library<span class="arrow"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#565656" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></h3><ul class="hide"><li class="navListItem"><a class="navItem" href="/docs/amcl-overview">AMCL Overview</a></li><li class="navListItem"><a class="navItem" href="/docs/amcl-c-api-2.0.0">AMCL C API 2.0.0</a></li><div class="navGroup subNavGroup"><h4 class="navGroupSubcategoryTitle">AMCL JavaScript API 1.0.0</h4><ul><li class="navListItem"><a class="navItem" href="/docs/cryptojs/aes">AES</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/docs/cryptojs/big">BIG</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/bls">BLS</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/bls192">BLS192</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/bls256">BLS256</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/dbig">DBIG</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/ecdh">ECDH</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/ecp">ECP</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/ecp2">ECP2</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/ecp4">ECP4</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/ecp8">ECP8</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/ff">FF</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp">FP</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp2">FP2</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp4">FP4</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp8">FP8</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp12">FP12</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp16">FP16</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp24">FP24</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/fp48">FP48</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/gcm">GCM</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/hash256">HASH256</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/hash384">HASH384</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/hash512">HASH512</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/mpin">MPIN</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/mpin192">MPIN192</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/mpin256">MPIN256</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/pair">PAIR</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/pair192">PAIR192</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/pair256">PAIR256</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/rand">RAND</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/rsa">RSA</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/sha3">SHA3</a></li><li class="navListItem"><a class="navItem" href="/docs/cryptojs/unit64">UInt64</a></li></ul></div></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle collapsible">D-TA<span class="arrow"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#565656" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></h3><ul class="hide"><li class="navListItem"><a class="navItem" href="/docs/d-ta-overview">D-TA Overview</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/quickstart">Quick Start</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/api">API</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/configuration">Configuration</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/identity-documents">Identity Documents</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/encrypted-envelope">Encrypted Envelope</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/ipfs">IPFS</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/plugins-overview">Plugins Overview</a></li><li class="navListItem"><a class="navItem" href="/docs/dta-details/authentication">Authentication</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle collapsible">MPC Library<span class="arrow"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#565656" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></h3><ul class="hide"><li class="navListItem"><a class="navItem" href="/docs/mpc-api-0.1">Multi-Party Computation Library 0.1</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle collapsible">ZKP-MFA Clients/Servers<span class="arrow"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#565656" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></h3><ul class="hide"><li class="navListItem"><a class="navItem" href="/docs/zkp-mfa-overview">ZKP-MFA Overview</a></li><li class="navListItem"><a class="navItem" href="/docs/zkp-mfa-api">ZKP-MFA API</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle collapsible">Project Info<span class="arrow"><svg width="24" height="24" viewBox="0 0 24 24"><path fill="#565656" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></h3><ul class="hide"><li class="navListItem"><a class="navItem" href="/docs/contributor-guide">Contributor&#x27;s Guide</a></li><li class="navListItem"><a class="navItem" href="/docs/downloads">Downloads</a></li><li class="navListItem"><a class="navItem" href="/docs/support">Support</a></li></ul></div></div></section></div><script>
var coll = document.getElementsByClassName('collapsible');
var checkActiveCategory = true;
for (var i = 0; i < coll.length; i++) {
var links = coll[i].nextElementSibling.getElementsByTagName('*');
if (checkActiveCategory){
for (var j = 0; j < links.length; j++) {
if (links[j].classList.contains('navListItemActive')){
coll[i].nextElementSibling.classList.toggle('hide');
coll[i].childNodes[1].classList.toggle('rotate');
checkActiveCategory = false;
break;
}
}
}
coll[i].addEventListener('click', function() {
var arrow = this.childNodes[1];
arrow.classList.toggle('rotate');
var content = this.nextElementSibling;
content.classList.toggle('hide');
});
}
document.addEventListener('DOMContentLoaded', function() {
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
createToggler('#tocToggler', 'body', 'tocActive');
var headings = document.querySelector('.toc-headings');
headings && headings.addEventListener('click', function(event) {
var el = event.target;
while(el !== headings){
if (el.tagName === 'A') {
document.body.classList.remove('tocActive');
break;
} else{
el = el.parentNode;
}
}
}, false);
function createToggler(togglerSelector, targetSelector, className) {
var toggler = document.querySelector(togglerSelector);
var target = document.querySelector(targetSelector);
if (!toggler) {
return;
}
toggler.onclick = function(event) {
event.preventDefault();
target.classList.toggle(className);
};
}
});
</script></nav></div><div class="container mainContainer docsContainer"><div class="wrapper"><div class="post"><header class="postHeader"><h1 id="__docusaurus" class="postHeaderTitle">BIG</h1></header><article><div><span><p><a name="BIG"></a></p>
<h2><a class="anchor" aria-hidden="true" id="big"></a><a href="#big" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG</h2>
<p><strong>Kind</strong>: global class<br>
<strong>this</strong>: <code>{BIG}</code></p>
<ul>
<li><a href="#BIG">BIG</a>
<ul>
<li><a href="#new_BIG_new">new BIG()</a></li>
<li><em>instance</em>
<ul>
<li><a href="#BIG+zero">.zero()</a></li>
<li><a href="#BIG+one">.one()</a></li>
<li><a href="#BIG+iszilch">.iszilch()</a></li>
<li><a href="#BIG+isunity">.isunity()</a></li>
<li><a href="#BIG+cswap">.cswap()</a></li>
<li><a href="#BIG+cmove">.cmove()</a></li>
<li><a href="#BIG+copy">.copy()</a></li>
<li><a href="#BIG+hcopy">.hcopy()</a></li>
<li><a href="#BIG+rcopy">.rcopy()</a></li>
<li><a href="#BIG+norm">.norm()</a></li>
<li><a href="#BIG+fshr">.fshr()</a></li>
<li><a href="#BIG+shr">.shr()</a></li>
<li><a href="#BIG+fshl">.fshl()</a></li>
<li><a href="#BIG+shl">.shl()</a></li>
<li><a href="#BIG+nbits">.nbits()</a></li>
<li><a href="#BIG+toString">.toString()</a></li>
<li><a href="#BIG+add">.add()</a></li>
<li><a href="#BIG+or">.or()</a></li>
<li><a href="#BIG+plus">.plus()</a></li>
<li><a href="#BIG+inc">.inc()</a></li>
<li><a href="#BIG+sub">.sub()</a></li>
<li><a href="#BIG+rsub">.rsub()</a></li>
<li><a href="#BIG+dec">.dec()</a></li>
<li><a href="#BIG+minus">.minus()</a></li>
<li><a href="#BIG+imul">.imul()</a></li>
<li><a href="#BIG+tobytearray">.tobytearray()</a></li>
<li><a href="#BIG+toBytes">.toBytes()</a></li>
<li><a href="#BIG+muladd">.muladd()</a></li>
<li><a href="#BIG+pmul">.pmul()</a></li>
<li><a href="#BIG+pxmul">.pxmul()</a></li>
<li><a href="#BIG+div3">.div3()</a></li>
<li><a href="#BIG+mod2m">.mod2m()</a></li>
<li><a href="#BIG+invmod2m">.invmod2m()</a></li>
<li><a href="#BIG+mod">.mod()</a></li>
<li><a href="#BIG+div">.div()</a></li>
<li><a href="#BIG+parity">.parity()</a></li>
<li><a href="#BIG+bit">.bit()</a></li>
<li><a href="#BIG+lastbits">.lastbits()</a></li>
<li><a href="#BIG+jacobi">.jacobi()</a></li>
<li><a href="#BIG+invmodp">.invmodp()</a></li>
<li><a href="#BIG+powmod">.powmod()</a></li>
</ul></li>
<li><em>static</em>
<ul>
<li><a href="#BIG.frombytearray">.frombytearray()</a></li>
<li><a href="#BIG.smul">.smul()</a></li>
<li><a href="#BIG.comp">.comp()</a></li>
<li><a href="#BIG.random">.random()</a></li>
<li><a href="#BIG.randomnum">.randomnum()</a></li>
<li><a href="#BIG.mul">.mul()</a></li>
<li><a href="#BIG.sqr">.sqr()</a></li>
<li><a href="#BIG.modmul">.modmul()</a></li>
<li><a href="#BIG.modsqr">.modsqr()</a></li>
<li><a href="#BIG.modneg">.modneg()</a></li>
<li><a href="#BIG.invmod256">.invmod256()</a></li>
</ul></li>
</ul></li>
</ul>
<p><a name="new_BIG_new"></a></p>
<h3><a class="anchor" aria-hidden="true" id="new-big"></a><a href="#new-big" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>new BIG()</h3>
<p>General purpose Constructor</p>
<p><a name="BIG+zero"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigzero-"></a><a href="#bigzero-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.zero() ⇒</h3>
<p>set to zero</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+one"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigone-"></a><a href="#bigone-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.one() ⇒</h3>
<p>set to one</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+iszilch"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigiszilch-"></a><a href="#bigiszilch-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.iszilch() ⇒</h3>
<p>test for zero</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: True if zero<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+isunity"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigisunity-"></a><a href="#bigisunity-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.isunity() ⇒</h3>
<p>test for unity</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: True if one<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+cswap"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigcswap"></a><a href="#bigcswap" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.cswap()</h3>
<p>Conditional swap of two BIGs depending on d using XOR - no branches</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: b BIG number<br>
<strong>Parameter</strong>: d BIG number<br>
<a name="BIG+cmove"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigcmove"></a><a href="#bigcmove" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.cmove()</h3>
<p>Conditional move of BIG depending on d using XOR - no branches</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: b BIG number<br>
<strong>Parameter</strong>: d BIG number<br>
<a name="BIG+copy"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigcopy-"></a><a href="#bigcopy-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.copy() ⇒</h3>
<p>Copy from another BIG</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: The BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: y BIG number<br>
<a name="BIG+hcopy"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bighcopy-"></a><a href="#bighcopy-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.hcopy() ⇒</h3>
<p>copy from bottom half of ctx.DBIG</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: The new BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: y BIG number<br>
<a name="BIG+rcopy"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigrcopy-"></a><a href="#bigrcopy-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.rcopy() ⇒</h3>
<p>copy from ROM</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: The BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: y BIG number in ROM<br>
<a name="BIG+norm"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bignorm-"></a><a href="#bignorm-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.norm() ⇒</h3>
<p>normalise BIG - force all digits &lt; 2^BASEBITS</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+fshr"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigfshr-"></a><a href="#bigfshr-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.fshr() ⇒</h3>
<p>Quick Fast shifts a BIG right by a small number of bits - input must be normalised, output will be normalised</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: r The shifted out part<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: k Number of bits to shift<br>
<a name="BIG+shr"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigshr-"></a><a href="#bigshr-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.shr() ⇒</h3>
<p>General shift right by k bits</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: k Number of bits to shift<br>
<a name="BIG+fshl"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigfshl-"></a><a href="#bigfshl-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.fshl() ⇒</h3>
<p>Fast shifts a BIG left by a small number of bits - input must be normalised, output will be normalised</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: r The shifted out part<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: k Number of bits to shift<br>
<a name="BIG+shl"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigshl-"></a><a href="#bigshl-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.shl() ⇒</h3>
<p>General shift left by k bits</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: k Number of bits to shift<br>
<a name="BIG+nbits"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bignbits-"></a><a href="#bignbits-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.nbits() ⇒</h3>
<p>length in bits</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: The number of bigs in BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+toString"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigtostring-"></a><a href="#bigtostring-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.toString() ⇒</h3>
<p>Convert to string</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: string representation of a BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+add"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigadd-"></a><a href="#bigadd-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.add() ⇒</h3>
<p>Sum two BIG mumbers</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this+=y<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: y BIG object<br>
<a name="BIG+or"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigor-"></a><a href="#bigor-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.or() ⇒</h3>
<p>OR two BIG mumbers</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this|=y<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: y BIG object<br>
<a name="BIG+plus"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigplus-"></a><a href="#bigplus-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.plus() ⇒</h3>
<p>Sum two BIG mumbers</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this+x<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: x BIG object<br>
<a name="BIG+inc"></a></p>
<h3><a class="anchor" aria-hidden="true" id="biginc-"></a><a href="#biginc-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.inc() ⇒</h3>
<p>Sum BIG and integer</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this+=i<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: i Integer to add<br>
<a name="BIG+sub"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigsub-"></a><a href="#bigsub-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.sub() ⇒</h3>
<p>Subtract BIG from one another</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this-=y<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: y BIG object<br>
<a name="BIG+rsub"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigrsub-"></a><a href="#bigrsub-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.rsub() ⇒</h3>
<p>Reverse subtract BIG from one another</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this=x-this<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: x BIG object<br>
<a name="BIG+dec"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigdec-"></a><a href="#bigdec-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.dec() ⇒</h3>
<p>Subtract integer from BIG</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this-=i<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: i Integer to subtract<br>
<a name="BIG+minus"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigminus-"></a><a href="#bigminus-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.minus() ⇒</h3>
<p>Subtract BIG</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: New BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: x BIG object<br>
<a name="BIG+imul"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigimul-"></a><a href="#bigimul-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.imul() ⇒</h3>
<p>Multiply by small integer</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this*c<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: c small integer<br>
<a name="BIG+tobytearray"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigtobytearray"></a><a href="#bigtobytearray" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.tobytearray()</h3>
<p>convert this BIG to byte array</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+toBytes"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigtobytes"></a><a href="#bigtobytes" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.toBytes()</h3>
<p>convert this to byte array</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+muladd"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmuladd"></a><a href="#bigmuladd" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.muladd()</h3>
<p>this[i]+=x*y+c, and return high part</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+pmul"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigpmul-"></a><a href="#bigpmul-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.pmul() ⇒</h3>
<p>multiply by larger int</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: carry value<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: c large integer<br>
<a name="BIG+pxmul"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigpxmul-"></a><a href="#bigpxmul-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.pxmul() ⇒</h3>
<p>multiply by still larger int - results requires a DBIG</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: DBIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: c large integer<br>
<a name="BIG+div3"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigdiv3-"></a><a href="#bigdiv3-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.div3() ⇒</h3>
<p>divide by 3</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: carry value<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+mod2m"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmod2m-"></a><a href="#bigmod2m-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.mod2m() ⇒</h3>
<p>set x = x mod 2^m</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: m Exponent<br>
<a name="BIG+invmod2m"></a></p>
<h3><a class="anchor" aria-hidden="true" id="biginvmod2m-"></a><a href="#biginvmod2m-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.invmod2m() ⇒</h3>
<p>a=1/a mod 2^256. This is very fast!</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+mod"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmod-"></a><a href="#bigmod-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.mod() ⇒</h3>
<p>reduce this mod m</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+div"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigdiv-"></a><a href="#bigdiv-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.div() ⇒</h3>
<p>this/=m1</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Paramter</strong>: m1 divisor<br>
<a name="BIG+parity"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigparity-"></a><a href="#bigparity-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.parity() ⇒</h3>
<p>return parity of this</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<a name="BIG+bit"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigbit-"></a><a href="#bigbit-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.bit() ⇒</h3>
<p>return n-th bit of this</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: bit value<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: nth bit to return<br>
<a name="BIG+lastbits"></a></p>
<h3><a class="anchor" aria-hidden="true" id="biglastbits-"></a><a href="#biglastbits-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.lastbits() ⇒</h3>
<p>return last n bits of this</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: bit values<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: n bits to return<br>
<a name="BIG+jacobi"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigjacobi-"></a><a href="#bigjacobi-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.jacobi() ⇒</h3>
<p>Jacobi Symbol (this/p)</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: 0, 1 or -1<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: p BIG number<br>
<a name="BIG+invmodp"></a></p>
<h3><a class="anchor" aria-hidden="true" id="biginvmodp-"></a><a href="#biginvmodp-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.invmodp() ⇒</h3>
<p>this=1/this mod p. Binary method</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: p The BIG Modulus<br>
<a name="BIG+powmod"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigpowmod-"></a><a href="#bigpowmod-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>biG.powmod() ⇒</h3>
<p>Exponentation modulo m</p>
<p><strong>Kind</strong>: instance method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: this^e mod m<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: e1 BIG number<br>
<strong>Parameter</strong>: m The BIG Modulus<br>
<a name="BIG.frombytearray"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigfrombytearray-"></a><a href="#bigfrombytearray-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.frombytearray() ⇒</h3>
<p>convert from byte array to BIG</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG object<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: b Bytearray<br>
<a name="BIG.smul"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigsmul-"></a><a href="#bigsmul-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.smul() ⇒</h3>
<p>return a*b where product fits a BIG</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: a*b<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a BIG number<br>
<strong>Parameter</strong>: b BIG number<br>
<a name="BIG.comp"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigcomp-"></a><a href="#bigcomp-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.comp() ⇒</h3>
<p>Compare a and b</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: 0 if a==b, -1 if a&lt;b, +1 if a&gt;b<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a BIG number (normalised)<br>
<strong>Parameter</strong>: b BIG number (normalised<br>
<a name="BIG.random"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigrandom-"></a><a href="#bigrandom-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.random() ⇒</h3>
<p>Get 8*MODBYTES size random number</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: rng Cryptographically Secure Random Number Generator<br>
<a name="BIG.randomnum"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigrandomnum-"></a><a href="#bigrandomnum-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.randomnum() ⇒</h3>
<p>Create random BIG in portable way, one bit at a time</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: rng Cryptographically Secure Random Number Generator<br>
<strong>Parameter</strong>: q The BIG Modulus<br>
<a name="BIG.mul"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmul-"></a><a href="#bigmul-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.mul() ⇒</h3>
<p>Multiple two BIG numbers</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: a*b as a DBIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a BIG number<br>
<strong>Parameter</strong>: b BIG number<br>
<a name="BIG.sqr"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigsqr-"></a><a href="#bigsqr-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.sqr() ⇒</h3>
<p>Square two BIG numbers</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: a*2 as a DBIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a BIG number<br>
<a name="BIG.modmul"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmodmul-"></a><a href="#bigmodmul-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.modmul() ⇒</h3>
<p>Multiple two BIG numbers modulo m</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: a1*b1 mod m as a BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a1 BIG number<br>
<strong>Parameter</strong>: b1 BIG number<br>
<strong>Parameter</strong>: m The BIG Modulus<br>
<a name="BIG.modsqr"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmodsqr-"></a><a href="#bigmodsqr-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.modsqr() ⇒</h3>
<p>Square a BIG number modulo m</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: a*2 mod m as a BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a1 BIG number<br>
<strong>Parameter</strong>: m The BIG Modulus<br>
<a name="BIG.modneg"></a></p>
<h3><a class="anchor" aria-hidden="true" id="bigmodneg-"></a><a href="#bigmodneg-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.modneg() ⇒</h3>
<p>Inversion</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: -a1 mod m<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a1 BIG number<br>
<strong>Parameter</strong>: m The BIG Modulus<br>
<a name="BIG.invmod256"></a></p>
<h3><a class="anchor" aria-hidden="true" id="biginvmod256-"></a><a href="#biginvmod256-" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>BIG.invmod256() ⇒</h3>
<p>Arazi and Qi inversion mod 256</p>
<p><strong>Kind</strong>: static method of <a href="#BIG"><code>BIG</code></a> <br>
<strong>Returns</strong>: BIG number<br>
<strong>this</strong>: <code>{BIG}</code> <br>
<strong>Parameter</strong>: a BIG number</p>
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/cryptojs/aes"><span class="arrow-prev"></span><span>AES</span></a><a class="docs-next button" href="/docs/cryptojs/bls"><span>BLS</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#big">BIG</a><ul class="toc-headings"><li><a href="#new-big">new BIG()</a></li><li><a href="#bigzero-">biG.zero() ⇒</a></li><li><a href="#bigone-">biG.one() ⇒</a></li><li><a href="#bigiszilch-">biG.iszilch() ⇒</a></li><li><a href="#bigisunity-">biG.isunity() ⇒</a></li><li><a href="#bigcswap">biG.cswap()</a></li><li><a href="#bigcmove">biG.cmove()</a></li><li><a href="#bigcopy-">biG.copy() ⇒</a></li><li><a href="#bighcopy-">biG.hcopy() ⇒</a></li><li><a href="#bigrcopy-">biG.rcopy() ⇒</a></li><li><a href="#bignorm-">biG.norm() ⇒</a></li><li><a href="#bigfshr-">biG.fshr() ⇒</a></li><li><a href="#bigshr-">biG.shr() ⇒</a></li><li><a href="#bigfshl-">biG.fshl() ⇒</a></li><li><a href="#bigshl-">biG.shl() ⇒</a></li><li><a href="#bignbits-">biG.nbits() ⇒</a></li><li><a href="#bigtostring-">biG.toString() ⇒</a></li><li><a href="#bigadd-">biG.add() ⇒</a></li><li><a href="#bigor-">biG.or() ⇒</a></li><li><a href="#bigplus-">biG.plus() ⇒</a></li><li><a href="#biginc-">biG.inc() ⇒</a></li><li><a href="#bigsub-">biG.sub() ⇒</a></li><li><a href="#bigrsub-">biG.rsub() ⇒</a></li><li><a href="#bigdec-">biG.dec() ⇒</a></li><li><a href="#bigminus-">biG.minus() ⇒</a></li><li><a href="#bigimul-">biG.imul() ⇒</a></li><li><a href="#bigtobytearray">biG.tobytearray()</a></li><li><a href="#bigtobytes">biG.toBytes()</a></li><li><a href="#bigmuladd">biG.muladd()</a></li><li><a href="#bigpmul-">biG.pmul() ⇒</a></li><li><a href="#bigpxmul-">biG.pxmul() ⇒</a></li><li><a href="#bigdiv3-">biG.div3() ⇒</a></li><li><a href="#bigmod2m-">biG.mod2m() ⇒</a></li><li><a href="#biginvmod2m-">biG.invmod2m() ⇒</a></li><li><a href="#bigmod-">biG.mod() ⇒</a></li><li><a href="#bigdiv-">biG.div() ⇒</a></li><li><a href="#bigparity-">biG.parity() ⇒</a></li><li><a href="#bigbit-">biG.bit() ⇒</a></li><li><a href="#biglastbits-">biG.lastbits() ⇒</a></li><li><a href="#bigjacobi-">biG.jacobi() ⇒</a></li><li><a href="#biginvmodp-">biG.invmodp() ⇒</a></li><li><a href="#bigpowmod-">biG.powmod() ⇒</a></li><li><a href="#bigfrombytearray-">BIG.frombytearray() ⇒</a></li><li><a href="#bigsmul-">BIG.smul() ⇒</a></li><li><a href="#bigcomp-">BIG.comp() ⇒</a></li><li><a href="#bigrandom-">BIG.random() ⇒</a></li><li><a href="#bigrandomnum-">BIG.randomnum() ⇒</a></li><li><a href="#bigmul-">BIG.mul() ⇒</a></li><li><a href="#bigsqr-">BIG.sqr() ⇒</a></li><li><a href="#bigmodmul-">BIG.modmul() ⇒</a></li><li><a href="#bigmodsqr-">BIG.modsqr() ⇒</a></li><li><a href="#bigmodneg-">BIG.modneg() ⇒</a></li><li><a href="#biginvmod256-">BIG.invmod256() ⇒</a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/milagro.svg" alt="Apache Milagro" width="50" height="100"/></a><div><h5>Docs</h5><a href="/docs/milagro-intro.html">Milagro Intro</a><a href="/docs/amcl-overview.html">Apache Milagro Crypto Library</a><a href="/docs/d-ta-overview.html">Decentralized Trust Authority</a><a href="/docs/zkp-mfa-overview.html">Zero Knowledge Proof MFA</a></div><div><h5>Community</h5><a href="../docs/support">Support</a><a href="../docs/contributor-guide">Contributing</a><a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=115529045" target="_blank" rel="noreferrer noopener">Developer Wiki</a><a href="https://twitter.com/apachemilagro?lang=en" target="_blank" rel="noreferrer noopener">Twitter</a></div><div><h5>More</h5><a href="/blog">Status</a><a href="https://github.com/apache/incubator-milagro-crypto-c">GitHub</a><a class="github-button" href="https://github.com/apache/incubator-milagro" data-icon="octicon-star" data-count-href="/apache/incubator-milagro-crypto/stargazers" data-show-count="true" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><a href="https://apache.org" target="_blank" rel="noreferrer noopener" class="fbOpenSource"><img src="/img/oss_logo.png" alt="Apache Incubator" width="170" height="45"/></a><section class="copyright"><div>Apache Milagro is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</div></section><p></p><section class="copyright">Copyright © 2022 The Apache Software Foundation. Apache Milagro, Milagro, Apache, the Apache feather, and the Apache Milagro project logo are either registered trademarks or trademarks of the Apache Software Foundation.</section></footer></div></body></html>