text: "use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){var _,r=(_="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(_=_||__filename),function(e){var t;e=e||{},t||(t=void 0!==e?e:{});var _,r,n,s,c,a,i={};for(_ in t)t.hasOwnProperty(_)&&(i[_]=t[_]);r=__dirname+"/",n=function(e){return c||(c=require("fs")),a||(a=require("path")),e=a.normalize(e),c.readFileSync(e,null)},s=function(e){return(e=n(e)).buffer||(e=new Uint8Array(e)),e.buffer||z("Assertion failed: undefined"),e},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",(function(e){throw e})),process.on("unhandledRejection",z),t.inspect=function(){return"[Emscripten Module object]"};var l,o=t.print||console.log.bind(console),u=t.printErr||console.warn.bind(console);for(_ in i)i.hasOwnProperty(_)&&(t[_]=i[_]);i=null,t.wasmBinary&&(l=t.wasmBinary),t.noExitRuntime&&t.noExitRuntime,"object"!=typeof WebAssembly&&u("no native wasm support detected");var f,d,p,v,y,h,P=new WebAssembly.Table({initial:717,maximum:717,element:"anyfunc"}),m=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,_){var r=t+_;for(_=t;e[_]&&!(_>=r);)++_;if(16<_-t&&e.subarray&&x)return x.decode(e.subarray(t,_));for(r="";t<_;){var n=e[t++];if(128&n){var s=63&e[t++];if(192==(224&n))r+=String.fromCharCode((31&n)<<6|s);else{var c=63&e[t++];65536>(n=224==(240&n)?(15&n)<<12|s<<6|c:(7&n)<<18|s<<12|c<<6|63&e[t++])?r+=String.fromCharCode(n):(n-=65536,r+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else r+=String.fromCharCode(n)}return r}function k(e){d=e,t.HEAP8=p=new Int8Array(e),t.HEAP16=y=new Int16Array(e),t.HEAP32=h=new Int32Array(e),t.HEAPU8=v=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAPU32=new Uint32Array(e),t.HEAPF32=new Float32Array(e),t.HEAPF64=new Float64Array(e)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var E=t.INITIAL_MEMORY||16777216;function N(e){for(;0<e.length;){var _=e.shift();if("function"==typeof _)_();else{var r=_.$t;"number"==typeof r?void 0===_.Mt?t.dynCall_v(r):t.dynCall_vi(r,_.Mt):r(void 0===_.Mt?null:_.Mt)}}}(f=t.wasmMemory?t.wasmMemory:new WebAssembly.Memory({initial:E/65536}))&&(d=f.buffer),E=d.byteLength,k(d),h[40240]=5404e3;var I=[],b=[],w=[],A=[];function C(){var e=t.preRun.shift();I.unshift(e)}var F=Math.abs,T=Math.ceil,K=Math.floor,L=Math.min,R=0,S=null;function z(e){throw t.onAbort&&t.onAbort(e),o(e),u(e),m=!0,new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info.")}function B(){var e=H;return String.prototype.startsWith?e.startsWith("data:application/octet-stream;base64,"):0===e.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var Y,U,H="libfoundation.wasm";if(!B()){var M=H;H=t.locateFile?t.locateFile(M,r):r+M}function D(e,t){for(var _=0,r=e.length-1;0<=r;r--){var n=e[r];"."===n?e.splice(r,1):".."===n?(e.splice(r,1),_++):_&&(e.splice(r,1),_--)}if(t)for(;_;_--)e.unshift("..");return e}function O(e){var t="/"===e.charAt(0),_="/"===e.substr(-1);return(e=D(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&_&&(e+="/"),(t?"/":"")+e}function V(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function G(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)}function q(){for(var e="",t=!1,_=arguments.length-1;-1<=_&&!t;_--){if("string"!=typeof(t=0<=_?arguments[_]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=D(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."}b.push({$t:function(){Me()}});var X=[];function j(e,t){X[e]={input:[],output:[],Jt:t},xe(e,W)}var W={open:function(e){var t=X[e.node.rdev];if(!t)throw new ce(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.Jt.flush(e.tty)},flush:function(e){e.tty.Jt.flush(e.tty)},read:function(e,t,_,r){if(!e.tty||!e.tty.Jt.Vt)throw new ce(60);for(var n=0,s=0;s<r;s++){try{var c=e.tty.Jt.Vt(e.tty)}catch(e){throw new ce(29)}if(void 0===c&&0===n)throw new ce(6);if(null==c)break;n++,t[_+s]=c}return n&&(e.node.timestamp=Date.now()),n},write:function(e,t,_,r){if(!e.tty||!e.tty.Jt.Ot)throw new ce(60);try{for(var n=0;n<r;n++)e.tty.Jt.Ot(e.tty,t[_+n])}catch(e){throw new ce(29)}return r&&(e.node.timestamp=Date.now()),n}},Z={Vt:function(e){if(!e.input.length){var t=null,_=Buffer.gu?Buffer.gu(256):new Buffer(256),r=0;try{r=c.readSync(process.stdin.fd,_,0,256,null)}catch(e){if(-1==e.toString().indexOf("EOF"))throw e;r=0}if(!(t=0<r?_.slice(0,r).toString("utf-8"):null))return null;for(r=_=0;r<t.length;++r){var n=t.charCodeAt(r);55296<=n&&57343>=n&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),127>=n?++_:_=2047>=n?_+2:65535>=n?_+3:_+4}var s=(_=Array(_+1)).length;if(r=0,0<s){n=r,s=r+s-1;for(var a=0;a<t.length;++a){var i=t.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++a)),127>=i){if(r>=s)break;_[r++]=i}else{if(2047>=i){if(r+1>=s)break;_[r++]=192|i>>6}else{if(65535>=i){if(r+2>=s)break;_[r++]=224|i>>12}else{if(r+3>=s)break;_[r++]=240|i>>18,_[r++]=128|i>>12&63}_[r++]=128|i>>6&63}_[r++]=128|63&i}}_[r]=0,t=r-n}else t=0;_.length=t,e.input=_}return e.input.shift()},Ot:function(e,t){null===t||10===t?(o(g(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&0<e.output.length&&(o(g(e.output,0)),e.output=[])}},$={Ot:function(e,t){null===t||10===t?(u(g(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&0<e.output.length&&(u(g(e.output,0)),e.output=[])}},Q={Dt:null,Ft:function(){return Q.createNode(null,"/",16895,0)},createNode:function(e,t,_,r){if(24576==(61440&_)||4096==(61440&_))throw new ce(63);return Q.Dt||(Q.Dt={dir:{node:{Gt:Q.At.Gt,Et:Q.At.Et,lookup:Q.At.lookup,Kt:Q.At.Kt,rename:Q.At.rename,unlink:Q.At.unlink,rmdir:Q.At.rmdir,readdir:Q.At.readdir,symlink:Q.At.symlink},stream:{It:Q.Bt.It}},file:{node:{Gt:Q.At.Gt,Et:Q.At.Et},stream:{It:Q.Bt.It,read:Q.Bt.read,write:Q.Bt.write,Qt:Q.Bt.Qt,Wt:Q.Bt.Wt,Yt:Q.Bt.Yt}},link:{node:{Gt:Q.At.Gt,Et:Q.At.Et,readlink:Q.At.readlink},stream:{}},Rt:{node:{Gt:Q.At.Gt,Et:Q.At.Et},stream:me}}),16384==(61440&(_=fe(e,t,_,r)).mode)?(_.At=Q.Dt.dir.node,_.Bt=Q.Dt.dir.stream,_.zt={}):32768==(61440&_.mode)?(_.At=Q.Dt.file.node,_.Bt=Q.Dt.file.stream,_.Ct=0,_.zt=null):40960==(61440&_.mode)?(_.At=Q.Dt.link.node,_.Bt=Q.Dt.link.stream):8192==(61440&_.mode)&&(_.At=Q.Dt.Rt.node,_.Bt=Q.Dt.Rt.stream),_.timestamp=Date.now(),e&&(e.zt[t]=_),_},iu:function(e){if(e.zt&&e.zt.subarray){for(var t=[],_=0;_<e.Ct;++_)t.push(e.zt[_]);return t}return e.zt},ju:function(e){return e.zt?e.zt.subarray?e.zt.subarray(0,e.Ct):new Uint8Array(e.zt):new Uint8Array(0)},St:function(e,t){var _=e.zt?e.zt.length:0;_>=t||(t=Math.max(t,_*(1048576>_?2:1.125)|0),0!=_&&(t=Math.max(t,256)),_=e.zt,e.zt=new Uint8Array(t),0<e.Ct&&e.zt.set(_.subarray(0,e.Ct),0))},du:function(e,t){if(e.Ct!=t)if(0==t)e.zt=null,e.Ct=0;else{if(!e.zt||e.zt.subarray){var _=e.zt;e.zt=new Uint8Array(t),_&&e.zt.set(_.subarray(0,Math.min(t,e.Ct)))}else if(e.zt||(e.zt=[]),e.zt.length>t)e.zt.length=t;else for(;e.zt.length<t;)e.zt.push(0);e.Ct=t}},At:{Gt:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,16384==(61440&e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.Ct:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.Zt=4096,t.blocks=Math.ceil(t.size/t.Zt),t},Et:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&Q.du(e,t.size)},lookup:function(){throw ae[44]},Kt:function(e,t,_,r){return Q.createNode(e,t,_,r)},rename:function(e,t,_){if(16384==(61440&e.mode)){try{var r=ue(t,_)}catch(e){}if(r)for(var n in r.zt)throw new ce(55)}delete e.parent.zt[e.name],e.name=_,t.zt[_]=e,e.parent=t},unlink:function(e,t){delete e.zt[t]},rmdir:function(e,t){var _,r=ue(e,t);for(_ in r.zt)throw new ce(55);delete e.zt[t]},readdir:function(e){var t,_=[".",".."];for(t in e.zt)e.zt.hasOwnProperty(t)&&_.push(t);return _},symlink:function(e,t,_){return(e=Q.createNode(e,t,41471,0)).link=_,e},readlink:function(e){if(40960!=(61440&e.mode))throw new ce(28);return e.link}},Bt:{read:function(e,t,_,r,n){var s=e.node.zt;if(n>=e.node.Ct)return 0;if(8<(e=Math.min(e.node.Ct-n,r))&&s.subarray)t.set(s.subarray(n,n+e),_);else for(r=0;r<e;r++)t[_+r]=s[n+r];return e},write:function(e,t,_,r,n,s){if(t.buffer===p.buffer&&(s=!1),!r)return 0;if((e=e.node).timestamp=Date.now(),t.subarray&&(!e.zt||e.zt.subarray)){if(s)return e.zt=t.subarray(_,_+r),e.Ct=r;if(0===e.Ct&&0===n)return e.zt=t.slice(_,_+r),e.Ct=r;if(n+r<=e.Ct)return e.zt.set(t.subarray(_,_+r),n),r}if(Q.St(e,n+r),e.zt.subarray&&t.subarray)e.zt.set(t.subarray(_,_+r),n);else for(s=0;s<r;s++)e.zt[n+s]=t[_+s];return e.Ct=Math.max(e.Ct,n+r),r},It:function(e,t,_){if(1===_?t+=e.position:2===_&&32768==(61440&e.node.mode)&&(t+=e.node.Ct),0>t)throw new ce(28);return t},Qt:function(e,t,_){Q.St(e.node,t+_),e.node.Ct=Math.max(e.node.Ct,t+_)},Wt:function(e,t,_,r,n,s,c){if(32768!=(61440&e.node.mode))throw new ce(43);if(e=e.node.zt,2&c||e.buffer!==t.buffer){if((0<n||n+r<e.length)&&(e=e.subarray?e.subarray(n,n+r):Array.prototype.slice.call(e,n,n+r)),n=!0,c=t.buffer==p.buffer,!(r=Oe(r)))throw new ce(48);(c?p:t).set(e,r)}else n=!1,r=e.byteOffset;return{lu:r,hu:n}},Yt:function(e,t,_,r,n){if(32768!=(61440&e.node.mode))throw new ce(43);return 2&n||Q.Bt.write(e,t,0,r,_,!1),0}}},J=null,ee={},te=[],_e=1,re=null,ne=!0,se={},ce=null,ae={};function ie(e,t){if(t=t||{},!(e=q("/",e)))return{path:"",node:null};var _,r={Ut:!0,Pt:0};for(_ in r)void 0===t[_]&&(t[_]=r[_]);if(8<t.Pt)throw new ce(32);e=D(e.split("/").filter((function(e){return!!e})),!1);var n=J;for(r="/",_=0;_<e.length;_++){var s=_===e.length-1;if(s&&t.parent)break;if(n=ue(n,e[_]),r=O(r+"/"+e[_]),n.Lt&&(!s||s&&t.Ut)&&(n=n.Lt.root),!s||t.Tt)for(s=0;40960==(61440&n.mode);)if(n=be(r),n=ie(r=q(V(r),n),{Pt:t.Pt}).node,40<s++)throw new ce(32)}return{path:r,node:n}}function le(e){for(var t;;){if(e===e.parent)return e=e.Ft.Xt,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function oe(e,t){for(var _=0,r=0;r<t.length;r++)_=(_<<5)-_+t.charCodeAt(r)|0;return(e+_>>>0)%re.length}function ue(e,t){var _;if(_=(_=ve(e,"x"))?_:e.At.lookup?0:2)throw new ce(_,e);for(_=re[oe(e.id,t)];_;_=_.cu){var r=_.name;if(_.parent.id===e.id&&r===t)return _}return e.At.lookup(e,t)}function fe(e,t,_,r){return t=oe((e=new Ye(e,t,_,r)).parent.id,e.name),e.cu=re[t],re[t]=e}var de={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function pe(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function ve(e,t){return ne||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:2}function ye(e,t){try{return ue(e,t),20}catch(e){}return ve(e,"wx")}function he(e,t){Ke||((Ke=function(){}).prototype={});var _,r=new Ke;for(_ in e)r[_]=e[_];return e=r,t=function(e){for(e=e||0;e<=4096;e++)if(!te[e])return e;throw new ce(33)}(t),e.fd=t,te[t]=e}var Pe,me={open:function(e){e.Bt=ee[e.node.rdev].Bt,e.Bt.open&&e.Bt.open(e)},It:function(){throw new ce(70)}};function xe(e,t){ee[e]={Bt:t}}function ge(e,t){var _="/"===t,r=!t;if(_&&J)throw new ce(10);if(!_&&!r){var n=ie(t,{Ut:!1});if(t=n.path,(n=n.node).Lt)throw new ce(10);if(16384!=(61440&n.mode))throw new ce(54)}t={type:e,ku:{},Xt:t,bu:[]},(e=e.Ft(t)).Ft=t,t.root=e,_?J=e:n&&(n.Lt=t,n.Ft&&n.Ft.bu.push(t))}function ke(e,t,_){var r=ie(e,{parent:!0}).node;if(!(e=G(e))||"."===e||".."===e)throw new ce(28);var n=ye(r,e);if(n)throw new ce(n);if(!r.At.Kt)throw new ce(63);return r.At.Kt(r,e,t,_)}function Ee(e){ke(e,16895,0)}function Ne(e,t,_){void 0===_&&(_=t,t=438),ke(e,8192|t,_)}function Ie(e,t){if(!q(e))throw new ce(44);var _=ie(t,{parent:!0}).node;if(!_)throw new ce(44);var r=ye(_,t=G(t));if(r)throw new ce(r);if(!_.At.symlink)throw new ce(63);_.At.symlink(_,t,e)}function be(e){if(!(e=ie(e).node))throw new ce(44);if(!e.At.readlink)throw new ce(28);return q(le(e.parent),e.At.readlink(e))}function we(e,_,r,n){if(""===e)throw new ce(44);if("string"==typeof _){var s=de[_];if(void 0===s)throw Error("Unknown file open mode: "+_);_=s}if(r=64&_?4095&(void 0===r?438:r)|32768:0,"object"==typeof e)var c=e;else{e=O(e);try{c=ie(e,{Tt:!(131072&_)}).node}catch(e){}}if(s=!1,64&_)if(c){if(128&_)throw new ce(20)}else c=ke(e,r,0),s=!0;if(!c)throw new ce(44);if(8192==(61440&c.mode)&&(_&=-513),65536&_&&16384!=(61440&c.mode))throw new ce(54);if(!s&&(r=c?40960==(61440&c.mode)?32:16384==(61440&c.mode)&&("r"!==pe(_)||512&_)?31:ve(c,pe(_)):44))throw new ce(r);if(512&_){var a;if(!(a="string"==typeof(r=c)?ie(r,{Tt:!0}).node:r).At.Et)throw new ce(63);if(16384==(61440&a.mode))throw new ce(31);if(32768!=(61440&a.mode))throw new ce(28);if(r=ve(a,"w"))throw new ce(r);a.At.Et(a,{size:0,timestamp:Date.now()})}_&=-641,(n=he({node:c,path:le(c),flags:_,seekable:!0,position:0,Bt:c.Bt,fu:[],error:!1},n)).Bt.open&&n.Bt.open(n),!t.logReadFiles||1&_||(Le||(Le={}),e in Le||(Le[e]=1,u("FS.trackingDelegate error on read file: "+e)));try{se.onOpenFile&&(c=0,1!=(2097155&_)&&(c|=1),0!=(2097155&_)&&(c|=2),se.onOpenFile(e,c))}catch(t){u("FS.trackingDelegate['onOpenFile']('"+e+"', flags) threw an exception: "+t.message)}return n}function Ae(e,t,_){if(null===e.fd)throw new ce(8);if(!e.seekable||!e.Bt.It)throw new ce(70);if(0!=_&&1!=_&&2!=_)throw new ce(28);e.position=e.Bt.It(e,t,_),e.fu=[]}function Ce(){ce||((ce=function(e,t){this.node=t,this.eu=function(e){this.Ht=e},this.eu(e),this.message="FS error"}).prototype=Error(),ce.prototype.constructor=ce,[44].forEach((function(e){ae[e]=new ce(e),ae[e].stack="<generic error, no stack>"})))}function Fe(e,t,_){e=O("/dev/"+e);var r=function(e,t){var _=0;return e&&(_|=365),t&&(_|=146),_}(!!t,!!_);Te||(Te=64);var n=Te++<<8|0;xe(n,{open:function(e){e.seekable=!1},close:function(){_&&_.buffer&&_.buffer.length&&_(10)},read:function(e,_,r,n){for(var s=0,c=0;c<n;c++){try{var a=t()}catch(e){throw new ce(29)}if(void 0===a&&0===s)throw new ce(6);if(null==a)break;s++,_[r+c]=a}return s&&(e.node.timestamp=Date.now()),s},write:function(e,t,r,n){for(var s=0;s<n;s++)try{_(t[r+s])}catch(e){throw new ce(29)}return n&&(e.node.timestamp=Date.now()),s}}),Ne(e,r,n)}var Te,Ke,Le,Re={},Se=void 0;function ze(){return h[(Se+=4)-4>>2]}function Be(e){if(!(e=te[e]))throw new ce(8);return e}function Ye(e,t,_,r){e||(e=this),this.parent=e,this.Ft=e.Ft,this.Lt=null,this.id=_e++,this.name=t,this.mode=_,this.At={},this.Bt={},this.rdev=r}Object.defineProperties(Ye.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),Ce(),re=Array(4096),ge(Q,"/"),Ee("/tmp"),Ee("/home"),Ee("/home/web_user"),function(){if(Ee("/dev"),xe(259,{read:function(){return 0},write:function(e,t,_,r){return r}}),Ne("/dev/null",259),j(1280,Z),j(1536,$),Ne("/dev/tty",1280),Ne("/dev/tty1",1536),"object"==typeof crypto&&"function"==typeof crypto.getRandomValues)var e=new Uint8Array(1),t=function(){return crypto.getRandomValues(e),e[0]};else try{var _=require("crypto");t=function(){return _.randomBytes(1)[0]}}catch(e){}t||(t=function(){z("random_device")}),Fe("random",t),Fe("urandom",t),Ee("/dev/shm"),Ee("/dev/shm/tmp")}(),Ee("/proc"),Ee("/proc/self"),Ee("/proc/self/fd"),ge({Ft:function(){var e=fe("/proc/self","fd",16895,73);return e.At={lookup:function(e,t){var _=te[+t];if(!_)throw new ce(8);return(e={parent:null,Ft:{Xt:"fake"},At:{readlink:function(){return _.path}}}).parent=e}},e}},"/proc/self/fd");var Ue={b:function(e,_,r){Se=r;try{var n=Be(e);switch(_){case 0:var s=ze();return 0>s?-28:we(n.path,n.flags,0,s).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:return s=ze(),n.flags|=s,0;case 12:return s=ze(),y[s+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return t.___errno_location&&(h[t.___errno_location()>>2]=28),-1;default:return-28}}catch(e){return void 0!==Re&&e instanceof ce||z(e),-e.Ht}},i:function(e,t,_){Se=_;try{return we(e?g(v,e,void 0):"",t,ze()).fd}catch(e){return void 0!==Re&&e instanceof ce||z(e),-e.Ht}},h:function(e,t,_){Se=_;try{var r=Be(e);switch(t){case 21509:case 21505:return r.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return r.tty?0:-59;case 21519:if(!r.tty)return-59;var n=ze();return h[n>>2]=0;case 21520:return r.tty?-28:-59;case 21531:if(e=n=ze(),!r.Bt.au)throw new ce(59);return r.Bt.au(r,t,e);case 21523:case 21524:return r.tty?0:-59;default:z("bad ioctl syscall "+t)}}catch(e){return void 0!==Re&&e instanceof ce||z(e),-e.Ht}},a:function(){z()},k:function(e,t,_){v.copyWithin(e,t,t+_)},l:function(e){var t=v.length;if(2147418112<e)return!1;for(var _=1;4>=_;_*=2){var r=t*(1+.2/_);r=Math.min(r,e+100663296),0<(r=Math.max(16777216,e,r))%65536&&(r+=65536-r%65536);e:{try{f.grow(Math.min(2147418112,r)-d.byteLength+65535>>16),k(f.buffer);var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},e:function(e){try{var t=Be(e);if(null===t.fd)throw new ce(8);t.Nt&&(t.Nt=null);try{t.Bt.close&&t.Bt.close(t)}catch(e){throw e}finally{te[t.fd]=null}return t.fd=null,0}catch(e){return void 0!==Re&&e instanceof ce||z(e),e.Ht}},g:function(e,t,_,r){try{e:{for(var n=Be(e),s=e=0;s<_;s++){var c=h[t+(8*s+4)>>2],a=n,i=h[t+8*s>>2],l=c,o=void 0,u=p;if(0>l||0>o)throw new ce(28);if(null===a.fd)throw new ce(8);if(1==(2097155&a.flags))throw new ce(8);if(16384==(61440&a.node.mode))throw new ce(31);if(!a.Bt.read)throw new ce(28);var f=void 0!==o;if(f){if(!a.seekable)throw new ce(70)}else o=a.position;var d=a.Bt.read(a,u,i,l,o);f||(a.position+=d);var v=d;if(0>v){var y=-1;break e}if(e+=v,v<c)break}y=e}return h[r>>2]=y,0}catch(e){return void 0!==Re&&e instanceof ce||z(e),e.Ht}},j:function(e,t,_,r,n){try{var s=Be(e);return-9007199254740992>=(e=4294967296*_+(t>>>0))||9007199254740992<=e?-61:(Ae(s,e,r),U=[s.position>>>0,(Y=s.position,1<=+F(Y)?0<Y?(0|L(+K(Y/4294967296),4294967295))>>>0:~~+T((Y-+(~~Y>>>0))/4294967296)>>>0:0)],h[n>>2]=U[0],h[n+4>>2]=U[1],s.Nt&&0===e&&0===r&&(s.Nt=null),0)}catch(e){return void 0!==Re&&e instanceof ce||z(e),e.Ht}},d:function(e,t,_,r){try{e:{for(var n=Be(e),s=e=0;s<_;s++){var c=n,a=h[t+8*s>>2],i=h[t+(8*s+4)>>2],l=void 0,o=p;if(0>i||0>l)throw new ce(28);if(null===c.fd)throw new ce(8);if(0==(2097155&c.flags))throw new ce(8);if(16384==(61440&c.node.mode))throw new ce(31);if(!c.Bt.write)throw new ce(28);1024&c.flags&&Ae(c,0,2);var f=void 0!==l;if(f){if(!c.seekable)throw new ce(70)}else l=c.position;var d=c.Bt.write(c,o,a,i,l,void 0);f||(c.position+=d);try{c.path&&se.onWriteToFile&&se.onWriteToFile(c.path)}catch(e){u("FS.trackingDelegate['onWriteToFile']('"+c.path+"') threw an exception: "+e.message)}var v=d;if(0>v){var y=-1;break e}e+=v}y=e}return h[r>>2]=y,0}catch(e){return void 0!==Re&&e instanceof ce||z(e),e.Ht}},c:function(e){var t=Date.now();return h[e>>2]=t/1e3|0,h[e+4>>2]=t%1e3*1e3|0,0},memory:f,f:function(){},table:P},He=function(){function e(e){t.asm=e.exports,R--,t.monitorRunDependencies&&t.monitorRunDependencies(R),0==R&&S&&(e=S,S=null,e())}function _(t){e(t.instance)}function r(e){return new Promise((function(e){e:{try{if(l){var t=new Uint8Array(l);break e}if(s){t=s(H);break e}throw"both async and sync fetching of the wasm failed"}catch(e){z(e)}t=void 0}e(t)})).then((function(e){return WebAssembly.instantiate(e,n)})).then(e,(function(e){u("failed to asynchronously prepare wasm: "+e),z(e)}))}var n={a:Ue};if(R++,t.monitorRunDependencies&&t.monitorRunDependencies(R),t.instantiateWasm)try{return t.instantiateWasm(n,e)}catch(e){return u("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(l||"function"!=typeof WebAssembly.instantiateStreaming||B()||"function"!=typeof fetch)return r(_);fetch(H,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,n).then(_,(function(e){u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(_)}))}))}(),{}}();t.asm=He;var Me=t.___wasm_call_ctors=function(){return(Me=t.___wasm_call_ctors=t.asm.m).apply(null,arguments)};t._vscf_impl_api=function(){return(t._vscf_impl_api=t.asm.n).apply(null,arguments)},t._vscf_impl_tag=function(){return(t._vscf_impl_tag=t.asm.o).apply(null,arguments)},t._vscf_impl_shallow_copy=function(){return(t._vscf_impl_shallow_copy=t.asm.p).apply(null,arguments)},t._vscf_aes256_cbc_alg_id=function(){return(t._vscf_aes256_cbc_alg_id=t.asm.q).apply(null,arguments)},t._vscf_aes256_cbc_produce_alg_info=function(){return(t._vscf_aes256_cbc_produce_alg_info=t.asm.r).apply(null,arguments)},t._vscf_aes256_cbc_restore_alg_info=function(){return(t._vscf_aes256_cbc_restore_alg_info=t.asm.s).apply(null,arguments)},t._vscf_aes256_cbc_set_nonce=function(){return(t._vscf_aes256_cbc_set_nonce=t.asm.t).apply(null,arguments)},t._vscf_aes256_cbc_encrypt=function(){return(t._vscf_aes256_cbc_encrypt=t.asm.u).apply(null,arguments)},t._vscf_aes256_cbc_start_encryption=function(){return(t._vscf_aes256_cbc_start_encryption=t.asm.v).apply(null,arguments)},t._vscf_aes256_cbc_update=function(){return(t._vscf_aes256_cbc_update=t.asm.w).apply(null,arguments)},t._vscf_aes256_cbc_finish=function(){return(t._vscf_aes256_cbc_finish=t.asm.x).apply(null,arguments)},t._vscf_aes256_cbc_encrypted_len=function(){return(t._vscf_aes256_cbc_encrypted_len=t.asm.y).apply(null,arguments)},t._vscf_aes256_cbc_precise_encrypted_len=function(){return(t._vscf_aes256_cbc_precise_encrypted_len=t.asm.z).apply(null,arguments)},t._vscf_aes256_cbc_decrypt=function(){return(t._vscf_aes256_cbc_decrypt=t.asm.A).apply(null,arguments)},t._vscf_aes256_cbc_start_decryption=function(){return(t._vscf_aes256_cbc_start_decryption=t.asm.B).apply(null,arguments)},t._vscf_aes256_cbc_decrypted_len=function(){return(t._vscf_aes256_cbc_decrypted_len=t.asm.C).apply(null,arguments)},t._vscf_aes256_cbc_set_key=function(){return(t._vscf_aes256_cbc_set_key=t.asm.D).apply(null,arguments)},t._vscf_aes256_cbc_state=function(){return(t._vscf_aes256_cbc_state=t.asm.E).apply(null,arguments)},t._vscf_aes256_cbc_out_len=function(){return(t._vscf_aes256_cbc_out_len=t.asm.F).apply(null,arguments)},t._vscf_aes256_cbc_decrypted_out_len=function(){return(t._vscf_aes256_cbc_decrypted_out_len=t.asm.G).apply(null,arguments)},t._vscf_aes256_cbc_encrypted_out_len=function(){return(t._vscf_aes256_cbc_encrypted_out_len=t.asm.H).apply(null,arguments)},t._vscf_aes256_cbc_new=function(){return(t._vscf_aes256_cbc_new=t.asm.I).apply(null,arguments)},t._vscf_aes256_cbc_delete=function(){return(t._vscf_aes256_cbc_delete=t.asm.J).apply(null,arguments)},t._vscf_aes256_cbc_shallow_copy=function(){return(t._vscf_aes256_cbc_shallow_copy=t.asm.K).apply(null,arguments)},t._vscf_aes256_gcm_out_len=function(){return(t._vscf_aes256_gcm_out_len=t.asm.L).apply(null,arguments)},t._vscf_aes256_gcm_alg_id=function(){return(t._vscf_aes256_gcm_alg_id=t.asm.M).apply(null,arguments)},t._vscf_aes256_gcm_produce_alg_info=function(){return(t._vscf_aes256_gcm_produce_alg_info=t.asm.N).apply(null,arguments)},t._vscf_aes256_gcm_restore_alg_info=function(){return(t._vscf_aes256_gcm_restore_alg_info=t.asm.O).apply(null,arguments)},t._vscf_aes256_gcm_set_nonce=function(){return(t._vscf_aes256_gcm_set_nonce=t.asm.P).apply(null,arguments)},t._vscf_aes256_gcm_encrypt=function(){return(t._vscf_aes256_gcm_encrypt=t.asm.Q).apply(null,arguments)},t._vscf_aes256_gcm_start_encryption=function(){return(t._vscf_aes256_gcm_start_encryption=t.asm.R).apply(null,arguments)},t._vscf_aes256_gcm_update=function(){return(t._vscf_aes256_gcm_update=t.asm.S).apply(null,arguments)},t._vscf_aes256_gcm_finish=function(){return(t._vscf_aes256_gcm_finish=t.asm.T).apply(null,arguments)},t._vscf_aes256_gcm_encrypted_len=function(){return(t._vscf_aes256_gcm_encrypted_len=t.asm.U).apply(null,arguments)},t._vscf_aes256_gcm_finish_auth_decryption=function(){return(t._vscf_aes256_gcm_finish_auth_decryption=t.asm.V).apply(null,arguments)},t._vscf_aes256_gcm_finish_auth_encryption=function(){return(t._vscf_aes256_gcm_finish_auth_encryption=t.asm.W).apply(null,arguments)},t._vscf_aes256_gcm_precise_encrypted_len=function(){return(t._vscf_aes256_gcm_precise_encrypted_len=t.asm.X).apply(null,arguments)},t._vscf_aes256_gcm_decrypt=function(){return(t._vscf_aes256_gcm_decrypt=t.asm.Y).apply(null,arguments)},t._vscf_aes256_gcm_start_decryption=function(){return(t._vscf_aes256_gcm_start_decryption=t.asm.Z).apply(null,arguments)},t._vscf_aes256_gcm_decrypted_len=function(){return(t._vscf_aes256_gcm_decrypted_len=t.asm._).apply(null,arguments)},t._vscf_aes256_gcm_set_key=function(){return(t._vscf_aes256_gcm_set_key=t.asm.$).apply(null,arguments)},t._vscf_aes256_gcm_state=function(){return(t._vscf_aes256_gcm_state=t.asm.aa).apply(null,arguments)},t._vscf_aes256_gcm_decrypted_out_len=function(){return(t._vscf_aes256_gcm_decrypted_out_len=t.asm.ba).apply(null,arguments)},t._vscf_aes256_gcm_encrypted_out_len=function(){return(t._vscf_aes256_gcm_encrypted_out_len=t.asm.ca).apply(null,arguments)},t._vscf_aes256_gcm_auth_encrypt=function(){return(t._vscf_aes256_gcm_auth_encrypt=t.asm.da).apply(null,arguments)},t._vscf_aes256_gcm_auth_encrypted_len=function(){return(t._vscf_aes256_gcm_auth_encrypted_len=t.asm.ea).apply(null,arguments)},t._vscf_aes256_gcm_set_auth_data=function(){return(t._vscf_aes256_gcm_set_auth_data=t.asm.fa).apply(null,arguments)},t._vscf_aes256_gcm_auth_decrypt=function(){return(t._vscf_aes256_gcm_auth_decrypt=t.asm.ga).apply(null,arguments)},t._vscf_aes256_gcm_auth_decrypted_len=function(){return(t._vscf_aes256_gcm_auth_decrypted_len=t.asm.ha).apply(null,arguments)},t._vscf_aes256_gcm_new=function(){return(t._vscf_aes256_gcm_new=t.asm.ia).apply(null,arguments)},t._vscf_aes256_gcm_delete=function(){return(t._vscf_aes256_gcm_delete=t.asm.ja).apply(null,arguments)},t._vscf_aes256_gcm_shallow_copy=function(){return(t._vscf_aes256_gcm_shallow_copy=t.asm.ka).apply(null,arguments)},t._vscf_alg_info_der_deserializer_setup_defaults=function(){return(t._vscf_alg_info_der_deserializer_setup_defaults=t.asm.la).apply(null,arguments)},t._vscf_alg_info_der_deserializer_deserialize_inplace=function(){return(t._vscf_alg_info_der_deserializer_deserialize_inplace=t.asm.ma).apply(null,arguments)},t._vscf_alg_info_der_deserializer_deserialize=function(){return(t._vscf_alg_info_der_deserializer_deserialize=t.asm.na).apply(null,arguments)},t._vscf_alg_info_der_deserializer_release_asn1_reader=function(){return(t._vscf_alg_info_der_deserializer_release_asn1_reader=t.asm.oa).apply(null,arguments)},t._vscf_alg_info_der_deserializer_new=function(){return(t._vscf_alg_info_der_deserializer_new=t.asm.pa).apply(null,arguments)},t._vscf_alg_info_der_deserializer_delete=function(){return(t._vscf_alg_info_der_deserializer_delete=t.asm.qa).apply(null,arguments)},t._vscf_alg_info_der_deserializer_shallow_copy=function(){return(t._vscf_alg_info_der_deserializer_shallow_copy=t.asm.ra).apply(null,arguments)},t._vscf_alg_info_der_deserializer_use_asn1_reader=function(){return(t._vscf_alg_info_der_deserializer_use_asn1_reader=t.asm.sa).apply(null,arguments)},t._vscf_alg_info_der_serializer_setup_defaults=function(){return(t._vscf_alg_info_der_serializer_setup_defaults=t.asm.ta).apply(null,arguments)},t._vscf_alg_info_der_serializer_serialize_inplace=function(){return(t._vscf_alg_info_der_serializer_serialize_inplace=t.asm.ua).apply(null,arguments)},t._vscf_alg_info_der_serializer_serialized_len=function(){return(t._vscf_alg_info_der_serializer_serialized_len=t.asm.va).apply(null,arguments)},t._vscf_alg_info_der_serializer_serialize=function(){return(t._vscf_alg_info_der_serializer_serialize=t.asm.wa).apply(null,arguments)},t._vscf_alg_info_der_serializer_release_asn1_writer=function(){return(t._vscf_alg_info_der_serializer_release_asn1_writer=t.asm.xa).apply(null,arguments)},t._vscf_alg_info_der_serializer_new=function(){return(t._vscf_alg_info_der_serializer_new=t.asm.ya).apply(null,arguments)},t._vscf_alg_info_der_serializer_delete=function(){return(t._vscf_alg_info_der_serializer_delete=t.asm.za).apply(null,arguments)},t._vscf_alg_info_der_serializer_shallow_copy=function(){return(t._vscf_alg_info_der_serializer_shallow_copy=t.asm.Aa).apply(null,arguments)},t._vscf_alg_info_der_serializer_use_asn1_writer=function(){return(t._vscf_alg_info_der_serializer_use_asn1_writer=t.asm.Ba).apply(null,arguments)},t._vscf_asn1rd_reset=function(){return(t._vscf_asn1rd_reset=t.asm.Ca).apply(null,arguments)},t._vscf_asn1rd_left_len=function(){return(t._vscf_asn1rd_left_len=t.asm.Da).apply(null,arguments)},t._vscf_asn1rd_has_error=function(){return(t._vscf_asn1rd_has_error=t.asm.Ea).apply(null,arguments)},t._vscf_asn1rd_status=function(){return(t._vscf_asn1rd_status=t.asm.Fa).apply(null,arguments)},t._vscf_asn1rd_get_tag=function(){return(t._vscf_asn1rd_get_tag=t.asm.Ga).apply(null,arguments)},t._vscf_asn1rd_get_len=function(){return(t._vscf_asn1rd_get_len=t.asm.Ha).apply(null,arguments)},t._vscf_asn1rd_get_data_len=function(){return(t._vscf_asn1rd_get_data_len=t.asm.Ia).apply(null,arguments)},t._vscf_asn1rd_read_tag=function(){return(t._vscf_asn1rd_read_tag=t.asm.Ja).apply(null,arguments)},t._vscf_asn1rd_read_context_tag=function(){return(t._vscf_asn1rd_read_context_tag=t.asm.Ka).apply(null,arguments)},t._vscf_asn1rd_read_int=function(){return(t._vscf_asn1rd_read_int=t.asm.La).apply(null,arguments)},t._vscf_asn1rd_read_int64=function(){return(t._vscf_asn1rd_read_int64=t.asm.Ma).apply(null,arguments)},t._vscf_asn1rd_read_int8=function(){return(t._vscf_asn1rd_read_int8=t.asm.Na).apply(null,arguments)},t._vscf_asn1rd_read_int16=function(){return(t._vscf_asn1rd_read_int16=t.asm.Oa).apply(null,arguments)},t._vscf_asn1rd_read_int32=function(){return(t._vscf_asn1rd_read_int32=t.asm.Pa).apply(null,arguments)},t._vscf_asn1rd_read_uint=function(){return(t._vscf_asn1rd_read_uint=t.asm.Qa).apply(null,arguments)},t._vscf_asn1rd_read_uint64=function(){return(t._vscf_asn1rd_read_uint64=t.asm.Ra).apply(null,arguments)},t._vscf_asn1rd_read_uint8=function(){return(t._vscf_asn1rd_read_uint8=t.asm.Sa).apply(null,arguments)},t._vscf_asn1rd_read_uint16=function(){return(t._vscf_asn1rd_read_uint16=t.asm.Ta).apply(null,arguments)},t._vscf_asn1rd_read_uint32=function(){return(t._vscf_asn1rd_read_uint32=t.asm.Ua).apply(null,arguments)},t._vscf_asn1rd_read_bool=function(){return(t._vscf_asn1rd_read_bool=t.asm.Va).apply(null,arguments)},t._vscf_asn1rd_read_null=function(){return(t._vscf_asn1rd_read_null=t.asm.Wa).apply(null,arguments)},t._vscf_asn1rd_read_null_optional=function(){return(t._vscf_asn1rd_read_null_optional=t.asm.Xa).apply(null,arguments)},t._vscf_asn1rd_read_octet_str=function(){return(t._vscf_asn1rd_read_octet_str=t.asm.Ya).apply(null,arguments)},t._vscf_asn1rd_read_bitstring_as_octet_str=function(){return(t._vscf_asn1rd_read_bitstring_as_octet_str=t.asm.Za).apply(null,arguments)},t._vscf_asn1rd_read_utf8_str=function(){return(t._vscf_asn1rd_read_utf8_str=t.asm._a).apply(null,arguments)},t._vscf_asn1rd_read_oid=function(){return(t._vscf_asn1rd_read_oid=t.asm.$a).apply(null,arguments)},t._vscf_asn1rd_read_data=function(){return(t._vscf_asn1rd_read_data=t.asm.ab).apply(null,arguments)},t._vscf_asn1rd_read_sequence=function(){return(t._vscf_asn1rd_read_sequence=t.asm.bb).apply(null,arguments)},t._vscf_asn1rd_read_set=function(){return(t._vscf_asn1rd_read_set=t.asm.cb).apply(null,arguments)},t._vscf_asn1rd_new=function(){return(t._vscf_asn1rd_new=t.asm.db).apply(null,arguments)},t._vscf_asn1rd_delete=function(){return(t._vscf_asn1rd_delete=t.asm.eb).apply(null,arguments)},t._vscf_asn1rd_shallow_copy=function(){return(t._vscf_asn1rd_shallow_copy=t.asm.fb).apply(null,arguments)},t._vscf_asn1wr_reset=function(){return(t._vscf_asn1wr_reset=t.asm.gb).apply(null,arguments)},t._vscf_asn1wr_finish=function(){return(t._vscf_asn1wr_finish=t.asm.hb).apply(null,arguments)},t._vscf_asn1wr_bytes=function(){return(t._vscf_asn1wr_bytes=t.asm.ib).apply(null,arguments)},t._vscf_asn1wr_len=function(){return(t._vscf_asn1wr_len=t.asm.jb).apply(null,arguments)},t._vscf_asn1wr_written_len=function(){return(t._vscf_asn1wr_written_len=t.asm.kb).apply(null,arguments)},t._vscf_asn1wr_unwritten_len=function(){return(t._vscf_asn1wr_unwritten_len=t.asm.lb).apply(null,arguments)},t._vscf_asn1wr_has_error=function(){return(t._vscf_asn1wr_has_error=t.asm.mb).apply(null,arguments)},t._vscf_asn1wr_status=function(){return(t._vscf_asn1wr_status=t.asm.nb).apply(null,arguments)},t._vscf_asn1wr_reserve=function(){return(t._vscf_asn1wr_reserve=t.asm.ob).apply(null,arguments)},t._vscf_asn1wr_write_tag=function(){return(t._vscf_asn1wr_write_tag=t.asm.pb).apply(null,arguments)},t._vscf_asn1wr_write_context_tag=function(){return(t._vscf_asn1wr_write_context_tag=t.asm.qb).apply(null,arguments)},t._vscf_asn1wr_write_len=function(){return(t._vscf_asn1wr_write_len=t.asm.rb).apply(null,arguments)},t._vscf_asn1wr_write_int=function(){return(t._vscf_asn1wr_write_int=t.asm.sb).apply(null,arguments)},t._vscf_asn1wr_write_int64=function(){return(t._vscf_asn1wr_write_int64=t.asm.tb).apply(null,arguments)},t._vscf_asn1wr_write_int8=function(){return(t._vscf_asn1wr_write_int8=t.asm.ub).apply(null,arguments)},t._vscf_asn1wr_write_int16=function(){return(t._vscf_asn1wr_write_int16=t.asm.vb).apply(null,arguments)},t._vscf_asn1wr_write_int32=function(){return(t._vscf_asn1wr_write_int32=t.asm.wb).apply(null,arguments)},t._vscf_asn1wr_write_uint=function(){return(t._vscf_asn1wr_write_uint=t.asm.xb).apply(null,arguments)},t._vscf_asn1wr_write_uint64=function(){return(t._vscf_asn1wr_write_uint64=t.asm.yb).apply(null,arguments)},t._vscf_asn1wr_write_uint8=function(){return(t._vscf_asn1wr_write_uint8=t.asm.zb).apply(null,arguments)},t._vscf_asn1wr_write_uint16=function(){return(t._vscf_asn1wr_write_uint16=t.asm.Ab).apply(null,arguments)},t._vscf_asn1wr_write_uint32=function(){return(t._vscf_asn1wr_write_uint32=t.asm.Bb).apply(null,arguments)},t._vscf_asn1wr_write_bool=function(){return(t._vscf_asn1wr_write_bool=t.asm.Cb).apply(null,arguments)},t._vscf_asn1wr_write_null=function(){return(t._vscf_asn1wr_write_null=t.asm.Db).apply(null,arguments)},t._vscf_asn1wr_write_octet_str=function(){return(t._vscf_asn1wr_write_octet_str=t.asm.Eb).apply(null,arguments)},t._vscf_asn1wr_write_octet_str_as_bitstring=function(){return(t._vscf_asn1wr_write_octet_str_as_bitstring=t.asm.Fb).apply(null,arguments)},t._vscf_asn1wr_write_data=function(){return(t._vscf_asn1wr_write_data=t.asm.Gb).apply(null,arguments)},t._vscf_asn1wr_write_utf8_str=function(){return(t._vscf_asn1wr_write_utf8_str=t.asm.Hb).apply(null,arguments)},t._vscf_asn1wr_write_oid=function(){return(t._vscf_asn1wr_write_oid=t.asm.Ib).apply(null,arguments)},t._vscf_asn1wr_write_sequence=function(){return(t._vscf_asn1wr_write_sequence=t.asm.Jb).apply(null,arguments)},t._vscf_asn1wr_write_set=function(){return(t._vscf_asn1wr_write_set=t.asm.Kb).apply(null,arguments)},t._vscf_asn1wr_new=function(){return(t._vscf_asn1wr_new=t.asm.Lb).apply(null,arguments)},t._vscf_asn1wr_delete=function(){return(t._vscf_asn1wr_delete=t.asm.Mb).apply(null,arguments)},t._vscf_asn1wr_shallow_copy=function(){return(t._vscf_asn1wr_shallow_copy=t.asm.Nb).apply(null,arguments)},t._vscf_cipher_alg_info_nonce=function(){return(t._vscf_cipher_alg_info_nonce=t.asm.Ob).apply(null,arguments)},t._vscf_cipher_alg_info_alg_id=function(){return(t._vscf_cipher_alg_info_alg_id=t.asm.Pb).apply(null,arguments)},t._vscf_cipher_alg_info_new=function(){return(t._vscf_cipher_alg_info_new=t.asm.Qb).apply(null,arguments)},t._vscf_cipher_alg_info_delete=function(){return(t._vscf_cipher_alg_info_delete=t.asm.Rb).apply(null,arguments)},t._vscf_cipher_alg_info_shallow_copy=function(){return(t._vscf_cipher_alg_info_shallow_copy=t.asm.Sb).apply(null,arguments)},t._vscf_cipher_alg_info_new_with_members=function(){return(t._vscf_cipher_alg_info_new_with_members=t.asm.Tb).apply(null,arguments)},t._vscf_compound_key_alg_setup_defaults=function(){return(t._vscf_compound_key_alg_setup_defaults=t.asm.Ub).apply(null,arguments)},t._vscf_compound_key_alg_make_key=function(){return(t._vscf_compound_key_alg_make_key=t.asm.Vb).apply(null,arguments)},t._vscf_compound_key_alg_alg_id=function(){return(t._vscf_compound_key_alg_alg_id=t.asm.Wb).apply(null,arguments)},t._vscf_compound_key_alg_produce_alg_info=function(){return(t._vscf_compound_key_alg_produce_alg_info=t.asm.Xb).apply(null,arguments)},t._vscf_compound_key_alg_restore_alg_info=function(){return(t._vscf_compound_key_alg_restore_alg_info=t.asm.Yb).apply(null,arguments)},t._vscf_compound_key_alg_generate_ephemeral_key=function(){return(t._vscf_compound_key_alg_generate_ephemeral_key=t.asm.Zb).apply(null,arguments)},t._vscf_compound_key_alg_import_public_key=function(){return(t._vscf_compound_key_alg_import_public_key=t.asm._b).apply(null,arguments)},t._vscf_compound_key_alg_import_public_key_data=function(){return(t._vscf_compound_key_alg_import_public_key_data=t.asm.$b).apply(null,arguments)},t._vscf_compound_key_alg_export_public_key=function(){return(t._vscf_compound_key_alg_export_public_key=t.asm.ac).apply(null,arguments)},t._vscf_compound_key_alg_exported_public_key_data_len=function(){return(t._vscf_compound_key_alg_exported_public_key_data_len=t.asm.bc).apply(null,arguments)},t._vscf_compound_key_alg_export_public_key_data=function(){return(t._vscf_compound_key_alg_export_public_key_data=t.asm.cc).apply(null,arguments)},t._vscf_compound_key_alg_import_private_key=function(){return(t._vscf_compound_key_alg_import_private_key=t.asm.dc).apply(null,arguments)},t._vscf_compound_key_alg_import_private_key_data=function(){return(t._vscf_compound_key_alg_import_private_key_data=t.asm.ec).apply(null,arguments)},t._vscf_compound_key_alg_export_private_key=function(){return(t._vscf_compound_key_alg_export_private_key=t.asm.fc).apply(null,arguments)},t._vscf_compound_key_alg_exported_private_key_data_len=function(){return(t._vscf_compound_key_alg_exported_private_key_data_len=t.asm.gc).apply(null,arguments)},t._vscf_compound_key_alg_export_private_key_data=function(){return(t._vscf_compound_key_alg_export_private_key_data=t.asm.hc).apply(null,arguments)},t._vscf_compound_key_alg_can_encrypt=function(){return(t._vscf_compound_key_alg_can_encrypt=t.asm.ic).apply(null,arguments)},t._vscf_compound_key_alg_encrypted_len=function(){return(t._vscf_compound_key_alg_encrypted_len=t.asm.jc).apply(null,arguments)},t._vscf_compound_key_alg_encrypt=function(){return(t._vscf_compound_key_alg_encrypt=t.asm.kc).apply(null,arguments)},t._vscf_compound_key_alg_can_decrypt=function(){return(t._vscf_compound_key_alg_can_decrypt=t.asm.lc).apply(null,arguments)},t._vscf_compound_key_alg_decrypted_len=function(){return(t._vscf_compound_key_alg_decrypted_len=t.asm.mc).apply(null,arguments)},t._vscf_compound_key_alg_decrypt=function(){return(t._vscf_compound_key_alg_decrypt=t.asm.nc).apply(null,arguments)},t._vscf_compound_key_alg_can_sign=function(){return(t._vscf_compound_key_alg_can_sign=t.asm.oc).apply(null,arguments)},t._vscf_compound_key_alg_signature_len=function(){return(t._vscf_compound_key_alg_signature_len=t.asm.pc).apply(null,arguments)},t._vscf_compound_key_alg_sign_hash=function(){return(t._vscf_compound_key_alg_sign_hash=t.asm.qc).apply(null,arguments)},t._vscf_compound_key_alg_can_verify=function(){return(t._vscf_compound_key_alg_can_verify=t.asm.rc).apply(null,arguments)},t._vscf_compound_key_alg_verify_hash=function(){return(t._vscf_compound_key_alg_verify_hash=t.asm.sc).apply(null,arguments)},t._vscf_compound_key_alg_release_random=function(){return(t._vscf_compound_key_alg_release_random=t.asm.tc).apply(null,arguments)},t._vscf_compound_key_alg_new=function(){return(t._vscf_compound_key_alg_new=t.asm.uc).apply(null,arguments)},t._vscf_compound_key_alg_delete=function(){return(t._vscf_compound_key_alg_delete=t.asm.vc).apply(null,arguments)},t._vscf_compound_key_alg_shallow_copy=function(){return(t._vscf_compound_key_alg_shallow_copy=t.asm.wc).apply(null,arguments)},t._vscf_compound_key_alg_use_random=function(){return(t._vscf_compound_key_alg_use_random=t.asm.xc).apply(null,arguments)},t._vscf_compound_key_alg_info_cipher_alg_info=function(){return(t._vscf_compound_key_alg_info_cipher_alg_info=t.asm.yc).apply(null,arguments)},t._vscf_compound_key_alg_info_signer_alg_info=function(){return(t._vscf_compound_key_alg_info_signer_alg_info=t.asm.zc).apply(null,arguments)},t._vscf_compound_key_alg_info_alg_id=function(){return(t._vscf_compound_key_alg_info_alg_id=t.asm.Ac).apply(null,arguments)},t._vscf_compound_key_alg_info_new=function(){return(t._vscf_compound_key_alg_info_new=t.asm.Bc).apply(null,arguments)},t._vscf_compound_key_alg_info_delete=function(){return(t._vscf_compound_key_alg_info_delete=t.asm.Cc).apply(null,arguments)},t._vscf_compound_key_alg_info_shallow_copy=function(){return(t._vscf_compound_key_alg_info_shallow_copy=t.asm.Dc).apply(null,arguments)},t._vscf_compound_private_key_cipher_key=function(){return(t._vscf_compound_private_key_cipher_key=t.asm.Ec).apply(null,arguments)},t._vscf_compound_private_key_signer_key=function(){return(t._vscf_compound_private_key_signer_key=t.asm.Fc).apply(null,arguments)},t._vscf_compound_private_key_alg_id=function(){return(t._vscf_compound_private_key_alg_id=t.asm.Gc).apply(null,arguments)},t._vscf_compound_private_key_alg_info=function(){return(t._vscf_compound_private_key_alg_info=t.asm.Hc).apply(null,arguments)},t._vscf_compound_private_key_len=function(){return(t._vscf_compound_private_key_len=t.asm.Ic).apply(null,arguments)},t._vscf_compound_private_key_bitlen=function(){return(t._vscf_compound_private_key_bitlen=t.asm.Jc).apply(null,arguments)},t._vscf_compound_private_key_impl_tag=function(){return(t._vscf_compound_private_key_impl_tag=t.asm.Kc).apply(null,arguments)},t._vscf_compound_private_key_is_valid=function(){return(t._vscf_compound_private_key_is_valid=t.asm.Lc).apply(null,arguments)},t._vscf_compound_private_key_extract_public_key=function(){return(t._vscf_compound_private_key_extract_public_key=t.asm.Mc).apply(null,arguments)},t._vscf_compound_private_key_new=function(){return(t._vscf_compound_private_key_new=t.asm.Nc).apply(null,arguments)},t._vscf_compound_private_key_delete=function(){return(t._vscf_compound_private_key_delete=t.asm.Oc).apply(null,arguments)},t._vscf_compound_private_key_shallow_copy=function(){return(t._vscf_compound_private_key_shallow_copy=t.asm.Pc).apply(null,arguments)},t._vscf_compound_public_key_cipher_key=function(){return(t._vscf_compound_public_key_cipher_key=t.asm.Qc).apply(null,arguments)},t._vscf_compound_public_key_signer_key=function(){return(t._vscf_compound_public_key_signer_key=t.asm.Rc).apply(null,arguments)},t._vscf_compound_public_key_alg_id=function(){return(t._vscf_compound_public_key_alg_id=t.asm.Sc).apply(null,arguments)},t._vscf_compound_public_key_alg_info=function(){return(t._vscf_compound_public_key_alg_info=t.asm.Tc).apply(null,arguments)},t._vscf_compound_public_key_len=function(){return(t._vscf_compound_public_key_len=t.asm.Uc).apply(null,arguments)},t._vscf_compound_public_key_bitlen=function(){return(t._vscf_compound_public_key_bitlen=t.asm.Vc).apply(null,arguments)},t._vscf_compound_public_key_impl_tag=function(){return(t._vscf_compound_public_key_impl_tag=t.asm.Wc).apply(null,arguments)},t._vscf_compound_public_key_is_valid=function(){return(t._vscf_compound_public_key_is_valid=t.asm.Xc).apply(null,arguments)},t._vscf_compound_public_key_new=function(){return(t._vscf_compound_public_key_new=t.asm.Yc).apply(null,arguments)},t._vscf_compound_public_key_delete=function(){return(t._vscf_compound_public_key_delete=t.asm.Zc).apply(null,arguments)},t._vscf_compound_public_key_shallow_copy=function(){return(t._vscf_compound_public_key_shallow_copy=t.asm._c).apply(null,arguments)},t._vscf_ctr_drbg_setup_defaults=function(){return(t._vscf_ctr_drbg_setup_defaults=t.asm.$c).apply(null,arguments)},t._vscf_ctr_drbg_enable_prediction_resistance=function(){return(t._vscf_ctr_drbg_enable_prediction_resistance=t.asm.ad).apply(null,arguments)},t._vscf_ctr_drbg_set_reseed_interval=function(){return(t._vscf_ctr_drbg_set_reseed_interval=t.asm.bd).apply(null,arguments)},t._vscf_ctr_drbg_set_entropy_len=function(){return(t._vscf_ctr_drbg_set_entropy_len=t.asm.cd).apply(null,arguments)},t._vscf_ctr_drbg_random=function(){return(t._vscf_ctr_drbg_random=t.asm.dd).apply(null,arguments)},t._vscf_ctr_drbg_reseed=function(){return(t._vscf_ctr_drbg_reseed=t.asm.ed).apply(null,arguments)},t._vscf_ctr_drbg_release_entropy_source=function(){return(t._vscf_ctr_drbg_release_entropy_source=t.asm.fd).apply(null,arguments)},t._vscf_ctr_drbg_new=function(){return(t._vscf_ctr_drbg_new=t.asm.gd).apply(null,arguments)},t._vscf_ctr_drbg_delete=function(){return(t._vscf_ctr_drbg_delete=t.asm.hd).apply(null,arguments)},t._vscf_ctr_drbg_shallow_copy=function(){return(t._vscf_ctr_drbg_shallow_copy=t.asm.id).apply(null,arguments)},t._vscf_ctr_drbg_use_entropy_source=function(){return(t._vscf_ctr_drbg_use_entropy_source=t.asm.jd).apply(null,arguments)},t._vscf_curve25519_setup_defaults=function(){return(t._vscf_curve25519_setup_defaults=t.asm.kd).apply(null,arguments)},t._vscf_curve25519_generate_key=function(){return(t._vscf_curve25519_generate_key=t.asm.ld).apply(null,arguments)},t._vscf_curve25519_generate_ephemeral_key=function(){return(t._vscf_curve25519_generate_ephemeral_key=t.asm.md).apply(null,arguments)},t._vscf_curve25519_import_public_key=function(){return(t._vscf_curve25519_import_public_key=t.asm.nd).apply(null,arguments)},t._vscf_curve25519_import_public_key_data=function(){return(t._vscf_curve25519_import_public_key_data=t.asm.od).apply(null,arguments)},t._vscf_curve25519_export_public_key=function(){return(t._vscf_curve25519_export_public_key=t.asm.pd).apply(null,arguments)},t._vscf_curve25519_exported_public_key_data_len=function(){return(t._vscf_curve25519_exported_public_key_data_len=t.asm.qd).apply(null,arguments)},t._vscf_curve25519_export_public_key_data=function(){return(t._vscf_curve25519_export_public_key_data=t.asm.rd).apply(null,arguments)},t._vscf_curve25519_import_private_key=function(){return(t._vscf_curve25519_import_private_key=t.asm.sd).apply(null,arguments)},t._vscf_curve25519_import_private_key_data=function(){return(t._vscf_curve25519_import_private_key_data=t.asm.td).apply(null,arguments)},t._vscf_curve25519_export_private_key=function(){return(t._vscf_curve25519_export_private_key=t.asm.ud).apply(null,arguments)},t._vscf_curve25519_exported_private_key_data_len=function(){return(t._vscf_curve25519_exported_private_key_data_len=t.asm.vd).apply(null,arguments)},t._vscf_curve25519_export_private_key_data=function(){return(t._vscf_curve25519_export_private_key_data=t.asm.wd).apply(null,arguments)},t._vscf_curve25519_can_encrypt=function(){return(t._vscf_curve25519_can_encrypt=t.asm.xd).apply(null,arguments)},t._vscf_curve25519_encrypted_len=function(){return(t._vscf_curve25519_encrypted_len=t.asm.yd).apply(null,arguments)},t._vscf_curve25519_encrypt=function(){return(t._vscf_curve25519_encrypt=t.asm.zd).apply(null,arguments)},t._vscf_curve25519_can_decrypt=function(){return(t._vscf_curve25519_can_decrypt=t.asm.Ad).apply(null,arguments)},t._vscf_curve25519_decrypted_len=function(){return(t._vscf_curve25519_decrypted_len=t.asm.Bd).apply(null,arguments)},t._vscf_curve25519_decrypt=function(){return(t._vscf_curve25519_decrypt=t.asm.Cd).apply(null,arguments)},t._vscf_curve25519_compute_shared_key=function(){return(t._vscf_curve25519_compute_shared_key=t.asm.Dd).apply(null,arguments)},t._vscf_curve25519_shared_key_len=function(){return(t._vscf_curve25519_shared_key_len=t.asm.Ed).apply(null,arguments)},t._vscf_curve25519_kem_shared_key_len=function(){return(t._vscf_curve25519_kem_shared_key_len=t.asm.Fd).apply(null,arguments)},t._vscf_curve25519_kem_encapsulated_key_len=function(){return(t._vscf_curve25519_kem_encapsulated_key_len=t.asm.Gd).apply(null,arguments)},t._vscf_curve25519_kem_encapsulate=function(){return(t._vscf_curve25519_kem_encapsulate=t.asm.Hd).apply(null,arguments)},t._vscf_curve25519_kem_decapsulate=function(){return(t._vscf_curve25519_kem_decapsulate=t.asm.Id).apply(null,arguments)},t._vscf_curve25519_release_random=function(){return(t._vscf_curve25519_release_random=t.asm.Jd).apply(null,arguments)},t._vscf_curve25519_release_ecies=function(){return(t._vscf_curve25519_release_ecies=t.asm.Kd).apply(null,arguments)},t._vscf_curve25519_new=function(){return(t._vscf_curve25519_new=t.asm.Ld).apply(null,arguments)},t._vscf_curve25519_delete=function(){return(t._vscf_curve25519_delete=t.asm.Md).apply(null,arguments)},t._vscf_curve25519_shallow_copy=function(){return(t._vscf_curve25519_shallow_copy=t.asm.Nd).apply(null,arguments)},t._vscf_curve25519_use_random=function(){return(t._vscf_curve25519_use_random=t.asm.Od).apply(null,arguments)},t._vscf_curve25519_use_ecies=function(){return(t._vscf_curve25519_use_ecies=t.asm.Pd).apply(null,arguments)},t._vscf_ecc_setup_defaults=function(){return(t._vscf_ecc_setup_defaults=t.asm.Qd).apply(null,arguments)},t._vscf_ecc_generate_key=function(){return(t._vscf_ecc_generate_key=t.asm.Rd).apply(null,arguments)},t._vscf_ecc_generate_ephemeral_key=function(){return(t._vscf_ecc_generate_ephemeral_key=t.asm.Sd).apply(null,arguments)},t._vscf_ecc_import_public_key=function(){return(t._vscf_ecc_import_public_key=t.asm.Td).apply(null,arguments)},t._vscf_ecc_import_public_key_data=function(){return(t._vscf_ecc_import_public_key_data=t.asm.Ud).apply(null,arguments)},t._vscf_ecc_export_public_key=function(){return(t._vscf_ecc_export_public_key=t.asm.Vd).apply(null,arguments)},t._vscf_ecc_exported_public_key_data_len=function(){return(t._vscf_ecc_exported_public_key_data_len=t.asm.Wd).apply(null,arguments)},t._vscf_ecc_export_public_key_data=function(){return(t._vscf_ecc_export_public_key_data=t.asm.Xd).apply(null,arguments)},t._vscf_ecc_import_private_key=function(){return(t._vscf_ecc_import_private_key=t.asm.Yd).apply(null,arguments)},t._vscf_ecc_import_private_key_data=function(){return(t._vscf_ecc_import_private_key_data=t.asm.Zd).apply(null,arguments)},t._vscf_ecc_export_private_key=function(){return(t._vscf_ecc_export_private_key=t.asm._d).apply(null,arguments)},t._vscf_ecc_exported_private_key_data_len=function(){return(t._vscf_ecc_exported_private_key_data_len=t.asm.$d).apply(null,arguments)},t._vscf_ecc_export_private_key_data=function(){return(t._vscf_ecc_export_private_key_data=t.asm.ae).apply(null,arguments)},t._vscf_ecc_can_encrypt=function(){return(t._vscf_ecc_can_encrypt=t.asm.be).apply(null,arguments)},t._vscf_ecc_encrypted_len=function(){return(t._vscf_ecc_encrypted_len=t.asm.ce).apply(null,arguments)},t._vscf_ecc_encrypt=function(){return(t._vscf_ecc_encrypt=t.asm.de).apply(null,arguments)},t._vscf_ecc_can_decrypt=function(){return(t._vscf_ecc_can_decrypt=t.asm.ee).apply(null,arguments)},t._vscf_ecc_decrypted_len=function(){return(t._vscf_ecc_decrypted_len=t.asm.fe).apply(null,arguments)},t._vscf_ecc_decrypt=function(){return(t._vscf_ecc_decrypt=t.asm.ge).apply(null,arguments)},t._vscf_ecc_can_sign=function(){return(t._vscf_ecc_can_sign=t.asm.he).apply(null,arguments)},t._vscf_ecc_signature_len=function(){return(t._vscf_ecc_signature_len=t.asm.ie).apply(null,arguments)},t._vscf_ecc_sign_hash=function(){return(t._vscf_ecc_sign_hash=t.asm.je).apply(null,arguments)},t._vscf_ecc_can_verify=function(){return(t._vscf_ecc_can_verify=t.asm.ke).apply(null,arguments)},t._vscf_ecc_verify_hash=function(){return(t._vscf_ecc_verify_hash=t.asm.le).apply(null,arguments)},t._vscf_ecc_compute_shared_key=function(){return(t._vscf_ecc_compute_shared_key=t.asm.me).apply(null,arguments)},t._vscf_ecc_shared_key_len=function(){return(t._vscf_ecc_shared_key_len=t.asm.ne).apply(null,arguments)},t._vscf_ecc_kem_shared_key_len=function(){return(t._vscf_ecc_kem_shared_key_len=t.asm.oe).apply(null,arguments)},t._vscf_ecc_kem_encapsulated_key_len=function(){return(t._vscf_ecc_kem_encapsulated_key_len=t.asm.pe).apply(null,arguments)},t._vscf_ecc_kem_encapsulate=function(){return(t._vscf_ecc_kem_encapsulate=t.asm.qe).apply(null,arguments)},t._vscf_ecc_kem_decapsulate=function(){return(t._vscf_ecc_kem_decapsulate=t.asm.re).apply(null,arguments)},t._vscf_ecc_release_random=function(){return(t._vscf_ecc_release_random=t.asm.se).apply(null,arguments)},t._vscf_ecc_release_ecies=function(){return(t._vscf_ecc_release_ecies=t.asm.te).apply(null,arguments)},t._vscf_ecc_new=function(){return(t._vscf_ecc_new=t.asm.ue).apply(null,arguments)},t._vscf_ecc_delete=function(){return(t._vscf_ecc_delete=t.asm.ve).apply(null,arguments)},t._vscf_ecc_shallow_copy=function(){return(t._vscf_ecc_shallow_copy=t.asm.we).apply(null,arguments)},t._vscf_ecc_use_random=function(){return(t._vscf_ecc_use_random=t.asm.xe).apply(null,arguments)},t._vscf_ecc_use_ecies=function(){return(t._vscf_ecc_use_ecies=t.asm.ye).apply(null,arguments)},t._vscf_ecc_alg_info_key_id=function(){return(t._vscf_ecc_alg_info_key_id=t.asm.ze).apply(null,arguments)},t._vscf_ecc_alg_info_domain_id=function(){return(t._vscf_ecc_alg_info_domain_id=t.asm.Ae).apply(null,arguments)},t._vscf_ecc_alg_info_alg_id=function(){return(t._vscf_ecc_alg_info_alg_id=t.asm.Be).apply(null,arguments)},t._vscf_ecc_alg_info_new=function(){return(t._vscf_ecc_alg_info_new=t.asm.Ce).apply(null,arguments)},t._vscf_ecc_alg_info_delete=function(){return(t._vscf_ecc_alg_info_delete=t.asm.De).apply(null,arguments)},t._vscf_ecc_alg_info_shallow_copy=function(){return(t._vscf_ecc_alg_info_shallow_copy=t.asm.Ee).apply(null,arguments)},t._vscf_ecc_alg_info_new_with_members=function(){return(t._vscf_ecc_alg_info_new_with_members=t.asm.Fe).apply(null,arguments)},t._vscf_ecc_private_key_alg_id=function(){return(t._vscf_ecc_private_key_alg_id=t.asm.Ge).apply(null,arguments)},t._vscf_ecc_private_key_alg_info=function(){return(t._vscf_ecc_private_key_alg_info=t.asm.He).apply(null,arguments)},t._vscf_ecc_private_key_len=function(){return(t._vscf_ecc_private_key_len=t.asm.Ie).apply(null,arguments)},t._vscf_ecc_private_key_bitlen=function(){return(t._vscf_ecc_private_key_bitlen=t.asm.Je).apply(null,arguments)},t._vscf_ecc_private_key_impl_tag=function(){return(t._vscf_ecc_private_key_impl_tag=t.asm.Ke).apply(null,arguments)},t._vscf_ecc_private_key_is_valid=function(){return(t._vscf_ecc_private_key_is_valid=t.asm.Le).apply(null,arguments)},t._vscf_ecc_private_key_extract_public_key=function(){return(t._vscf_ecc_private_key_extract_public_key=t.asm.Me).apply(null,arguments)},t._vscf_ecc_private_key_new=function(){return(t._vscf_ecc_private_key_new=t.asm.Ne).apply(null,arguments)},t._vscf_ecc_private_key_delete=function(){return(t._vscf_ecc_private_key_delete=t.asm.Oe).apply(null,arguments)},t._vscf_ecc_private_key_shallow_copy=function(){return(t._vscf_ecc_private_key_shallow_copy=t.asm.Pe).apply(null,arguments)},t._vscf_ecc_public_key_alg_id=function(){return(t._vscf_ecc_public_key_alg_id=t.asm.Qe).apply(null,arguments)},t._vscf_ecc_public_key_alg_info=function(){return(t._vscf_ecc_public_key_alg_info=t.asm.Re).apply(null,arguments)},t._vscf_ecc_public_key_len=function(){return(t._vscf_ecc_public_key_len=t.asm.Se).apply(null,arguments)},t._vscf_ecc_public_key_bitlen=function(){return(t._vscf_ecc_public_key_bitlen=t.asm.Te).apply(null,arguments)},t._vscf_ecc_public_key_impl_tag=function(){return(t._vscf_ecc_public_key_impl_tag=t.asm.Ue).apply(null,arguments)},t._vscf_ecc_public_key_is_valid=function(){return(t._vscf_ecc_public_key_is_valid=t.asm.Ve).apply(null,arguments)},t._vscf_ecc_public_key_new=function(){return(t._vscf_ecc_public_key_new=t.asm.We).apply(null,arguments)},t._vscf_ecc_public_key_delete=function(){return(t._vscf_ecc_public_key_delete=t.asm.Xe).apply(null,arguments)},t._vscf_ecc_public_key_shallow_copy=function(){return(t._vscf_ecc_public_key_shallow_copy=t.asm.Ye).apply(null,arguments)},t._vscf_ed25519_setup_defaults=function(){return(t._vscf_ed25519_setup_defaults=t.asm.Ze).apply(null,arguments)},t._vscf_ed25519_generate_key=function(){return(t._vscf_ed25519_generate_key=t.asm._e).apply(null,arguments)},t._vscf_ed25519_generate_ephemeral_key=function(){return(t._vscf_ed25519_generate_ephemeral_key=t.asm.$e).apply(null,arguments)},t._vscf_ed25519_import_public_key=function(){return(t._vscf_ed25519_import_public_key=t.asm.af).apply(null,arguments)},t._vscf_ed25519_import_public_key_data=function(){return(t._vscf_ed25519_import_public_key_data=t.asm.bf).apply(null,arguments)},t._vscf_ed25519_export_public_key=function(){return(t._vscf_ed25519_export_public_key=t.asm.cf).apply(null,arguments)},t._vscf_ed25519_exported_public_key_data_len=function(){return(t._vscf_ed25519_exported_public_key_data_len=t.asm.df).apply(null,arguments)},t._vscf_ed25519_export_public_key_data=function(){return(t._vscf_ed25519_export_public_key_data=t.asm.ef).apply(null,arguments)},t._vscf_ed25519_import_private_key=function(){return(t._vscf_ed25519_import_private_key=t.asm.ff).apply(null,arguments)},t._vscf_ed25519_import_private_key_data=function(){return(t._vscf_ed25519_import_private_key_data=t.asm.gf).apply(null,arguments)},t._vscf_ed25519_export_private_key=function(){return(t._vscf_ed25519_export_private_key=t.asm.hf).apply(null,arguments)},t._vscf_ed25519_exported_private_key_data_len=function(){return(t._vscf_ed25519_exported_private_key_data_len=t.asm.jf).apply(null,arguments)},t._vscf_ed25519_export_private_key_data=function(){return(t._vscf_ed25519_export_private_key_data=t.asm.kf).apply(null,arguments)},t._vscf_ed25519_can_encrypt=function(){return(t._vscf_ed25519_can_encrypt=t.asm.lf).apply(null,arguments)},t._vscf_ed25519_encrypted_len=function(){return(t._vscf_ed25519_encrypted_len=t.asm.mf).apply(null,arguments)},t._vscf_ed25519_encrypt=function(){return(t._vscf_ed25519_encrypt=t.asm.nf).apply(null,arguments)},t._vscf_ed25519_can_decrypt=function(){return(t._vscf_ed25519_can_decrypt=t.asm.of).apply(null,arguments)},t._vscf_ed25519_decrypted_len=function(){return(t._vscf_ed25519_decrypted_len=t.asm.pf).apply(null,arguments)},t._vscf_ed25519_decrypt=function(){return(t._vscf_ed25519_decrypt=t.asm.qf).apply(null,arguments)},t._vscf_ed25519_can_sign=function(){return(t._vscf_ed25519_can_sign=t.asm.rf).apply(null,arguments)},t._vscf_ed25519_signature_len=function(){return(t._vscf_ed25519_signature_len=t.asm.sf).apply(null,arguments)},t._vscf_ed25519_sign_hash=function(){return(t._vscf_ed25519_sign_hash=t.asm.tf).apply(null,arguments)},t._vscf_ed25519_can_verify=function(){return(t._vscf_ed25519_can_verify=t.asm.uf).apply(null,arguments)},t._vscf_ed25519_verify_hash=function(){return(t._vscf_ed25519_verify_hash=t.asm.vf).apply(null,arguments)},t._vscf_ed25519_compute_shared_key=function(){return(t._vscf_ed25519_compute_shared_key=t.asm.wf).apply(null,arguments)},t._vscf_ed25519_shared_key_len=function(){return(t._vscf_ed25519_shared_key_len=t.asm.xf).apply(null,arguments)},t._vscf_ed25519_kem_shared_key_len=function(){return(t._vscf_ed25519_kem_shared_key_len=t.asm.yf).apply(null,arguments)},t._vscf_ed25519_kem_encapsulated_key_len=function(){return(t._vscf_ed25519_kem_encapsulated_key_len=t.asm.zf).apply(null,arguments)},t._vscf_ed25519_kem_encapsulate=function(){return(t._vscf_ed25519_kem_encapsulate=t.asm.Af).apply(null,arguments)},t._vscf_ed25519_kem_decapsulate=function(){return(t._vscf_ed25519_kem_decapsulate=t.asm.Bf).apply(null,arguments)},t._vscf_ed25519_release_random=function(){return(t._vscf_ed25519_release_random=t.asm.Cf).apply(null,arguments)},t._vscf_ed25519_release_ecies=function(){return(t._vscf_ed25519_release_ecies=t.asm.Df).apply(null,arguments)},t._vscf_ed25519_new=function(){return(t._vscf_ed25519_new=t.asm.Ef).apply(null,arguments)},t._vscf_ed25519_delete=function(){return(t._vscf_ed25519_delete=t.asm.Ff).apply(null,arguments)},t._vscf_ed25519_shallow_copy=function(){return(t._vscf_ed25519_shallow_copy=t.asm.Gf).apply(null,arguments)},t._vscf_ed25519_use_random=function(){return(t._vscf_ed25519_use_random=t.asm.Hf).apply(null,arguments)},t._vscf_ed25519_use_ecies=function(){return(t._vscf_ed25519_use_ecies=t.asm.If).apply(null,arguments)},t._vscf_entropy_accumulator_setup_defaults=function(){return(t._vscf_entropy_accumulator_setup_defaults=t.asm.Jf).apply(null,arguments)},t._vscf_entropy_accumulator_add_source=function(){return(t._vscf_entropy_accumulator_add_source=t.asm.Kf).apply(null,arguments)},t._vscf_entropy_accumulator_is_strong=function(){return(t._vscf_entropy_accumulator_is_strong=t.asm.Lf).apply(null,arguments)},t._vscf_entropy_accumulator_gather=function(){return(t._vscf_entropy_accumulator_gather=t.asm.Mf).apply(null,arguments)},t._vscf_entropy_accumulator_new=function(){return(t._vscf_entropy_accumulator_new=t.asm.Nf).apply(null,arguments)},t._vscf_entropy_accumulator_delete=function(){return(t._vscf_entropy_accumulator_delete=t.asm.Of).apply(null,arguments)},t._vscf_entropy_accumulator_shallow_copy=function(){return(t._vscf_entropy_accumulator_shallow_copy=t.asm.Pf).apply(null,arguments)},t._vscf_fake_random_setup_source_byte=function(){return(t._vscf_fake_random_setup_source_byte=t.asm.Qf).apply(null,arguments)},t._vscf_fake_random_setup_source_data=function(){return(t._vscf_fake_random_setup_source_data=t.asm.Rf).apply(null,arguments)},t._vscf_fake_random_random=function(){return(t._vscf_fake_random_random=t.asm.Sf).apply(null,arguments)},t._vscf_fake_random_reseed=function(){return(t._vscf_fake_random_reseed=t.asm.Tf).apply(null,arguments)},t._vscf_fake_random_is_strong=function(){return(t._vscf_fake_random_is_strong=t.asm.Uf).apply(null,arguments)},t._vscf_fake_random_gather=function(){return(t._vscf_fake_random_gather=t.asm.Vf).apply(null,arguments)},t._vscf_fake_random_new=function(){return(t._vscf_fake_random_new=t.asm.Wf).apply(null,arguments)},t._vscf_fake_random_delete=function(){return(t._vscf_fake_random_delete=t.asm.Xf).apply(null,arguments)},t._vscf_fake_random_shallow_copy=function(){return(t._vscf_fake_random_shallow_copy=t.asm.Yf).apply(null,arguments)},t._vscf_falcon_setup_defaults=function(){return(t._vscf_falcon_setup_defaults=t.asm.Zf).apply(null,arguments)},t._vscf_falcon_generate_key=function(){return(t._vscf_falcon_generate_key=t.asm._f).apply(null,arguments)},t._vscf_falcon_produce_alg_info=function(){return(t._vscf_falcon_produce_alg_info=t.asm.$f).apply(null,arguments)},t._vscf_falcon_alg_id=function(){return(t._vscf_falcon_alg_id=t.asm.ag).apply(null,arguments)},t._vscf_falcon_restore_alg_info=function(){return(t._vscf_falcon_restore_alg_info=t.asm.bg).apply(null,arguments)},t._vscf_falcon_generate_ephemeral_key=function(){return(t._vscf_falcon_generate_ephemeral_key=t.asm.cg).apply(null,arguments)},t._vscf_falcon_import_public_key=function(){return(t._vscf_falcon_import_public_key=t.asm.dg).apply(null,arguments)},t._vscf_falcon_import_public_key_data=function(){return(t._vscf_falcon_import_public_key_data=t.asm.eg).apply(null,arguments)},t._vscf_falcon_export_public_key=function(){return(t._vscf_falcon_export_public_key=t.asm.fg).apply(null,arguments)},t._vscf_falcon_exported_public_key_data_len=function(){return(t._vscf_falcon_exported_public_key_data_len=t.asm.gg).apply(null,arguments)},t._vscf_falcon_export_public_key_data=function(){return(t._vscf_falcon_export_public_key_data=t.asm.hg).apply(null,arguments)},t._vscf_falcon_import_private_key=function(){return(t._vscf_falcon_import_private_key=t.asm.ig).apply(null,arguments)},t._vscf_falcon_import_private_key_data=function(){return(t._vscf_falcon_import_private_key_data=t.asm.jg).apply(null,arguments)},t._vscf_falcon_export_private_key=function(){return(t._vscf_falcon_export_private_key=t.asm.kg).apply(null,arguments)},t._vscf_falcon_exported_private_key_data_len=function(){return(t._vscf_falcon_exported_private_key_data_len=t.asm.lg).apply(null,arguments)},t._vscf_falcon_export_private_key_data=function(){return(t._vscf_falcon_export_private_key_data=t.asm.mg).apply(null,arguments)},t._vscf_falcon_can_sign=function(){return(t._vscf_falcon_can_sign=t.asm.ng).apply(null,arguments)},t._vscf_falcon_signature_len=function(){return(t._vscf_falcon_signature_len=t.asm.og).apply(null,arguments)},t._vscf_falcon_sign_hash=function(){return(t._vscf_falcon_sign_hash=t.asm.pg).apply(null,arguments)},t._vscf_falcon_can_verify=function(){return(t._vscf_falcon_can_verify=t.asm.qg).apply(null,arguments)},t._vscf_falcon_verify_hash=function(){return(t._vscf_falcon_verify_hash=t.asm.rg).apply(null,arguments)},t._vscf_falcon_release_random=function(){return(t._vscf_falcon_release_random=t.asm.sg).apply(null,arguments)},t._vscf_falcon_new=function(){return(t._vscf_falcon_new=t.asm.tg).apply(null,arguments)},t._vscf_falcon_delete=function(){return(t._vscf_falcon_delete=t.asm.ug).apply(null,arguments)},t._vscf_falcon_shallow_copy=function(){return(t._vscf_falcon_shallow_copy=t.asm.vg).apply(null,arguments)},t._vscf_falcon_use_random=function(){return(t._vscf_falcon_use_random=t.asm.wg).apply(null,arguments)},t._vscf_hash_based_alg_info_hash_alg_info=function(){return(t._vscf_hash_based_alg_info_hash_alg_info=t.asm.xg).apply(null,arguments)},t._vscf_hash_based_alg_info_alg_id=function(){return(t._vscf_hash_based_alg_info_alg_id=t.asm.yg).apply(null,arguments)},t._vscf_hash_based_alg_info_new=function(){return(t._vscf_hash_based_alg_info_new=t.asm.zg).apply(null,arguments)},t._vscf_hash_based_alg_info_delete=function(){return(t._vscf_hash_based_alg_info_delete=t.asm.Ag).apply(null,arguments)},t._vscf_hash_based_alg_info_shallow_copy=function(){return(t._vscf_hash_based_alg_info_shallow_copy=t.asm.Bg).apply(null,arguments)},t._vscf_hkdf_alg_id=function(){return(t._vscf_hkdf_alg_id=t.asm.Cg).apply(null,arguments)},t._vscf_hkdf_produce_alg_info=function(){return(t._vscf_hkdf_produce_alg_info=t.asm.Dg).apply(null,arguments)},t._vscf_hkdf_restore_alg_info=function(){return(t._vscf_hkdf_restore_alg_info=t.asm.Eg).apply(null,arguments)},t._vscf_hkdf_derive=function(){return(t._vscf_hkdf_derive=t.asm.Fg).apply(null,arguments)},t._vscf_hkdf_reset=function(){return(t._vscf_hkdf_reset=t.asm.Gg).apply(null,arguments)},t._vscf_hkdf_set_info=function(){return(t._vscf_hkdf_set_info=t.asm.Hg).apply(null,arguments)},t._vscf_hkdf_release_hash=function(){return(t._vscf_hkdf_release_hash=t.asm.Ig).apply(null,arguments)},t._vscf_hkdf_new=function(){return(t._vscf_hkdf_new=t.asm.Jg).apply(null,arguments)},t._vscf_hkdf_delete=function(){return(t._vscf_hkdf_delete=t.asm.Kg).apply(null,arguments)},t._vscf_hkdf_shallow_copy=function(){return(t._vscf_hkdf_shallow_copy=t.asm.Lg).apply(null,arguments)},t._vscf_hkdf_use_hash=function(){return(t._vscf_hkdf_use_hash=t.asm.Mg).apply(null,arguments)},t._vscf_hmac_alg_id=function(){return(t._vscf_hmac_alg_id=t.asm.Ng).apply(null,arguments)},t._vscf_hmac_produce_alg_info=function(){return(t._vscf_hmac_produce_alg_info=t.asm.Og).apply(null,arguments)},t._vscf_hmac_restore_alg_info=function(){return(t._vscf_hmac_restore_alg_info=t.asm.Pg).apply(null,arguments)},t._vscf_hmac_digest_len=function(){return(t._vscf_hmac_digest_len=t.asm.Qg).apply(null,arguments)},t._vscf_hmac_mac=function(){return(t._vscf_hmac_mac=t.asm.Rg).apply(null,arguments)},t._vscf_hmac_start=function(){return(t._vscf_hmac_start=t.asm.Sg).apply(null,arguments)},t._vscf_hmac_finish=function(){return(t._vscf_hmac_finish=t.asm.Tg).apply(null,arguments)},t._vscf_hmac_update=function(){return(t._vscf_hmac_update=t.asm.Ug).apply(null,arguments)},t._vscf_hmac_reset=function(){return(t._vscf_hmac_reset=t.asm.Vg).apply(null,arguments)},t._vscf_hmac_release_hash=function(){return(t._vscf_hmac_release_hash=t.asm.Wg).apply(null,arguments)},t._vscf_hmac_new=function(){return(t._vscf_hmac_new=t.asm.Xg).apply(null,arguments)},t._vscf_hmac_delete=function(){return(t._vscf_hmac_delete=t.asm.Yg).apply(null,arguments)},t._vscf_hmac_shallow_copy=function(){return(t._vscf_hmac_shallow_copy=t.asm.Zg).apply(null,arguments)},t._vscf_hmac_use_hash=function(){return(t._vscf_hmac_use_hash=t.asm._g).apply(null,arguments)},t._vscf_hybrid_key_alg_setup_defaults=function(){return(t._vscf_hybrid_key_alg_setup_defaults=t.asm.$g).apply(null,arguments)},t._vscf_hybrid_key_alg_make_key=function(){return(t._vscf_hybrid_key_alg_make_key=t.asm.ah).apply(null,arguments)},t._vscf_hybrid_key_alg_generate_ephemeral_key=function(){return(t._vscf_hybrid_key_alg_generate_ephemeral_key=t.asm.bh).apply(null,arguments)},t._vscf_hybrid_key_alg_import_public_key=function(){return(t._vscf_hybrid_key_alg_import_public_key=t.asm.ch).apply(null,arguments)},t._vscf_hybrid_key_alg_import_public_key_data=function(){return(t._vscf_hybrid_key_alg_import_public_key_data=t.asm.dh).apply(null,arguments)},t._vscf_hybrid_key_alg_export_public_key=function(){return(t._vscf_hybrid_key_alg_export_public_key=t.asm.eh).apply(null,arguments)},t._vscf_hybrid_key_alg_exported_public_key_data_len=function(){return(t._vscf_hybrid_key_alg_exported_public_key_data_len=t.asm.fh).apply(null,arguments)},t._vscf_hybrid_key_alg_export_public_key_data=function(){return(t._vscf_hybrid_key_alg_export_public_key_data=t.asm.gh).apply(null,arguments)},t._vscf_hybrid_key_alg_import_private_key=function(){return(t._vscf_hybrid_key_alg_import_private_key=t.asm.hh).apply(null,arguments)},t._vscf_hybrid_key_alg_import_private_key_data=function(){return(t._vscf_hybrid_key_alg_import_private_key_data=t.asm.ih).apply(null,arguments)},t._vscf_hybrid_key_alg_export_private_key=function(){return(t._vscf_hybrid_key_alg_export_private_key=t.asm.jh).apply(null,arguments)},t._vscf_hybrid_key_alg_exported_private_key_data_len=function(){return(t._vscf_hybrid_key_alg_exported_private_key_data_len=t.asm.kh).apply(null,arguments)},t._vscf_hybrid_key_alg_export_private_key_data=function(){return(t._vscf_hybrid_key_alg_export_private_key_data=t.asm.lh).apply(null,arguments)},t._vscf_hybrid_key_alg_can_encrypt=function(){return(t._vscf_hybrid_key_alg_can_encrypt=t.asm.mh).apply(null,arguments)},t._vscf_hybrid_key_alg_encrypted_len=function(){return(t._vscf_hybrid_key_alg_encrypted_len=t.asm.nh).apply(null,arguments)},t._vscf_hybrid_key_alg_encrypt=function(){return(t._vscf_hybrid_key_alg_encrypt=t.asm.oh).apply(null,arguments)},t._vscf_hybrid_key_alg_can_decrypt=function(){return(t._vscf_hybrid_key_alg_can_decrypt=t.asm.ph).apply(null,arguments)},t._vscf_hybrid_key_alg_decrypted_len=function(){return(t._vscf_hybrid_key_alg_decrypted_len=t.asm.qh).apply(null,arguments)},t._vscf_hybrid_key_alg_decrypt=function(){return(t._vscf_hybrid_key_alg_decrypt=t.asm.rh).apply(null,arguments)},t._vscf_hybrid_key_alg_can_sign=function(){return(t._vscf_hybrid_key_alg_can_sign=t.asm.sh).apply(null,arguments)},t._vscf_hybrid_key_alg_signature_len=function(){return(t._vscf_hybrid_key_alg_signature_len=t.asm.th).apply(null,arguments)},t._vscf_hybrid_key_alg_sign_hash=function(){return(t._vscf_hybrid_key_alg_sign_hash=t.asm.uh).apply(null,arguments)},t._vscf_hybrid_key_alg_can_verify=function(){return(t._vscf_hybrid_key_alg_can_verify=t.asm.vh).apply(null,arguments)},t._vscf_hybrid_key_alg_verify_hash=function(){return(t._vscf_hybrid_key_alg_verify_hash=t.asm.wh).apply(null,arguments)},t._vscf_hybrid_key_alg_release_random=function(){return(t._vscf_hybrid_key_alg_release_random=t.asm.xh).apply(null,arguments)},t._vscf_hybrid_key_alg_release_cipher=function(){return(t._vscf_hybrid_key_alg_release_cipher=t.asm.yh).apply(null,arguments)},t._vscf_hybrid_key_alg_release_hash=function(){return(t._vscf_hybrid_key_alg_release_hash=t.asm.zh).apply(null,arguments)},t._vscf_hybrid_key_alg_new=function(){return(t._vscf_hybrid_key_alg_new=t.asm.Ah).apply(null,arguments)},t._vscf_hybrid_key_alg_delete=function(){return(t._vscf_hybrid_key_alg_delete=t.asm.Bh).apply(null,arguments)},t._vscf_hybrid_key_alg_shallow_copy=function(){return(t._vscf_hybrid_key_alg_shallow_copy=t.asm.Ch).apply(null,arguments)},t._vscf_hybrid_key_alg_use_random=function(){return(t._vscf_hybrid_key_alg_use_random=t.asm.Dh).apply(null,arguments)},t._vscf_hybrid_key_alg_use_cipher=function(){return(t._vscf_hybrid_key_alg_use_cipher=t.asm.Eh).apply(null,arguments)},t._vscf_hybrid_key_alg_use_hash=function(){return(t._vscf_hybrid_key_alg_use_hash=t.asm.Fh).apply(null,arguments)},t._vscf_hybrid_key_alg_info_first_key_alg_info=function(){return(t._vscf_hybrid_key_alg_info_first_key_alg_info=t.asm.Gh).apply(null,arguments)},t._vscf_hybrid_key_alg_info_second_key_alg_info=function(){return(t._vscf_hybrid_key_alg_info_second_key_alg_info=t.asm.Hh).apply(null,arguments)},t._vscf_hybrid_key_alg_info_alg_id=function(){return(t._vscf_hybrid_key_alg_info_alg_id=t.asm.Ih).apply(null,arguments)},t._vscf_hybrid_key_alg_info_new=function(){return(t._vscf_hybrid_key_alg_info_new=t.asm.Jh).apply(null,arguments)},t._vscf_hybrid_key_alg_info_delete=function(){return(t._vscf_hybrid_key_alg_info_delete=t.asm.Kh).apply(null,arguments)},t._vscf_hybrid_key_alg_info_shallow_copy=function(){return(t._vscf_hybrid_key_alg_info_shallow_copy=t.asm.Lh).apply(null,arguments)},t._vscf_hybrid_private_key_first_key=function(){return(t._vscf_hybrid_private_key_first_key=t.asm.Mh).apply(null,arguments)},t._vscf_hybrid_private_key_second_key=function(){return(t._vscf_hybrid_private_key_second_key=t.asm.Nh).apply(null,arguments)},t._vscf_hybrid_private_key_alg_id=function(){return(t._vscf_hybrid_private_key_alg_id=t.asm.Oh).apply(null,arguments)},t._vscf_hybrid_private_key_alg_info=function(){return(t._vscf_hybrid_private_key_alg_info=t.asm.Ph).apply(null,arguments)},t._vscf_hybrid_private_key_len=function(){return(t._vscf_hybrid_private_key_len=t.asm.Qh).apply(null,arguments)},t._vscf_hybrid_private_key_bitlen=function(){return(t._vscf_hybrid_private_key_bitlen=t.asm.Rh).apply(null,arguments)},t._vscf_hybrid_private_key_impl_tag=function(){return(t._vscf_hybrid_private_key_impl_tag=t.asm.Sh).apply(null,arguments)},t._vscf_hybrid_private_key_is_valid=function(){return(t._vscf_hybrid_private_key_is_valid=t.asm.Th).apply(null,arguments)},t._vscf_hybrid_private_key_extract_public_key=function(){return(t._vscf_hybrid_private_key_extract_public_key=t.asm.Uh).apply(null,arguments)},t._vscf_hybrid_private_key_new=function(){return(t._vscf_hybrid_private_key_new=t.asm.Vh).apply(null,arguments)},t._vscf_hybrid_private_key_delete=function(){return(t._vscf_hybrid_private_key_delete=t.asm.Wh).apply(null,arguments)},t._vscf_hybrid_private_key_shallow_copy=function(){return(t._vscf_hybrid_private_key_shallow_copy=t.asm.Xh).apply(null,arguments)},t._vscf_hybrid_public_key_first_key=function(){return(t._vscf_hybrid_public_key_first_key=t.asm.Yh).apply(null,arguments)},t._vscf_hybrid_public_key_second_key=function(){return(t._vscf_hybrid_public_key_second_key=t.asm.Zh).apply(null,arguments)},t._vscf_hybrid_public_key_alg_id=function(){return(t._vscf_hybrid_public_key_alg_id=t.asm._h).apply(null,arguments)},t._vscf_hybrid_public_key_alg_info=function(){return(t._vscf_hybrid_public_key_alg_info=t.asm.$h).apply(null,arguments)},t._vscf_hybrid_public_key_len=function(){return(t._vscf_hybrid_public_key_len=t.asm.ai).apply(null,arguments)},t._vscf_hybrid_public_key_bitlen=function(){return(t._vscf_hybrid_public_key_bitlen=t.asm.bi).apply(null,arguments)},t._vscf_hybrid_public_key_impl_tag=function(){return(t._vscf_hybrid_public_key_impl_tag=t.asm.ci).apply(null,arguments)},t._vscf_hybrid_public_key_is_valid=function(){return(t._vscf_hybrid_public_key_is_valid=t.asm.di).apply(null,arguments)},t._vscf_hybrid_public_key_new=function(){return(t._vscf_hybrid_public_key_new=t.asm.ei).apply(null,arguments)},t._vscf_hybrid_public_key_delete=function(){return(t._vscf_hybrid_public_key_delete=t.asm.fi).apply(null,arguments)},t._vscf_hybrid_public_key_shallow_copy=function(){return(t._vscf_hybrid_public_key_shallow_copy=t.asm.gi).apply(null,arguments)},t._vscf_kdf1_alg_id=function(){return(t._vscf_kdf1_alg_id=t.asm.hi).apply(null,arguments)},t._vscf_kdf1_produce_alg_info=function(){return(t._vscf_kdf1_produce_alg_info=t.asm.ii).apply(null,arguments)},t._vscf_kdf1_restore_alg_info=function(){return(t._vscf_kdf1_restore_alg_info=t.asm.ji).apply(null,arguments)},t._vscf_kdf1_derive=function(){return(t._vscf_kdf1_derive=t.asm.ki).apply(null,arguments)},t._vscf_kdf1_release_hash=function(){return(t._vscf_kdf1_release_hash=t.asm.li).apply(null,arguments)},t._vscf_kdf1_new=function(){return(t._vscf_kdf1_new=t.asm.mi).apply(null,arguments)},t._vscf_kdf1_delete=function(){return(t._vscf_kdf1_delete=t.asm.ni).apply(null,arguments)},t._vscf_kdf1_shallow_copy=function(){return(t._vscf_kdf1_shallow_copy=t.asm.oi).apply(null,arguments)},t._vscf_kdf1_use_hash=function(){return(t._vscf_kdf1_use_hash=t.asm.pi).apply(null,arguments)},t._vscf_kdf2_alg_id=function(){return(t._vscf_kdf2_alg_id=t.asm.qi).apply(null,arguments)},t._vscf_kdf2_produce_alg_info=function(){return(t._vscf_kdf2_produce_alg_info=t.asm.ri).apply(null,arguments)},t._vscf_kdf2_restore_alg_info=function(){return(t._vscf_kdf2_restore_alg_info=t.asm.si).apply(null,arguments)},t._vscf_kdf2_derive=function(){return(t._vscf_kdf2_derive=t.asm.ti).apply(null,arguments)},t._vscf_kdf2_release_hash=function(){return(t._vscf_kdf2_release_hash=t.asm.ui).apply(null,arguments)},t._vscf_kdf2_new=function(){return(t._vscf_kdf2_new=t.asm.vi).apply(null,arguments)},t._vscf_kdf2_delete=function(){return(t._vscf_kdf2_delete=t.asm.wi).apply(null,arguments)},t._vscf_kdf2_shallow_copy=function(){return(t._vscf_kdf2_shallow_copy=t.asm.xi).apply(null,arguments)},t._vscf_kdf2_use_hash=function(){return(t._vscf_kdf2_use_hash=t.asm.yi).apply(null,arguments)},t._vscf_key_asn1_deserializer_setup_defaults=function(){return(t._vscf_key_asn1_deserializer_setup_defaults=t.asm.zi).apply(null,arguments)},t._vscf_key_asn1_deserializer_deserialize_public_key_inplace=function(){return(t._vscf_key_asn1_deserializer_deserialize_public_key_inplace=t.asm.Ai).apply(null,arguments)},t._vscf_key_asn1_deserializer_deserialize_private_key_inplace=function(){return(t._vscf_key_asn1_deserializer_deserialize_private_key_inplace=t.asm.Bi).apply(null,arguments)},t._vscf_key_asn1_deserializer_deserialize_public_key=function(){return(t._vscf_key_asn1_deserializer_deserialize_public_key=t.asm.Ci).apply(null,arguments)},t._vscf_key_asn1_deserializer_deserialize_private_key=function(){return(t._vscf_key_asn1_deserializer_deserialize_private_key=t.asm.Di).apply(null,arguments)},t._vscf_key_asn1_deserializer_release_asn1_reader=function(){return(t._vscf_key_asn1_deserializer_release_asn1_reader=t.asm.Ei).apply(null,arguments)},t._vscf_key_asn1_deserializer_new=function(){return(t._vscf_key_asn1_deserializer_new=t.asm.Fi).apply(null,arguments)},t._vscf_key_asn1_deserializer_delete=function(){return(t._vscf_key_asn1_deserializer_delete=t.asm.Gi).apply(null,arguments)},t._vscf_key_asn1_deserializer_shallow_copy=function(){return(t._vscf_key_asn1_deserializer_shallow_copy=t.asm.Hi).apply(null,arguments)},t._vscf_key_asn1_deserializer_use_asn1_reader=function(){return(t._vscf_key_asn1_deserializer_use_asn1_reader=t.asm.Ii).apply(null,arguments)},t._vscf_key_asn1_serializer_setup_defaults=function(){return(t._vscf_key_asn1_serializer_setup_defaults=t.asm.Ji).apply(null,arguments)},t._vscf_key_asn1_serializer_serialize_public_key_inplace=function(){return(t._vscf_key_asn1_serializer_serialize_public_key_inplace=t.asm.Ki).apply(null,arguments)},t._vscf_key_asn1_serializer_serialized_public_key_len=function(){return(t._vscf_key_asn1_serializer_serialized_public_key_len=t.asm.Li).apply(null,arguments)},t._vscf_key_asn1_serializer_serialize_private_key_inplace=function(){return(t._vscf_key_asn1_serializer_serialize_private_key_inplace=t.asm.Mi).apply(null,arguments)},t._vscf_key_asn1_serializer_serialized_private_key_len=function(){return(t._vscf_key_asn1_serializer_serialized_private_key_len=t.asm.Ni).apply(null,arguments)},t._vscf_key_asn1_serializer_serialize_public_key=function(){return(t._vscf_key_asn1_serializer_serialize_public_key=t.asm.Oi).apply(null,arguments)},t._vscf_key_asn1_serializer_serialize_private_key=function(){return(t._vscf_key_asn1_serializer_serialize_private_key=t.asm.Pi).apply(null,arguments)},t._vscf_key_asn1_serializer_release_asn1_writer=function(){return(t._vscf_key_asn1_serializer_release_asn1_writer=t.asm.Qi).apply(null,arguments)},t._vscf_key_asn1_serializer_new=function(){return(t._vscf_key_asn1_serializer_new=t.asm.Ri).apply(null,arguments)},t._vscf_key_asn1_serializer_delete=function(){return(t._vscf_key_asn1_serializer_delete=t.asm.Si).apply(null,arguments)},t._vscf_key_asn1_serializer_shallow_copy=function(){return(t._vscf_key_asn1_serializer_shallow_copy=t.asm.Ti).apply(null,arguments)},t._vscf_key_asn1_serializer_use_asn1_writer=function(){return(t._vscf_key_asn1_serializer_use_asn1_writer=t.asm.Ui).apply(null,arguments)},t._vscf_key_material_rng_reset_key_material=function(){return(t._vscf_key_material_rng_reset_key_material=t.asm.Vi).apply(null,arguments)},t._vscf_key_material_rng_random=function(){return(t._vscf_key_material_rng_random=t.asm.Wi).apply(null,arguments)},t._vscf_key_material_rng_reseed=function(){return(t._vscf_key_material_rng_reseed=t.asm.Xi).apply(null,arguments)},t._vscf_key_material_rng_new=function(){return(t._vscf_key_material_rng_new=t.asm.Yi).apply(null,arguments)},t._vscf_key_material_rng_delete=function(){return(t._vscf_key_material_rng_delete=t.asm.Zi).apply(null,arguments)},t._vscf_key_material_rng_shallow_copy=function(){return(t._vscf_key_material_rng_shallow_copy=t.asm._i).apply(null,arguments)},t._vscf_message_info_der_serializer_setup_defaults=function(){return(t._vscf_message_info_der_serializer_setup_defaults=t.asm.$i).apply(null,arguments)},t._vscf_message_info_der_serializer_serialized_len=function(){return(t._vscf_message_info_der_serializer_serialized_len=t.asm.aj).apply(null,arguments)},t._vscf_message_info_der_serializer_serialize=function(){return(t._vscf_message_info_der_serializer_serialize=t.asm.bj).apply(null,arguments)},t._vscf_message_info_der_serializer_read_prefix=function(){return(t._vscf_message_info_der_serializer_read_prefix=t.asm.cj).apply(null,arguments)},t._vscf_message_info_der_serializer_deserialize=function(){return(t._vscf_message_info_der_serializer_deserialize=t.asm.dj).apply(null,arguments)},t._vscf_message_info_der_serializer_serialized_footer_len=function(){return(t._vscf_message_info_der_serializer_serialized_footer_len=t.asm.ej).apply(null,arguments)},t._vscf_message_info_der_serializer_serialize_footer=function(){return(t._vscf_message_info_der_serializer_serialize_footer=t.asm.fj).apply(null,arguments)},t._vscf_message_info_der_serializer_deserialize_footer=function(){return(t._vscf_message_info_der_serializer_deserialize_footer=t.asm.gj).apply(null,arguments)},t._vscf_message_info_der_serializer_release_asn1_reader=function(){return(t._vscf_message_info_der_serializer_release_asn1_reader=t.asm.hj).apply(null,arguments)},t._vscf_message_info_der_serializer_release_asn1_writer=function(){return(t._vscf_message_info_der_serializer_release_asn1_writer=t.asm.ij).apply(null,arguments)},t._vscf_message_info_der_serializer_new=function(){return(t._vscf_message_info_der_serializer_new=t.asm.jj).apply(null,arguments)},t._vscf_message_info_der_serializer_delete=function(){return(t._vscf_message_info_der_serializer_delete=t.asm.kj).apply(null,arguments)},t._vscf_message_info_der_serializer_shallow_copy=function(){return(t._vscf_message_info_der_serializer_shallow_copy=t.asm.lj).apply(null,arguments)},t._vscf_message_info_der_serializer_use_asn1_reader=function(){return(t._vscf_message_info_der_serializer_use_asn1_reader=t.asm.mj).apply(null,arguments)},t._vscf_message_info_der_serializer_use_asn1_writer=function(){return(t._vscf_message_info_der_serializer_use_asn1_writer=t.asm.nj).apply(null,arguments)},t._vscf_pbe_alg_info_kdf_alg_info=function(){return(t._vscf_pbe_alg_info_kdf_alg_info=t.asm.oj).apply(null,arguments)},t._vscf_pbe_alg_info_cipher_alg_info=function(){return(t._vscf_pbe_alg_info_cipher_alg_info=t.asm.pj).apply(null,arguments)},t._vscf_pbe_alg_info_alg_id=function(){return(t._vscf_pbe_alg_info_alg_id=t.asm.qj).apply(null,arguments)},t._vscf_pbe_alg_info_new=function(){return(t._vscf_pbe_alg_info_new=t.asm.rj).apply(null,arguments)},t._vscf_pbe_alg_info_delete=function(){return(t._vscf_pbe_alg_info_delete=t.asm.sj).apply(null,arguments)},t._vscf_pbe_alg_info_shallow_copy=function(){return(t._vscf_pbe_alg_info_shallow_copy=t.asm.tj).apply(null,arguments)},t._vscf_pkcs5_pbes2_reset=function(){return(t._vscf_pkcs5_pbes2_reset=t.asm.uj).apply(null,arguments)},t._vscf_pkcs5_pbes2_alg_id=function(){return(t._vscf_pkcs5_pbes2_alg_id=t.asm.vj).apply(null,arguments)},t._vscf_pkcs5_pbes2_produce_alg_info=function(){return(t._vscf_pkcs5_pbes2_produce_alg_info=t.asm.wj).apply(null,arguments)},t._vscf_pkcs5_pbes2_restore_alg_info=function(){return(t._vscf_pkcs5_pbes2_restore_alg_info=t.asm.xj).apply(null,arguments)},t._vscf_pkcs5_pbes2_encrypt=function(){return(t._vscf_pkcs5_pbes2_encrypt=t.asm.yj).apply(null,arguments)},t._vscf_pkcs5_pbes2_encrypted_len=function(){return(t._vscf_pkcs5_pbes2_encrypted_len=t.asm.zj).apply(null,arguments)},t._vscf_pkcs5_pbes2_precise_encrypted_len=function(){return(t._vscf_pkcs5_pbes2_precise_encrypted_len=t.asm.Aj).apply(null,arguments)},t._vscf_pkcs5_pbes2_decrypt=function(){return(t._vscf_pkcs5_pbes2_decrypt=t.asm.Bj).apply(null,arguments)},t._vscf_pkcs5_pbes2_decrypted_len=function(){return(t._vscf_pkcs5_pbes2_decrypted_len=t.asm.Cj).apply(null,arguments)},t._vscf_pkcs5_pbes2_release_kdf=function(){return(t._vscf_pkcs5_pbes2_release_kdf=t.asm.Dj).apply(null,arguments)},t._vscf_pkcs5_pbes2_release_cipher=function(){return(t._vscf_pkcs5_pbes2_release_cipher=t.asm.Ej).apply(null,arguments)},t._vscf_pkcs5_pbes2_new=function(){return(t._vscf_pkcs5_pbes2_new=t.asm.Fj).apply(null,arguments)},t._vscf_pkcs5_pbes2_delete=function(){return(t._vscf_pkcs5_pbes2_delete=t.asm.Gj).apply(null,arguments)},t._vscf_pkcs5_pbes2_shallow_copy=function(){return(t._vscf_pkcs5_pbes2_shallow_copy=t.asm.Hj).apply(null,arguments)},t._vscf_pkcs5_pbes2_use_kdf=function(){return(t._vscf_pkcs5_pbes2_use_kdf=t.asm.Ij).apply(null,arguments)},t._vscf_pkcs5_pbes2_use_cipher=function(){return(t._vscf_pkcs5_pbes2_use_cipher=t.asm.Jj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_setup_defaults=function(){return(t._vscf_pkcs5_pbkdf2_setup_defaults=t.asm.Kj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_alg_id=function(){return(t._vscf_pkcs5_pbkdf2_alg_id=t.asm.Lj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_produce_alg_info=function(){return(t._vscf_pkcs5_pbkdf2_produce_alg_info=t.asm.Mj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_restore_alg_info=function(){return(t._vscf_pkcs5_pbkdf2_restore_alg_info=t.asm.Nj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_reset=function(){return(t._vscf_pkcs5_pbkdf2_reset=t.asm.Oj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_derive=function(){return(t._vscf_pkcs5_pbkdf2_derive=t.asm.Pj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_set_info=function(){return(t._vscf_pkcs5_pbkdf2_set_info=t.asm.Qj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_release_hmac=function(){return(t._vscf_pkcs5_pbkdf2_release_hmac=t.asm.Rj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_new=function(){return(t._vscf_pkcs5_pbkdf2_new=t.asm.Sj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_delete=function(){return(t._vscf_pkcs5_pbkdf2_delete=t.asm.Tj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_shallow_copy=function(){return(t._vscf_pkcs5_pbkdf2_shallow_copy=t.asm.Uj).apply(null,arguments)},t._vscf_pkcs5_pbkdf2_use_hmac=function(){return(t._vscf_pkcs5_pbkdf2_use_hmac=t.asm.Vj).apply(null,arguments)},t._vscf_pkcs8_serializer_setup_defaults=function(){return(t._vscf_pkcs8_serializer_setup_defaults=t.asm.Wj).apply(null,arguments)},t._vscf_pkcs8_serializer_serialize_public_key_inplace=function(){return(t._vscf_pkcs8_serializer_serialize_public_key_inplace=t.asm.Xj).apply(null,arguments)},t._vscf_pkcs8_serializer_serialized_public_key_len=function(){return(t._vscf_pkcs8_serializer_serialized_public_key_len=t.asm.Yj).apply(null,arguments)},t._vscf_pkcs8_serializer_serialize_private_key_inplace=function(){return(t._vscf_pkcs8_serializer_serialize_private_key_inplace=t.asm.Zj).apply(null,arguments)},t._vscf_pkcs8_serializer_serialized_private_key_len=function(){return(t._vscf_pkcs8_serializer_serialized_private_key_len=t.asm._j).apply(null,arguments)},t._vscf_pkcs8_serializer_serialize_public_key=function(){return(t._vscf_pkcs8_serializer_serialize_public_key=t.asm.$j).apply(null,arguments)},t._vscf_pkcs8_serializer_serialize_private_key=function(){return(t._vscf_pkcs8_serializer_serialize_private_key=t.asm.ak).apply(null,arguments)},t._vscf_pkcs8_serializer_release_asn1_writer=function(){return(t._vscf_pkcs8_serializer_release_asn1_writer=t.asm.bk).apply(null,arguments)},t._vscf_pkcs8_serializer_new=function(){return(t._vscf_pkcs8_serializer_new=t.asm.ck).apply(null,arguments)},t._vscf_pkcs8_serializer_delete=function(){return(t._vscf_pkcs8_serializer_delete=t.asm.dk).apply(null,arguments)},t._vscf_pkcs8_serializer_shallow_copy=function(){return(t._vscf_pkcs8_serializer_shallow_copy=t.asm.ek).apply(null,arguments)},t._vscf_pkcs8_serializer_use_asn1_writer=function(){return(t._vscf_pkcs8_serializer_use_asn1_writer=t.asm.fk).apply(null,arguments)},t._vscf_random_padding_alg_id=function(){return(t._vscf_random_padding_alg_id=t.asm.gk).apply(null,arguments)},t._vscf_random_padding_produce_alg_info=function(){return(t._vscf_random_padding_produce_alg_info=t.asm.hk).apply(null,arguments)},t._vscf_random_padding_restore_alg_info=function(){return(t._vscf_random_padding_restore_alg_info=t.asm.ik).apply(null,arguments)},t._vscf_random_padding_configure=function(){return(t._vscf_random_padding_configure=t.asm.jk).apply(null,arguments)},t._vscf_random_padding_padded_data_len=function(){return(t._vscf_random_padding_padded_data_len=t.asm.kk).apply(null,arguments)},t._vscf_random_padding_len=function(){return(t._vscf_random_padding_len=t.asm.lk).apply(null,arguments)},t._vscf_random_padding_len_max=function(){return(t._vscf_random_padding_len_max=t.asm.mk).apply(null,arguments)},t._vscf_random_padding_start_data_processing=function(){return(t._vscf_random_padding_start_data_processing=t.asm.nk).apply(null,arguments)},t._vscf_random_padding_process_data=function(){return(t._vscf_random_padding_process_data=t.asm.ok).apply(null,arguments)},t._vscf_random_padding_finish_data_processing=function(){return(t._vscf_random_padding_finish_data_processing=t.asm.pk).apply(null,arguments)},t._vscf_random_padding_start_padded_data_processing=function(){return(t._vscf_random_padding_start_padded_data_processing=t.asm.qk).apply(null,arguments)},t._vscf_random_padding_process_padded_data=function(){return(t._vscf_random_padding_process_padded_data=t.asm.rk).apply(null,arguments)},t._vscf_random_padding_finish_padded_data_processing_out_len=function(){return(t._vscf_random_padding_finish_padded_data_processing_out_len=t.asm.sk).apply(null,arguments)},t._vscf_random_padding_finish_padded_data_processing=function(){return(t._vscf_random_padding_finish_padded_data_processing=t.asm.tk).apply(null,arguments)},t._vscf_random_padding_release_random=function(){return(t._vscf_random_padding_release_random=t.asm.uk).apply(null,arguments)},t._vscf_random_padding_new=function(){return(t._vscf_random_padding_new=t.asm.vk).apply(null,arguments)},t._vscf_random_padding_delete=function(){return(t._vscf_random_padding_delete=t.asm.wk).apply(null,arguments)},t._vscf_random_padding_shallow_copy=function(){return(t._vscf_random_padding_shallow_copy=t.asm.xk).apply(null,arguments)},t._vscf_random_padding_use_random=function(){return(t._vscf_random_padding_use_random=t.asm.yk).apply(null,arguments)},t._vscf_raw_private_key_data=function(){return(t._vscf_raw_private_key_data=t.asm.zk).apply(null,arguments)},t._vscf_raw_private_key_has_public_key=function(){return(t._vscf_raw_private_key_has_public_key=t.asm.Ak).apply(null,arguments)},t._vscf_raw_private_key_set_public_key=function(){return(t._vscf_raw_private_key_set_public_key=t.asm.Bk).apply(null,arguments)},t._vscf_raw_private_key_get_public_key=function(){return(t._vscf_raw_private_key_get_public_key=t.asm.Ck).apply(null,arguments)},t._vscf_raw_private_key_alg_id=function(){return(t._vscf_raw_private_key_alg_id=t.asm.Dk).apply(null,arguments)},t._vscf_raw_private_key_alg_info=function(){return(t._vscf_raw_private_key_alg_info=t.asm.Ek).apply(null,arguments)},t._vscf_raw_private_key_len=function(){return(t._vscf_raw_private_key_len=t.asm.Fk).apply(null,arguments)},t._vscf_raw_private_key_bitlen=function(){return(t._vscf_raw_private_key_bitlen=t.asm.Gk).apply(null,arguments)},t._vscf_raw_private_key_impl_tag=function(){return(t._vscf_raw_private_key_impl_tag=t.asm.Hk).apply(null,arguments)},t._vscf_raw_private_key_is_valid=function(){return(t._vscf_raw_private_key_is_valid=t.asm.Ik).apply(null,arguments)},t._vscf_raw_private_key_extract_public_key=function(){return(t._vscf_raw_private_key_extract_public_key=t.asm.Jk).apply(null,arguments)},t._vscf_raw_private_key_new=function(){return(t._vscf_raw_private_key_new=t.asm.Kk).apply(null,arguments)},t._vscf_raw_private_key_delete=function(){return(t._vscf_raw_private_key_delete=t.asm.Lk).apply(null,arguments)},t._vscf_raw_private_key_shallow_copy=function(){return(t._vscf_raw_private_key_shallow_copy=t.asm.Mk).apply(null,arguments)},t._vscf_raw_public_key_data=function(){return(t._vscf_raw_public_key_data=t.asm.Nk).apply(null,arguments)},t._vscf_raw_public_key_alg_id=function(){return(t._vscf_raw_public_key_alg_id=t.asm.Ok).apply(null,arguments)},t._vscf_raw_public_key_alg_info=function(){return(t._vscf_raw_public_key_alg_info=t.asm.Pk).apply(null,arguments)},t._vscf_raw_public_key_len=function(){return(t._vscf_raw_public_key_len=t.asm.Qk).apply(null,arguments)},t._vscf_raw_public_key_bitlen=function(){return(t._vscf_raw_public_key_bitlen=t.asm.Rk).apply(null,arguments)},t._vscf_raw_public_key_impl_tag=function(){return(t._vscf_raw_public_key_impl_tag=t.asm.Sk).apply(null,arguments)},t._vscf_raw_public_key_is_valid=function(){return(t._vscf_raw_public_key_is_valid=t.asm.Tk).apply(null,arguments)},t._vscf_raw_public_key_new=function(){return(t._vscf_raw_public_key_new=t.asm.Uk).apply(null,arguments)},t._vscf_raw_public_key_delete=function(){return(t._vscf_raw_public_key_delete=t.asm.Vk).apply(null,arguments)},t._vscf_raw_public_key_shallow_copy=function(){return(t._vscf_raw_public_key_shallow_copy=t.asm.Wk).apply(null,arguments)},t._vscf_round5_setup_defaults=function(){return(t._vscf_round5_setup_defaults=t.asm.Xk).apply(null,arguments)},t._vscf_round5_generate_key=function(){return(t._vscf_round5_generate_key=t.asm.Yk).apply(null,arguments)},t._vscf_round5_generate_ephemeral_key=function(){return(t._vscf_round5_generate_ephemeral_key=t.asm.Zk).apply(null,arguments)},t._vscf_round5_import_public_key=function(){return(t._vscf_round5_import_public_key=t.asm._k).apply(null,arguments)},t._vscf_round5_import_public_key_data=function(){return(t._vscf_round5_import_public_key_data=t.asm.$k).apply(null,arguments)},t._vscf_round5_export_public_key=function(){return(t._vscf_round5_export_public_key=t.asm.al).apply(null,arguments)},t._vscf_round5_exported_public_key_data_len=function(){return(t._vscf_round5_exported_public_key_data_len=t.asm.bl).apply(null,arguments)},t._vscf_round5_export_public_key_data=function(){return(t._vscf_round5_export_public_key_data=t.asm.cl).apply(null,arguments)},t._vscf_round5_import_private_key=function(){return(t._vscf_round5_import_private_key=t.asm.dl).apply(null,arguments)},t._vscf_round5_import_private_key_data=function(){return(t._vscf_round5_import_private_key_data=t.asm.el).apply(null,arguments)},t._vscf_round5_export_private_key=function(){return(t._vscf_round5_export_private_key=t.asm.fl).apply(null,arguments)},t._vscf_round5_exported_private_key_data_len=function(){return(t._vscf_round5_exported_private_key_data_len=t.asm.gl).apply(null,arguments)},t._vscf_round5_export_private_key_data=function(){return(t._vscf_round5_export_private_key_data=t.asm.hl).apply(null,arguments)},t._vscf_round5_kem_shared_key_len=function(){return(t._vscf_round5_kem_shared_key_len=t.asm.il).apply(null,arguments)},t._vscf_round5_kem_encapsulated_key_len=function(){return(t._vscf_round5_kem_encapsulated_key_len=t.asm.jl).apply(null,arguments)},t._vscf_round5_kem_encapsulate=function(){return(t._vscf_round5_kem_encapsulate=t.asm.kl).apply(null,arguments)},t._vscf_round5_kem_decapsulate=function(){return(t._vscf_round5_kem_decapsulate=t.asm.ll).apply(null,arguments)},t._vscf_round5_release_random=function(){return(t._vscf_round5_release_random=t.asm.ml).apply(null,arguments)},t._vscf_round5_new=function(){return(t._vscf_round5_new=t.asm.nl).apply(null,arguments)},t._vscf_round5_delete=function(){return(t._vscf_round5_delete=t.asm.ol).apply(null,arguments)},t._vscf_round5_shallow_copy=function(){return(t._vscf_round5_shallow_copy=t.asm.pl).apply(null,arguments)},t._vscf_round5_use_random=function(){return(t._vscf_round5_use_random=t.asm.ql).apply(null,arguments)},t._vscf_rsa_setup_defaults=function(){return(t._vscf_rsa_setup_defaults=t.asm.rl).apply(null,arguments)},t._vscf_rsa_generate_key=function(){return(t._vscf_rsa_generate_key=t.asm.sl).apply(null,arguments)},t._vscf_rsa_generate_ephemeral_key=function(){return(t._vscf_rsa_generate_ephemeral_key=t.asm.tl).apply(null,arguments)},t._vscf_rsa_import_public_key=function(){return(t._vscf_rsa_import_public_key=t.asm.ul).apply(null,arguments)},t._vscf_rsa_import_public_key_data=function(){return(t._vscf_rsa_import_public_key_data=t.asm.vl).apply(null,arguments)},t._vscf_rsa_export_public_key=function(){return(t._vscf_rsa_export_public_key=t.asm.wl).apply(null,arguments)},t._vscf_rsa_exported_public_key_data_len=function(){return(t._vscf_rsa_exported_public_key_data_len=t.asm.xl).apply(null,arguments)},t._vscf_rsa_export_public_key_data=function(){return(t._vscf_rsa_export_public_key_data=t.asm.yl).apply(null,arguments)},t._vscf_rsa_import_private_key=function(){return(t._vscf_rsa_import_private_key=t.asm.zl).apply(null,arguments)},t._vscf_rsa_import_private_key_data=function(){return(t._vscf_rsa_import_private_key_data=t.asm.Al).apply(null,arguments)},t._vscf_rsa_export_private_key=function(){return(t._vscf_rsa_export_private_key=t.asm.Bl).apply(null,arguments)},t._vscf_rsa_exported_private_key_data_len=function(){return(t._vscf_rsa_exported_private_key_data_len=t.asm.Cl).apply(null,arguments)},t._vscf_rsa_export_private_key_data=function(){return(t._vscf_rsa_export_private_key_data=t.asm.Dl).apply(null,arguments)},t._vscf_rsa_can_encrypt=function(){return(t._vscf_rsa_can_encrypt=t.asm.El).apply(null,arguments)},t._vscf_rsa_encrypted_len=function(){return(t._vscf_rsa_encrypted_len=t.asm.Fl).apply(null,arguments)},t._vscf_rsa_encrypt=function(){return(t._vscf_rsa_encrypt=t.asm.Gl).apply(null,arguments)},t._vscf_rsa_can_decrypt=function(){return(t._vscf_rsa_can_decrypt=t.asm.Hl).apply(null,arguments)},t._vscf_rsa_decrypted_len=function(){return(t._vscf_rsa_decrypted_len=t.asm.Il).apply(null,arguments)},t._vscf_rsa_decrypt=function(){return(t._vscf_rsa_decrypt=t.asm.Jl).apply(null,arguments)},t._vscf_rsa_can_sign=function(){return(t._vscf_rsa_can_sign=t.asm.Kl).apply(null,arguments)},t._vscf_rsa_signature_len=function(){return(t._vscf_rsa_signature_len=t.asm.Ll).apply(null,arguments)},t._vscf_rsa_sign_hash=function(){return(t._vscf_rsa_sign_hash=t.asm.Ml).apply(null,arguments)},t._vscf_rsa_can_verify=function(){return(t._vscf_rsa_can_verify=t.asm.Nl).apply(null,arguments)},t._vscf_rsa_verify_hash=function(){return(t._vscf_rsa_verify_hash=t.asm.Ol).apply(null,arguments)},t._vscf_rsa_release_random=function(){return(t._vscf_rsa_release_random=t.asm.Pl).apply(null,arguments)},t._vscf_rsa_new=function(){return(t._vscf_rsa_new=t.asm.Ql).apply(null,arguments)},t._vscf_rsa_delete=function(){return(t._vscf_rsa_delete=t.asm.Rl).apply(null,arguments)},t._vscf_rsa_shallow_copy=function(){return(t._vscf_rsa_shallow_copy=t.asm.Sl).apply(null,arguments)},t._vscf_rsa_use_random=function(){return(t._vscf_rsa_use_random=t.asm.Tl).apply(null,arguments)},t._vscf_rsa_private_key_is_valid=function(){return(t._vscf_rsa_private_key_is_valid=t.asm.Ul).apply(null,arguments)},t._vscf_rsa_private_key_len=function(){return(t._vscf_rsa_private_key_len=t.asm.Vl).apply(null,arguments)},t._vscf_rsa_private_key_alg_id=function(){return(t._vscf_rsa_private_key_alg_id=t.asm.Wl).apply(null,arguments)},t._vscf_rsa_private_key_alg_info=function(){return(t._vscf_rsa_private_key_alg_info=t.asm.Xl).apply(null,arguments)},t._vscf_rsa_private_key_bitlen=function(){return(t._vscf_rsa_private_key_bitlen=t.asm.Yl).apply(null,arguments)},t._vscf_rsa_private_key_impl_tag=function(){return(t._vscf_rsa_private_key_impl_tag=t.asm.Zl).apply(null,arguments)},t._vscf_rsa_private_key_extract_public_key=function(){return(t._vscf_rsa_private_key_extract_public_key=t.asm._l).apply(null,arguments)},t._vscf_rsa_private_key_new=function(){return(t._vscf_rsa_private_key_new=t.asm.$l).apply(null,arguments)},t._vscf_rsa_private_key_delete=function(){return(t._vscf_rsa_private_key_delete=t.asm.am).apply(null,arguments)},t._vscf_rsa_private_key_shallow_copy=function(){return(t._vscf_rsa_private_key_shallow_copy=t.asm.bm).apply(null,arguments)},t._vscf_rsa_public_key_key_exponent=function(){return(t._vscf_rsa_public_key_key_exponent=t.asm.cm).apply(null,arguments)},t._vscf_rsa_public_key_is_valid=function(){return(t._vscf_rsa_public_key_is_valid=t.asm.dm).apply(null,arguments)},t._vscf_rsa_public_key_len=function(){return(t._vscf_rsa_public_key_len=t.asm.em).apply(null,arguments)},t._vscf_rsa_public_key_alg_id=function(){return(t._vscf_rsa_public_key_alg_id=t.asm.fm).apply(null,arguments)},t._vscf_rsa_public_key_alg_info=function(){return(t._vscf_rsa_public_key_alg_info=t.asm.gm).apply(null,arguments)},t._vscf_rsa_public_key_bitlen=function(){return(t._vscf_rsa_public_key_bitlen=t.asm.hm).apply(null,arguments)},t._vscf_rsa_public_key_impl_tag=function(){return(t._vscf_rsa_public_key_impl_tag=t.asm.im).apply(null,arguments)},t._vscf_rsa_public_key_new=function(){return(t._vscf_rsa_public_key_new=t.asm.jm).apply(null,arguments)},t._vscf_rsa_public_key_delete=function(){return(t._vscf_rsa_public_key_delete=t.asm.km).apply(null,arguments)},t._vscf_rsa_public_key_shallow_copy=function(){return(t._vscf_rsa_public_key_shallow_copy=t.asm.lm).apply(null,arguments)},t._vscf_salted_kdf_alg_info_hash_alg_info=function(){return(t._vscf_salted_kdf_alg_info_hash_alg_info=t.asm.mm).apply(null,arguments)},t._vscf_salted_kdf_alg_info_salt=function(){return(t._vscf_salted_kdf_alg_info_salt=t.asm.nm).apply(null,arguments)},t._vscf_salted_kdf_alg_info_iteration_count=function(){return(t._vscf_salted_kdf_alg_info_iteration_count=t.asm.om).apply(null,arguments)},t._vscf_salted_kdf_alg_info_alg_id=function(){return(t._vscf_salted_kdf_alg_info_alg_id=t.asm.pm).apply(null,arguments)},t._vscf_salted_kdf_alg_info_new=function(){return(t._vscf_salted_kdf_alg_info_new=t.asm.qm).apply(null,arguments)},t._vscf_salted_kdf_alg_info_delete=function(){return(t._vscf_salted_kdf_alg_info_delete=t.asm.rm).apply(null,arguments)},t._vscf_salted_kdf_alg_info_shallow_copy=function(){return(t._vscf_salted_kdf_alg_info_shallow_copy=t.asm.sm).apply(null,arguments)},t._vscf_sec1_serializer_setup_defaults=function(){return(t._vscf_sec1_serializer_setup_defaults=t.asm.tm).apply(null,arguments)},t._vscf_sec1_serializer_serialize_public_key_inplace=function(){return(t._vscf_sec1_serializer_serialize_public_key_inplace=t.asm.um).apply(null,arguments)},t._vscf_sec1_serializer_serialized_public_key_len=function(){return(t._vscf_sec1_serializer_serialized_public_key_len=t.asm.vm).apply(null,arguments)},t._vscf_sec1_serializer_serialize_private_key_inplace=function(){return(t._vscf_sec1_serializer_serialize_private_key_inplace=t.asm.wm).apply(null,arguments)},t._vscf_sec1_serializer_serialized_private_key_len=function(){return(t._vscf_sec1_serializer_serialized_private_key_len=t.asm.xm).apply(null,arguments)},t._vscf_sec1_serializer_serialize_public_key=function(){return(t._vscf_sec1_serializer_serialize_public_key=t.asm.ym).apply(null,arguments)},t._vscf_sec1_serializer_serialize_private_key=function(){return(t._vscf_sec1_serializer_serialize_private_key=t.asm.zm).apply(null,arguments)},t._vscf_sec1_serializer_release_asn1_writer=function(){return(t._vscf_sec1_serializer_release_asn1_writer=t.asm.Am).apply(null,arguments)},t._vscf_sec1_serializer_new=function(){return(t._vscf_sec1_serializer_new=t.asm.Bm).apply(null,arguments)},t._vscf_sec1_serializer_delete=function(){return(t._vscf_sec1_serializer_delete=t.asm.Cm).apply(null,arguments)},t._vscf_sec1_serializer_shallow_copy=function(){return(t._vscf_sec1_serializer_shallow_copy=t.asm.Dm).apply(null,arguments)},t._vscf_sec1_serializer_use_asn1_writer=function(){return(t._vscf_sec1_serializer_use_asn1_writer=t.asm.Em).apply(null,arguments)},t._vscf_seed_entropy_source_reset_seed=function(){return(t._vscf_seed_entropy_source_reset_seed=t.asm.Fm).apply(null,arguments)},t._vscf_seed_entropy_source_is_strong=function(){return(t._vscf_seed_entropy_source_is_strong=t.asm.Gm).apply(null,arguments)},t._vscf_seed_entropy_source_gather=function(){return(t._vscf_seed_entropy_source_gather=t.asm.Hm).apply(null,arguments)},t._vscf_seed_entropy_source_new=function(){return(t._vscf_seed_entropy_source_new=t.asm.Im).apply(null,arguments)},t._vscf_seed_entropy_source_delete=function(){return(t._vscf_seed_entropy_source_delete=t.asm.Jm).apply(null,arguments)},t._vscf_seed_entropy_source_shallow_copy=function(){return(t._vscf_seed_entropy_source_shallow_copy=t.asm.Km).apply(null,arguments)},t._vscf_sha224_alg_id=function(){return(t._vscf_sha224_alg_id=t.asm.Lm).apply(null,arguments)},t._vscf_sha224_produce_alg_info=function(){return(t._vscf_sha224_produce_alg_info=t.asm.Mm).apply(null,arguments)},t._vscf_sha224_restore_alg_info=function(){return(t._vscf_sha224_restore_alg_info=t.asm.Nm).apply(null,arguments)},t._vscf_sha224_hash=function(){return(t._vscf_sha224_hash=t.asm.Om).apply(null,arguments)},t._vscf_sha224_finish=function(){return(t._vscf_sha224_finish=t.asm.Pm).apply(null,arguments)},t._vscf_sha224_start=function(){return(t._vscf_sha224_start=t.asm.Qm).apply(null,arguments)},t._vscf_sha224_update=function(){return(t._vscf_sha224_update=t.asm.Rm).apply(null,arguments)},t._vscf_sha224_new=function(){return(t._vscf_sha224_new=t.asm.Sm).apply(null,arguments)},t._vscf_sha224_delete=function(){return(t._vscf_sha224_delete=t.asm.Tm).apply(null,arguments)},t._vscf_sha224_shallow_copy=function(){return(t._vscf_sha224_shallow_copy=t.asm.Um).apply(null,arguments)},t._vscf_sha256_alg_id=function(){return(t._vscf_sha256_alg_id=t.asm.Vm).apply(null,arguments)},t._vscf_sha256_produce_alg_info=function(){return(t._vscf_sha256_produce_alg_info=t.asm.Wm).apply(null,arguments)},t._vscf_sha256_restore_alg_info=function(){return(t._vscf_sha256_restore_alg_info=t.asm.Xm).apply(null,arguments)},t._vscf_sha256_hash=function(){return(t._vscf_sha256_hash=t.asm.Ym).apply(null,arguments)},t._vscf_sha256_finish=function(){return(t._vscf_sha256_finish=t.asm.Zm).apply(null,arguments)},t._vscf_sha256_start=function(){return(t._vscf_sha256_start=t.asm._m).apply(null,arguments)},t._vscf_sha256_update=function(){return(t._vscf_sha256_update=t.asm.$m).apply(null,arguments)},t._vscf_sha256_new=function(){return(t._vscf_sha256_new=t.asm.an).apply(null,arguments)},t._vscf_sha256_delete=function(){return(t._vscf_sha256_delete=t.asm.bn).apply(null,arguments)},t._vscf_sha256_shallow_copy=function(){return(t._vscf_sha256_shallow_copy=t.asm.cn).apply(null,arguments)},t._vscf_sha384_alg_id=function(){return(t._vscf_sha384_alg_id=t.asm.dn).apply(null,arguments)},t._vscf_sha384_produce_alg_info=function(){return(t._vscf_sha384_produce_alg_info=t.asm.en).apply(null,arguments)},t._vscf_sha384_restore_alg_info=function(){return(t._vscf_sha384_restore_alg_info=t.asm.fn).apply(null,arguments)},t._vscf_sha384_hash=function(){return(t._vscf_sha384_hash=t.asm.gn).apply(null,arguments)},t._vscf_sha384_finish=function(){return(t._vscf_sha384_finish=t.asm.hn).apply(null,arguments)},t._vscf_sha384_start=function(){return(t._vscf_sha384_start=t.asm.jn).apply(null,arguments)},t._vscf_sha384_update=function(){return(t._vscf_sha384_update=t.asm.kn).apply(null,arguments)},t._vscf_sha384_new=function(){return(t._vscf_sha384_new=t.asm.ln).apply(null,arguments)},t._vscf_sha384_delete=function(){return(t._vscf_sha384_delete=t.asm.mn).apply(null,arguments)},t._vscf_sha384_shallow_copy=function(){return(t._vscf_sha384_shallow_copy=t.asm.nn).apply(null,arguments)},t._vscf_sha512_alg_id=function(){return(t._vscf_sha512_alg_id=t.asm.on).apply(null,arguments)},t._vscf_sha512_produce_alg_info=function(){return(t._vscf_sha512_produce_alg_info=t.asm.pn).apply(null,arguments)},t._vscf_sha512_restore_alg_info=function(){return(t._vscf_sha512_restore_alg_info=t.asm.qn).apply(null,arguments)},t._vscf_sha512_hash=function(){return(t._vscf_sha512_hash=t.asm.rn).apply(null,arguments)},t._vscf_sha512_finish=function(){return(t._vscf_sha512_finish=t.asm.sn).apply(null,arguments)},t._vscf_sha512_start=function(){return(t._vscf_sha512_start=t.asm.tn).apply(null,arguments)},t._vscf_sha512_update=function(){return(t._vscf_sha512_update=t.asm.un).apply(null,arguments)},t._vscf_sha512_new=function(){return(t._vscf_sha512_new=t.asm.vn).apply(null,arguments)},t._vscf_sha512_delete=function(){return(t._vscf_sha512_delete=t.asm.wn).apply(null,arguments)},t._vscf_sha512_shallow_copy=function(){return(t._vscf_sha512_shallow_copy=t.asm.xn).apply(null,arguments)},t._vscf_simple_alg_info_alg_id=function(){return(t._vscf_simple_alg_info_alg_id=t.asm.yn).apply(null,arguments)},t._vscf_simple_alg_info_new=function(){return(t._vscf_simple_alg_info_new=t.asm.zn).apply(null,arguments)},t._vscf_simple_alg_info_delete=function(){return(t._vscf_simple_alg_info_delete=t.asm.An).apply(null,arguments)},t._vscf_simple_alg_info_shallow_copy=function(){return(t._vscf_simple_alg_info_shallow_copy=t.asm.Bn).apply(null,arguments)},t._vscf_simple_alg_info_new_with_alg_id=function(){return(t._vscf_simple_alg_info_new_with_alg_id=t.asm.Cn).apply(null,arguments)},t._vscf_alg_factory_create_hash_from_info=function(){return(t._vscf_alg_factory_create_hash_from_info=t.asm.Dn).apply(null,arguments)},t._vscf_alg_factory_create_mac_from_info=function(){return(t._vscf_alg_factory_create_mac_from_info=t.asm.En).apply(null,arguments)},t._vscf_alg_factory_create_kdf_from_info=function(){return(t._vscf_alg_factory_create_kdf_from_info=t.asm.Fn).apply(null,arguments)},t._vscf_alg_factory_create_salted_kdf_from_info=function(){return(t._vscf_alg_factory_create_salted_kdf_from_info=t.asm.Gn).apply(null,arguments)},t._vscf_alg_factory_create_cipher_from_info=function(){return(t._vscf_alg_factory_create_cipher_from_info=t.asm.Hn).apply(null,arguments)},t._vscf_alg_factory_create_padding_from_info=function(){return(t._vscf_alg_factory_create_padding_from_info=t.asm.In).apply(null,arguments)},t._vscf_base64_encoded_len=function(){return(t._vscf_base64_encoded_len=t.asm.Jn).apply(null,arguments)},t._vscf_base64_encode=function(){return(t._vscf_base64_encode=t.asm.Kn).apply(null,arguments)},t._vscf_base64_decoded_len=function(){return(t._vscf_base64_decoded_len=t.asm.Ln).apply(null,arguments)},t._vscf_base64_decode=function(){return(t._vscf_base64_decode=t.asm.Mn).apply(null,arguments)},t._vscf_brainkey_client_release_random=function(){return(t._vscf_brainkey_client_release_random=t.asm.Nn).apply(null,arguments)},t._vscf_brainkey_client_release_operation_random=function(){return(t._vscf_brainkey_client_release_operation_random=t.asm.On).apply(null,arguments)},t._vscf_brainkey_client_new=function(){return(t._vscf_brainkey_client_new=t.asm.Pn).apply(null,arguments)},t._vscf_brainkey_client_delete=function(){return(t._vscf_brainkey_client_delete=t.asm.Qn).apply(null,arguments)},t._vscf_brainkey_client_shallow_copy=function(){return(t._vscf_brainkey_client_shallow_copy=t.asm.Rn).apply(null,arguments)},t._vscf_brainkey_client_use_random=function(){return(t._vscf_brainkey_client_use_random=t.asm.Sn).apply(null,arguments)},t._vscf_brainkey_client_use_operation_random=function(){return(t._vscf_brainkey_client_use_operation_random=t.asm.Tn).apply(null,arguments)},t._vscf_brainkey_client_setup_defaults=function(){return(t._vscf_brainkey_client_setup_defaults=t.asm.Un).apply(null,arguments)},t._vscf_brainkey_client_blind=function(){return(t._vscf_brainkey_client_blind=t.asm.Vn).apply(null,arguments)},t._vscf_brainkey_client_deblind=function(){return(t._vscf_brainkey_client_deblind=t.asm.Wn).apply(null,arguments)},t._vscf_brainkey_server_release_random=function(){return(t._vscf_brainkey_server_release_random=t.asm.Xn).apply(null,arguments)},t._vscf_brainkey_server_release_operation_random=function(){return(t._vscf_brainkey_server_release_operation_random=t.asm.Yn).apply(null,arguments)},t._vscf_brainkey_server_new=function(){return(t._vscf_brainkey_server_new=t.asm.Zn).apply(null,arguments)},t._vscf_brainkey_server_delete=function(){return(t._vscf_brainkey_server_delete=t.asm._n).apply(null,arguments)},t._vscf_brainkey_server_shallow_copy=function(){return(t._vscf_brainkey_server_shallow_copy=t.asm.$n).apply(null,arguments)},t._vscf_brainkey_server_use_random=function(){return(t._vscf_brainkey_server_use_random=t.asm.ao).apply(null,arguments)},t._vscf_brainkey_server_use_operation_random=function(){return(t._vscf_brainkey_server_use_operation_random=t.asm.bo).apply(null,arguments)},t._vscf_brainkey_server_setup_defaults=function(){return(t._vscf_brainkey_server_setup_defaults=t.asm.co).apply(null,arguments)},t._vscf_brainkey_server_generate_identity_secret=function(){return(t._vscf_brainkey_server_generate_identity_secret=t.asm.eo).apply(null,arguments)},t._vscf_brainkey_server_harden=function(){return(t._vscf_brainkey_server_harden=t.asm.fo).apply(null,arguments)};t._vscf_ecies_release_random=function(){return(t._vscf_ecies_release_random=t.asm.go).apply(null,arguments)},t._vscf_ecies_release_cipher=function(){return(t._vscf_ecies_release_cipher=t.asm.ho).apply(null,arguments)},t._vscf_ecies_release_mac=function(){return(t._vscf_ecies_release_mac=t.asm.io).apply(null,arguments)},t._vscf_ecies_release_kdf=function(){return(t._vscf_ecies_release_kdf=t.asm.jo).apply(null,arguments)},t._vscf_ecies_release_ephemeral_key=function(){return(t._vscf_ecies_release_ephemeral_key=t.asm.ko).apply(null,arguments)},t._vscf_ecies_new=function(){return(t._vscf_ecies_new=t.asm.lo).apply(null,arguments)},t._vscf_ecies_delete=function(){return(t._vscf_ecies_delete=t.asm.mo).apply(null,arguments)},t._vscf_ecies_shallow_copy=function(){return(t._vscf_ecies_shallow_copy=t.asm.no).apply(null,arguments)},t._vscf_ecies_use_random=function(){return(t._vscf_ecies_use_random=t.asm.oo).apply(null,arguments)},t._vscf_ecies_use_cipher=function(){return(t._vscf_ecies_use_cipher=t.asm.po).apply(null,arguments)},t._vscf_ecies_use_mac=function(){return(t._vscf_ecies_use_mac=t.asm.qo).apply(null,arguments)},t._vscf_ecies_use_kdf=function(){return(t._vscf_ecies_use_kdf=t.asm.ro).apply(null,arguments)},t._vscf_ecies_use_ephemeral_key=function(){return(t._vscf_ecies_use_ephemeral_key=t.asm.so).apply(null,arguments)},t._vscf_ecies_set_key_alg=function(){return(t._vscf_ecies_set_key_alg=t.asm.to).apply(null,arguments)},t._vscf_ecies_release_key_alg=function(){return(t._vscf_ecies_release_key_alg=t.asm.uo).apply(null,arguments)},t._vscf_ecies_setup_defaults=function(){return(t._vscf_ecies_setup_defaults=t.asm.vo).apply(null,arguments)},t._vscf_ecies_setup_defaults_no_random=function(){return(t._vscf_ecies_setup_defaults_no_random=t.asm.wo).apply(null,arguments)},t._vscf_ecies_encrypted_len=function(){return(t._vscf_ecies_encrypted_len=t.asm.xo).apply(null,arguments)},t._vscf_ecies_encrypt=function(){return(t._vscf_ecies_encrypt=t.asm.yo).apply(null,arguments)},t._vscf_ecies_decrypted_len=function(){return(t._vscf_ecies_decrypted_len=t.asm.zo).apply(null,arguments)},t._vscf_ecies_decrypt=function(){return(t._vscf_ecies_decrypt=t.asm.Ao).apply(null,arguments)},t._vscf_error_ctx_size=function(){return(t._vscf_error_ctx_size=t.asm.Bo).apply(null,arguments)},t._vscf_error_reset=function(){return(t._vscf_error_reset=t.asm.Co).apply(null,arguments)},t._vscf_error_status=function(){return(t._vscf_error_status=t.asm.Do).apply(null,arguments)},t._vscf_footer_info_new=function(){return(t._vscf_footer_info_new=t.asm.Eo).apply(null,arguments)},t._vscf_footer_info_delete=function(){return(t._vscf_footer_info_delete=t.asm.Fo).apply(null,arguments)},t._vscf_footer_info_shallow_copy=function(){return(t._vscf_footer_info_shallow_copy=t.asm.Go).apply(null,arguments)},t._vscf_footer_info_has_signed_data_info=function(){return(t._vscf_footer_info_has_signed_data_info=t.asm.Ho).apply(null,arguments)},t._vscf_footer_info_signed_data_info=function(){return(t._vscf_footer_info_signed_data_info=t.asm.Io).apply(null,arguments)},t._vscf_footer_info_set_data_size=function(){return(t._vscf_footer_info_set_data_size=t.asm.Jo).apply(null,arguments)},t._vscf_footer_info_data_size=function(){return(t._vscf_footer_info_data_size=t.asm.Ko).apply(null,arguments)},t._vscf_group_session_release_rng=function(){return(t._vscf_group_session_release_rng=t.asm.Lo).apply(null,arguments)},t._vscf_group_session_new=function(){return(t._vscf_group_session_new=t.asm.Mo).apply(null,arguments)},t._vscf_group_session_delete=function(){return(t._vscf_group_session_delete=t.asm.No).apply(null,arguments)},t._vscf_group_session_shallow_copy=function(){return(t._vscf_group_session_shallow_copy=t.asm.Oo).apply(null,arguments)},t._vscf_group_session_use_rng=function(){return(t._vscf_group_session_use_rng=t.asm.Po).apply(null,arguments)},t._vscf_group_session_get_current_epoch=function(){return(t._vscf_group_session_get_current_epoch=t.asm.Qo).apply(null,arguments)},t._vscf_group_session_setup_defaults=function(){return(t._vscf_group_session_setup_defaults=t.asm.Ro).apply(null,arguments)},t._vscf_group_session_get_session_id=function(){return(t._vscf_group_session_get_session_id=t.asm.So).apply(null,arguments)},t._vscf_group_session_add_epoch=function(){return(t._vscf_group_session_add_epoch=t.asm.To).apply(null,arguments)},t._vscf_group_session_encrypt=function(){return(t._vscf_group_session_encrypt=t.asm.Uo).apply(null,arguments)},t._vscf_group_session_decrypt_len=function(){return(t._vscf_group_session_decrypt_len=t.asm.Vo).apply(null,arguments)},t._vscf_group_session_decrypt=function(){return(t._vscf_group_session_decrypt=t.asm.Wo).apply(null,arguments)},t._vscf_group_session_create_group_ticket=function(){return(t._vscf_group_session_create_group_ticket=t.asm.Xo).apply(null,arguments)},t._vscf_group_session_message_new=function(){return(t._vscf_group_session_message_new=t.asm.Yo).apply(null,arguments)},t._vscf_group_session_message_delete=function(){return(t._vscf_group_session_message_delete=t.asm.Zo).apply(null,arguments)},t._vscf_group_session_message_shallow_copy=function(){return(t._vscf_group_session_message_shallow_copy=t.asm._o).apply(null,arguments)},t._vscf_group_session_message_get_type=function(){return(t._vscf_group_session_message_get_type=t.asm.$o).apply(null,arguments)},t._vscf_group_session_message_get_session_id=function(){return(t._vscf_group_session_message_get_session_id=t.asm.ap).apply(null,arguments)},t._vscf_group_session_message_get_epoch=function(){return(t._vscf_group_session_message_get_epoch=t.asm.bp).apply(null,arguments)},t._vscf_group_session_message_serialize_len=function(){return(t._vscf_group_session_message_serialize_len=t.asm.cp).apply(null,arguments)},t._vscf_group_session_message_serialize=function(){return(t._vscf_group_session_message_serialize=t.asm.dp).apply(null,arguments)},t._vscf_group_session_message_deserialize=function(){return(t._vscf_group_session_message_deserialize=t.asm.ep).apply(null,arguments)},t._vscf_group_session_ticket_release_rng=function(){return(t._vscf_group_session_ticket_release_rng=t.asm.fp).apply(null,arguments)},t._vscf_group_session_ticket_new=function(){return(t._vscf_group_session_ticket_new=t.asm.gp).apply(null,arguments)},t._vscf_group_session_ticket_delete=function(){return(t._vscf_group_session_ticket_delete=t.asm.hp).apply(null,arguments)},t._vscf_group_session_ticket_shallow_copy=function(){return(t._vscf_group_session_ticket_shallow_copy=t.asm.ip).apply(null,arguments)},t._vscf_group_session_ticket_use_rng=function(){return(t._vscf_group_session_ticket_use_rng=t.asm.jp).apply(null,arguments)},t._vscf_group_session_ticket_setup_defaults=function(){return(t._vscf_group_session_ticket_setup_defaults=t.asm.kp).apply(null,arguments)},t._vscf_group_session_ticket_setup_ticket_as_new=function(){return(t._vscf_group_session_ticket_setup_ticket_as_new=t.asm.lp).apply(null,arguments)},t._vscf_group_session_ticket_get_ticket_message=function(){return(t._vscf_group_session_ticket_get_ticket_message=t.asm.mp).apply(null,arguments)},t._vscf_key_alg_factory_create_from_alg_id=function(){return(t._vscf_key_alg_factory_create_from_alg_id=t.asm.np).apply(null,arguments)},t._vscf_key_alg_factory_create_from_key=function(){return(t._vscf_key_alg_factory_create_from_key=t.asm.op).apply(null,arguments)},t._vscf_key_alg_factory_create_from_raw_public_key=function(){return(t._vscf_key_alg_factory_create_from_raw_public_key=t.asm.pp).apply(null,arguments)},t._vscf_key_alg_factory_create_from_raw_private_key=function(){return(t._vscf_key_alg_factory_create_from_raw_private_key=t.asm.qp).apply(null,arguments)},t._vscf_key_info_new=function(){return(t._vscf_key_info_new=t.asm.rp).apply(null,arguments)},t._vscf_key_info_new_with_alg_info=function(){return(t._vscf_key_info_new_with_alg_info=t.asm.sp).apply(null,arguments)},t._vscf_key_info_delete=function(){return(t._vscf_key_info_delete=t.asm.tp).apply(null,arguments)},t._vscf_key_info_shallow_copy=function(){return(t._vscf_key_info_shallow_copy=t.asm.up).apply(null,arguments)},t._vscf_key_info_is_compound=function(){return(t._vscf_key_info_is_compound=t.asm.vp).apply(null,arguments)},t._vscf_key_info_is_hybrid=function(){return(t._vscf_key_info_is_hybrid=t.asm.wp).apply(null,arguments)},t._vscf_key_info_is_compound_hybrid=function(){return(t._vscf_key_info_is_compound_hybrid=t.asm.xp).apply(null,arguments)},t._vscf_key_info_is_compound_hybrid_cipher=function(){return(t._vscf_key_info_is_compound_hybrid_cipher=t.asm.yp).apply(null,arguments)},t._vscf_key_info_is_compound_hybrid_signer=function(){return(t._vscf_key_info_is_compound_hybrid_signer=t.asm.zp).apply(null,arguments)},t._vscf_key_info_is_hybrid_post_quantum=function(){return(t._vscf_key_info_is_hybrid_post_quantum=t.asm.Ap).apply(null,arguments)},t._vscf_key_info_is_hybrid_post_quantum_cipher=function(){return(t._vscf_key_info_is_hybrid_post_quantum_cipher=t.asm.Bp).apply(null,arguments)},t._vscf_key_info_is_hybrid_post_quantum_signer=function(){return(t._vscf_key_info_is_hybrid_post_quantum_signer=t.asm.Cp).apply(null,arguments)},t._vscf_key_info_alg_id=function(){return(t._vscf_key_info_alg_id=t.asm.Dp).apply(null,arguments)},t._vscf_key_info_compound_cipher_alg_id=function(){return(t._vscf_key_info_compound_cipher_alg_id=t.asm.Ep).apply(null,arguments)},t._vscf_key_info_compound_signer_alg_id=function(){return(t._vscf_key_info_compound_signer_alg_id=t.asm.Fp).apply(null,arguments)},t._vscf_key_info_hybrid_first_key_alg_id=function(){return(t._vscf_key_info_hybrid_first_key_alg_id=t.asm.Gp).apply(null,arguments)},t._vscf_key_info_hybrid_second_key_alg_id=function(){return(t._vscf_key_info_hybrid_second_key_alg_id=t.asm.Hp).apply(null,arguments)},t._vscf_key_info_compound_hybrid_cipher_first_key_alg_id=function(){return(t._vscf_key_info_compound_hybrid_cipher_first_key_alg_id=t.asm.Ip).apply(null,arguments)},t._vscf_key_info_compound_hybrid_cipher_second_key_alg_id=function(){return(t._vscf_key_info_compound_hybrid_cipher_second_key_alg_id=t.asm.Jp).apply(null,arguments)},t._vscf_key_info_compound_hybrid_signer_first_key_alg_id=function(){return(t._vscf_key_info_compound_hybrid_signer_first_key_alg_id=t.asm.Kp).apply(null,arguments)},t._vscf_key_info_compound_hybrid_signer_second_key_alg_id=function(){return(t._vscf_key_info_compound_hybrid_signer_second_key_alg_id=t.asm.Lp).apply(null,arguments)},t._vscf_key_provider_release_random=function(){return(t._vscf_key_provider_release_random=t.asm.Mp).apply(null,arguments)},t._vscf_key_provider_new=function(){return(t._vscf_key_provider_new=t.asm.Np).apply(null,arguments)},t._vscf_key_provider_delete=function(){return(t._vscf_key_provider_delete=t.asm.Op).apply(null,arguments)},t._vscf_key_provider_shallow_copy=function(){return(t._vscf_key_provider_shallow_copy=t.asm.Pp).apply(null,arguments)},t._vscf_key_provider_use_random=function(){return(t._vscf_key_provider_use_random=t.asm.Qp).apply(null,arguments)},t._vscf_key_provider_setup_defaults=function(){return(t._vscf_key_provider_setup_defaults=t.asm.Rp).apply(null,arguments)},t._vscf_key_provider_set_rsa_params=function(){return(t._vscf_key_provider_set_rsa_params=t.asm.Sp).apply(null,arguments)},t._vscf_key_provider_generate_private_key=function(){return(t._vscf_key_provider_generate_private_key=t.asm.Tp).apply(null,arguments)},t._vscf_key_provider_generate_post_quantum_private_key=function(){return(t._vscf_key_provider_generate_post_quantum_private_key=t.asm.Up).apply(null,arguments)},t._vscf_key_provider_generate_compound_hybrid_private_key=function(){return(t._vscf_key_provider_generate_compound_hybrid_private_key=t.asm.Vp).apply(null,arguments)},t._vscf_key_provider_generate_hybrid_private_key=function(){return(t._vscf_key_provider_generate_hybrid_private_key=t.asm.Wp).apply(null,arguments)},t._vscf_key_provider_generate_compound_private_key=function(){return(t._vscf_key_provider_generate_compound_private_key=t.asm.Xp).apply(null,arguments)},t._vscf_key_provider_import_private_key=function(){return(t._vscf_key_provider_import_private_key=t.asm.Yp).apply(null,arguments)},t._vscf_key_provider_import_public_key=function(){return(t._vscf_key_provider_import_public_key=t.asm.Zp).apply(null,arguments)},t._vscf_key_provider_exported_public_key_len=function(){return(t._vscf_key_provider_exported_public_key_len=t.asm._p).apply(null,arguments)},t._vscf_key_provider_export_public_key=function(){return(t._vscf_key_provider_export_public_key=t.asm.$p).apply(null,arguments)},t._vscf_key_provider_exported_private_key_len=function(){return(t._vscf_key_provider_exported_private_key_len=t.asm.aq).apply(null,arguments)},t._vscf_key_provider_export_private_key=function(){return(t._vscf_key_provider_export_private_key=t.asm.bq).apply(null,arguments)},t._vscf_key_recipient_info_new=function(){return(t._vscf_key_recipient_info_new=t.asm.cq).apply(null,arguments)},t._vscf_key_recipient_info_new_with_data=function(){return(t._vscf_key_recipient_info_new_with_data=t.asm.dq).apply(null,arguments)},t._vscf_key_recipient_info_delete=function(){return(t._vscf_key_recipient_info_delete=t.asm.eq).apply(null,arguments)},t._vscf_key_recipient_info_shallow_copy=function(){return(t._vscf_key_recipient_info_shallow_copy=t.asm.fq).apply(null,arguments)},t._vscf_key_recipient_info_recipient_id=function(){return(t._vscf_key_recipient_info_recipient_id=t.asm.gq).apply(null,arguments)},t._vscf_key_recipient_info_key_encryption_algorithm=function(){return(t._vscf_key_recipient_info_key_encryption_algorithm=t.asm.hq).apply(null,arguments)},t._vscf_key_recipient_info_encrypted_key=function(){return(t._vscf_key_recipient_info_encrypted_key=t.asm.iq).apply(null,arguments)},t._vscf_key_recipient_info_list_new=function(){return(t._vscf_key_recipient_info_list_new=t.asm.jq).apply(null,arguments)},t._vscf_key_recipient_info_list_delete=function(){return(t._vscf_key_recipient_info_list_delete=t.asm.kq).apply(null,arguments)},t._vscf_key_recipient_info_list_shallow_copy=function(){return(t._vscf_key_recipient_info_list_shallow_copy=t.asm.lq).apply(null,arguments)},t._vscf_key_recipient_info_list_has_item=function(){return(t._vscf_key_recipient_info_list_has_item=t.asm.mq).apply(null,arguments)},t._vscf_key_recipient_info_list_item=function(){return(t._vscf_key_recipient_info_list_item=t.asm.nq).apply(null,arguments)},t._vscf_key_recipient_info_list_has_next=function(){return(t._vscf_key_recipient_info_list_has_next=t.asm.oq).apply(null,arguments)},t._vscf_key_recipient_info_list_next=function(){return(t._vscf_key_recipient_info_list_next=t.asm.pq).apply(null,arguments)},t._vscf_key_recipient_info_list_has_prev=function(){return(t._vscf_key_recipient_info_list_has_prev=t.asm.qq).apply(null,arguments)},t._vscf_key_recipient_info_list_prev=function(){return(t._vscf_key_recipient_info_list_prev=t.asm.rq).apply(null,arguments)},t._vscf_key_recipient_info_list_clear=function(){return(t._vscf_key_recipient_info_list_clear=t.asm.sq).apply(null,arguments)},t._vscf_message_info_new=function(){return(t._vscf_message_info_new=t.asm.tq).apply(null,arguments)},t._vscf_message_info_delete=function(){return(t._vscf_message_info_delete=t.asm.uq).apply(null,arguments)},t._vscf_message_info_shallow_copy=function(){return(t._vscf_message_info_shallow_copy=t.asm.vq).apply(null,arguments)},t._vscf_message_info_data_encryption_alg_info=function(){return(t._vscf_message_info_data_encryption_alg_info=t.asm.wq).apply(null,arguments)},t._vscf_message_info_key_recipient_info_list=function(){return(t._vscf_message_info_key_recipient_info_list=t.asm.xq).apply(null,arguments)},t._vscf_message_info_password_recipient_info_list=function(){return(t._vscf_message_info_password_recipient_info_list=t.asm.yq).apply(null,arguments)},t._vscf_message_info_has_custom_params=function(){return(t._vscf_message_info_has_custom_params=t.asm.zq).apply(null,arguments)},t._vscf_message_info_custom_params=function(){return(t._vscf_message_info_custom_params=t.asm.Aq).apply(null,arguments)},t._vscf_message_info_has_cipher_kdf_alg_info=function(){return(t._vscf_message_info_has_cipher_kdf_alg_info=t.asm.Bq).apply(null,arguments)},t._vscf_message_info_cipher_kdf_alg_info=function(){return(t._vscf_message_info_cipher_kdf_alg_info=t.asm.Cq).apply(null,arguments)},t._vscf_message_info_has_cipher_padding_alg_info=function(){return(t._vscf_message_info_has_cipher_padding_alg_info=t.asm.Dq).apply(null,arguments)},t._vscf_message_info_cipher_padding_alg_info=function(){return(t._vscf_message_info_cipher_padding_alg_info=t.asm.Eq).apply(null,arguments)},t._vscf_message_info_has_footer_info=function(){return(t._vscf_message_info_has_footer_info=t.asm.Fq).apply(null,arguments)},t._vscf_message_info_footer_info=function(){return(t._vscf_message_info_footer_info=t.asm.Gq).apply(null,arguments)},t._vscf_message_info_clear=function(){return(t._vscf_message_info_clear=t.asm.Hq).apply(null,arguments)},t._vscf_message_info_custom_params_new=function(){return(t._vscf_message_info_custom_params_new=t.asm.Iq).apply(null,arguments)},t._vscf_message_info_custom_params_delete=function(){return(t._vscf_message_info_custom_params_delete=t.asm.Jq).apply(null,arguments)},t._vscf_message_info_custom_params_shallow_copy=function(){return(t._vscf_message_info_custom_params_shallow_copy=t.asm.Kq).apply(null,arguments)},t._vscf_message_info_custom_params_add_int=function(){return(t._vscf_message_info_custom_params_add_int=t.asm.Lq).apply(null,arguments)},t._vscf_message_info_custom_params_add_string=function(){return(t._vscf_message_info_custom_params_add_string=t.asm.Mq).apply(null,arguments)},t._vscf_message_info_custom_params_add_data=function(){return(t._vscf_message_info_custom_params_add_data=t.asm.Nq).apply(null,arguments)},t._vscf_message_info_custom_params_clear=function(){return(t._vscf_message_info_custom_params_clear=t.asm.Oq).apply(null,arguments)},t._vscf_message_info_custom_params_find_int=function(){return(t._vscf_message_info_custom_params_find_int=t.asm.Pq).apply(null,arguments)},t._vscf_message_info_custom_params_find_string=function(){return(t._vscf_message_info_custom_params_find_string=t.asm.Qq).apply(null,arguments)},t._vscf_message_info_custom_params_find_data=function(){return(t._vscf_message_info_custom_params_find_data=t.asm.Rq).apply(null,arguments)},t._vscf_message_info_custom_params_has_params=function(){return(t._vscf_message_info_custom_params_has_params=t.asm.Sq).apply(null,arguments)},t._vscf_message_info_editor_release_random=function(){return(t._vscf_message_info_editor_release_random=t.asm.Tq).apply(null,arguments)},t._vscf_message_info_editor_new=function(){return(t._vscf_message_info_editor_new=t.asm.Uq).apply(null,arguments)},t._vscf_message_info_editor_delete=function(){return(t._vscf_message_info_editor_delete=t.asm.Vq).apply(null,arguments)},t._vscf_message_info_editor_shallow_copy=function(){return(t._vscf_message_info_editor_shallow_copy=t.asm.Wq).apply(null,arguments)},t._vscf_message_info_editor_use_random=function(){return(t._vscf_message_info_editor_use_random=t.asm.Xq).apply(null,arguments)},t._vscf_message_info_editor_setup_defaults=function(){return(t._vscf_message_info_editor_setup_defaults=t.asm.Yq).apply(null,arguments)},t._vscf_message_info_editor_unpack=function(){return(t._vscf_message_info_editor_unpack=t.asm.Zq).apply(null,arguments)},t._vscf_message_info_editor_unlock=function(){return(t._vscf_message_info_editor_unlock=t.asm._q).apply(null,arguments)},t._vscf_message_info_editor_add_key_recipient=function(){return(t._vscf_message_info_editor_add_key_recipient=t.asm.$q).apply(null,arguments)},t._vscf_message_info_editor_remove_key_recipient=function(){return(t._vscf_message_info_editor_remove_key_recipient=t.asm.ar).apply(null,arguments)},t._vscf_message_info_editor_remove_all=function(){return(t._vscf_message_info_editor_remove_all=t.asm.br).apply(null,arguments)},t._vscf_message_info_editor_packed_len=function(){return(t._vscf_message_info_editor_packed_len=t.asm.cr).apply(null,arguments)},t._vscf_message_info_editor_pack=function(){return(t._vscf_message_info_editor_pack=t.asm.dr).apply(null,arguments)},t._vscf_message_info_footer_new=function(){return(t._vscf_message_info_footer_new=t.asm.er).apply(null,arguments)},t._vscf_message_info_footer_delete=function(){return(t._vscf_message_info_footer_delete=t.asm.fr).apply(null,arguments)},t._vscf_message_info_footer_shallow_copy=function(){return(t._vscf_message_info_footer_shallow_copy=t.asm.gr).apply(null,arguments)},t._vscf_message_info_footer_has_signer_infos=function(){return(t._vscf_message_info_footer_has_signer_infos=t.asm.hr).apply(null,arguments)},t._vscf_message_info_footer_signer_infos=function(){return(t._vscf_message_info_footer_signer_infos=t.asm.ir).apply(null,arguments)},t._vscf_message_info_footer_signer_hash_alg_info=function(){return(t._vscf_message_info_footer_signer_hash_alg_info=t.asm.jr).apply(null,arguments)},t._vscf_message_info_footer_signer_digest=function(){return(t._vscf_message_info_footer_signer_digest=t.asm.kr).apply(null,arguments)},t._vscf_oid_from_alg_id=function(){return(t._vscf_oid_from_alg_id=t.asm.lr).apply(null,arguments)},t._vscf_oid_to_alg_id=function(){return(t._vscf_oid_to_alg_id=t.asm.mr).apply(null,arguments)},t._vscf_oid_equal=function(){return(t._vscf_oid_equal=t.asm.nr).apply(null,arguments)},t._vscf_oid_from_id=function(){return(t._vscf_oid_from_id=t.asm.or).apply(null,arguments)},t._vscf_oid_to_id=function(){return(t._vscf_oid_to_id=t.asm.pr).apply(null,arguments)},t._vscf_oid_id_to_alg_id=function(){return(t._vscf_oid_id_to_alg_id=t.asm.qr).apply(null,arguments)},t._vscf_padding_params_new=function(){return(t._vscf_padding_params_new=t.asm.rr).apply(null,arguments)},t._vscf_padding_params_new_with_constraints=function(){return(t._vscf_padding_params_new_with_constraints=t.asm.sr).apply(null,arguments)},t._vscf_padding_params_delete=function(){return(t._vscf_padding_params_delete=t.asm.tr).apply(null,arguments)},t._vscf_padding_params_shallow_copy=function(){return(t._vscf_padding_params_shallow_copy=t.asm.ur).apply(null,arguments)},t._vscf_padding_params_frame=function(){return(t._vscf_padding_params_frame=t.asm.vr).apply(null,arguments)},t._vscf_padding_params_frame_max=function(){return(t._vscf_padding_params_frame_max=t.asm.wr).apply(null,arguments)},t._vscf_password_recipient_info_new=function(){return(t._vscf_password_recipient_info_new=t.asm.xr).apply(null,arguments)},t._vscf_password_recipient_info_new_with_members=function(){return(t._vscf_password_recipient_info_new_with_members=t.asm.yr).apply(null,arguments)},t._vscf_password_recipient_info_delete=function(){return(t._vscf_password_recipient_info_delete=t.asm.zr).apply(null,arguments)},t._vscf_password_recipient_info_shallow_copy=function(){return(t._vscf_password_recipient_info_shallow_copy=t.asm.Ar).apply(null,arguments)},t._vscf_password_recipient_info_key_encryption_algorithm=function(){return(t._vscf_password_recipient_info_key_encryption_algorithm=t.asm.Br).apply(null,arguments)},t._vscf_password_recipient_info_encrypted_key=function(){return(t._vscf_password_recipient_info_encrypted_key=t.asm.Cr).apply(null,arguments)},t._vscf_password_recipient_info_list_new=function(){return(t._vscf_password_recipient_info_list_new=t.asm.Dr).apply(null,arguments)},t._vscf_password_recipient_info_list_delete=function(){return(t._vscf_password_recipient_info_list_delete=t.asm.Er).apply(null,arguments)},t._vscf_password_recipient_info_list_shallow_copy=function(){return(t._vscf_password_recipient_info_list_shallow_copy=t.asm.Fr).apply(null,arguments)},t._vscf_password_recipient_info_list_has_item=function(){return(t._vscf_password_recipient_info_list_has_item=t.asm.Gr).apply(null,arguments)},t._vscf_password_recipient_info_list_item=function(){return(t._vscf_password_recipient_info_list_item=t.asm.Hr).apply(null,arguments)},t._vscf_password_recipient_info_list_has_next=function(){return(t._vscf_password_recipient_info_list_has_next=t.asm.Ir).apply(null,arguments)},t._vscf_password_recipient_info_list_next=function(){return(t._vscf_password_recipient_info_list_next=t.asm.Jr).apply(null,arguments)},t._vscf_password_recipient_info_list_has_prev=function(){return(t._vscf_password_recipient_info_list_has_prev=t.asm.Kr).apply(null,arguments)},t._vscf_password_recipient_info_list_prev=function(){return(t._vscf_password_recipient_info_list_prev=t.asm.Lr).apply(null,arguments)},t._vscf_password_recipient_info_list_clear=function(){return(t._vscf_password_recipient_info_list_clear=t.asm.Mr).apply(null,arguments)},t._vscf_pem_wrapped_len=function(){return(t._vscf_pem_wrapped_len=t.asm.Nr).apply(null,arguments)},t._vscf_pem_wrap=function(){return(t._vscf_pem_wrap=t.asm.Or).apply(null,arguments)},t._vscf_pem_unwrapped_len=function(){return(t._vscf_pem_unwrapped_len=t.asm.Pr).apply(null,arguments)},t._vscf_pem_unwrap=function(){return(t._vscf_pem_unwrap=t.asm.Qr).apply(null,arguments)},t._vscf_pem_title=function(){return(t._vscf_pem_title=t.asm.Rr).apply(null,arguments)},t._vscf_recipient_cipher_release_random=function(){return(t._vscf_recipient_cipher_release_random=t.asm.Sr).apply(null,arguments)},t._vscf_recipient_cipher_release_encryption_cipher=function(){return(t._vscf_recipient_cipher_release_encryption_cipher=t.asm.Tr).apply(null,arguments)},t._vscf_recipient_cipher_release_encryption_padding=function(){return(t._vscf_recipient_cipher_release_encryption_padding=t.asm.Ur).apply(null,arguments)},t._vscf_recipient_cipher_release_padding_params=function(){return(t._vscf_recipient_cipher_release_padding_params=t.asm.Vr).apply(null,arguments)},t._vscf_recipient_cipher_release_signer_hash=function(){return(t._vscf_recipient_cipher_release_signer_hash=t.asm.Wr).apply(null,arguments)},t._vscf_recipient_cipher_new=function(){return(t._vscf_recipient_cipher_new=t.asm.Xr).apply(null,arguments)},t._vscf_recipient_cipher_delete=function(){return(t._vscf_recipient_cipher_delete=t.asm.Yr).apply(null,arguments)},t._vscf_recipient_cipher_shallow_copy=function(){return(t._vscf_recipient_cipher_shallow_copy=t.asm.Zr).apply(null,arguments)},t._vscf_recipient_cipher_use_random=function(){return(t._vscf_recipient_cipher_use_random=t.asm._r).apply(null,arguments)},t._vscf_recipient_cipher_use_encryption_cipher=function(){return(t._vscf_recipient_cipher_use_encryption_cipher=t.asm.$r).apply(null,arguments)},t._vscf_recipient_cipher_use_encryption_padding=function(){return(t._vscf_recipient_cipher_use_encryption_padding=t.asm.as).apply(null,arguments)},t._vscf_recipient_cipher_use_padding_params=function(){return(t._vscf_recipient_cipher_use_padding_params=t.asm.bs).apply(null,arguments)},t._vscf_recipient_cipher_use_signer_hash=function(){return(t._vscf_recipient_cipher_use_signer_hash=t.asm.cs).apply(null,arguments)},t._vscf_recipient_cipher_has_key_recipient=function(){return(t._vscf_recipient_cipher_has_key_recipient=t.asm.ds).apply(null,arguments)},t._vscf_recipient_cipher_add_key_recipient=function(){return(t._vscf_recipient_cipher_add_key_recipient=t.asm.es).apply(null,arguments)},t._vscf_recipient_cipher_clear_recipients=function(){return(t._vscf_recipient_cipher_clear_recipients=t.asm.fs).apply(null,arguments)},t._vscf_recipient_cipher_add_signer=function(){return(t._vscf_recipient_cipher_add_signer=t.asm.gs).apply(null,arguments)},t._vscf_recipient_cipher_clear_signers=function(){return(t._vscf_recipient_cipher_clear_signers=t.asm.hs).apply(null,arguments)},t._vscf_recipient_cipher_custom_params=function(){return(t._vscf_recipient_cipher_custom_params=t.asm.is).apply(null,arguments)},t._vscf_recipient_cipher_start_encryption=function(){return(t._vscf_recipient_cipher_start_encryption=t.asm.js).apply(null,arguments)},t._vscf_recipient_cipher_start_signed_encryption=function(){return(t._vscf_recipient_cipher_start_signed_encryption=t.asm.ks).apply(null,arguments)},t._vscf_recipient_cipher_message_info_len=function(){return(t._vscf_recipient_cipher_message_info_len=t.asm.ls).apply(null,arguments)},t._vscf_recipient_cipher_pack_message_info=function(){return(t._vscf_recipient_cipher_pack_message_info=t.asm.ms).apply(null,arguments)},t._vscf_recipient_cipher_encryption_out_len=function(){return(t._vscf_recipient_cipher_encryption_out_len=t.asm.ns).apply(null,arguments)},t._vscf_recipient_cipher_message_info_footer_len=function(){return(t._vscf_recipient_cipher_message_info_footer_len=t.asm.os).apply(null,arguments)},t._vscf_recipient_cipher_process_encryption=function(){return(t._vscf_recipient_cipher_process_encryption=t.asm.ps).apply(null,arguments)},t._vscf_recipient_cipher_finish_encryption=function(){return(t._vscf_recipient_cipher_finish_encryption=t.asm.qs).apply(null,arguments)},t._vscf_recipient_cipher_start_decryption_with_key=function(){return(t._vscf_recipient_cipher_start_decryption_with_key=t.asm.rs).apply(null,arguments)},t._vscf_recipient_cipher_start_verified_decryption_with_key=function(){return(t._vscf_recipient_cipher_start_verified_decryption_with_key=t.asm.ss).apply(null,arguments)},t._vscf_recipient_cipher_decryption_out_len=function(){return(t._vscf_recipient_cipher_decryption_out_len=t.asm.ts).apply(null,arguments)},t._vscf_recipient_cipher_process_decryption=function(){return(t._vscf_recipient_cipher_process_decryption=t.asm.us).apply(null,arguments)},t._vscf_recipient_cipher_finish_decryption=function(){return(t._vscf_recipient_cipher_finish_decryption=t.asm.vs).apply(null,arguments)},t._vscf_recipient_cipher_is_data_signed=function(){return(t._vscf_recipient_cipher_is_data_signed=t.asm.ws).apply(null,arguments)},t._vscf_recipient_cipher_signer_infos=function(){return(t._vscf_recipient_cipher_signer_infos=t.asm.xs).apply(null,arguments)},t._vscf_recipient_cipher_verify_signer_info=function(){return(t._vscf_recipient_cipher_verify_signer_info=t.asm.ys).apply(null,arguments)},t._vscf_recipient_cipher_pack_message_info_footer=function(){return(t._vscf_recipient_cipher_pack_message_info_footer=t.asm.zs).apply(null,arguments)},t._vscf_signed_data_info_new=function(){return(t._vscf_signed_data_info_new=t.asm.As).apply(null,arguments)},t._vscf_signed_data_info_delete=function(){return(t._vscf_signed_data_info_delete=t.asm.Bs).apply(null,arguments)},t._vscf_signed_data_info_shallow_copy=function(){return(t._vscf_signed_data_info_shallow_copy=t.asm.Cs).apply(null,arguments)},t._vscf_signed_data_info_hash_alg_info=function(){return(t._vscf_signed_data_info_hash_alg_info=t.asm.Ds).apply(null,arguments)},t._vscf_signer_release_hash=function(){return(t._vscf_signer_release_hash=t.asm.Es).apply(null,arguments)},t._vscf_signer_release_random=function(){return(t._vscf_signer_release_random=t.asm.Fs).apply(null,arguments)},t._vscf_signer_new=function(){return(t._vscf_signer_new=t.asm.Gs).apply(null,arguments)},t._vscf_signer_delete=function(){return(t._vscf_signer_delete=t.asm.Hs).apply(null,arguments)},t._vscf_signer_shallow_copy=function(){return(t._vscf_signer_shallow_copy=t.asm.Is).apply(null,arguments)},t._vscf_signer_use_hash=function(){return(t._vscf_signer_use_hash=t.asm.Js).apply(null,arguments)},t._vscf_signer_use_random=function(){return(t._vscf_signer_use_random=t.asm.Ks).apply(null,arguments)},t._vscf_signer_reset=function(){return(t._vscf_signer_reset=t.asm.Ls).apply(null,arguments)},t._vscf_signer_append_data=function(){return(t._vscf_signer_append_data=t.asm.Ms).apply(null,arguments)},t._vscf_signer_signature_len=function(){return(t._vscf_signer_signature_len=t.asm.Ns).apply(null,arguments)},t._vscf_signer_sign=function(){return(t._vscf_signer_sign=t.asm.Os).apply(null,arguments)},t._vscf_signer_info_new=function(){return(t._vscf_signer_info_new=t.asm.Ps).apply(null,arguments)},t._vscf_signer_info_delete=function(){return(t._vscf_signer_info_delete=t.asm.Qs).apply(null,arguments)},t._vscf_signer_info_shallow_copy=function(){return(t._vscf_signer_info_shallow_copy=t.asm.Rs).apply(null,arguments)},t._vscf_signer_info_signer_id=function(){return(t._vscf_signer_info_signer_id=t.asm.Ss).apply(null,arguments)},t._vscf_signer_info_signer_alg_info=function(){return(t._vscf_signer_info_signer_alg_info=t.asm.Ts).apply(null,arguments)},t._vscf_signer_info_signature=function(){return(t._vscf_signer_info_signature=t.asm.Us).apply(null,arguments)},t._vscf_signer_info_list_new=function(){return(t._vscf_signer_info_list_new=t.asm.Vs).apply(null,arguments)},t._vscf_signer_info_list_delete=function(){return(t._vscf_signer_info_list_delete=t.asm.Ws).apply(null,arguments)},t._vscf_signer_info_list_shallow_copy=function(){return(t._vscf_signer_info_list_shallow_copy=t.asm.Xs).apply(null,arguments)},t._vscf_signer_info_list_has_item=function(){return(t._vscf_signer_info_list_has_item=t.asm.Ys).apply(null,arguments)},t._vscf_signer_info_list_item=function(){return(t._vscf_signer_info_list_item=t.asm.Zs).apply(null,arguments)},t._vscf_signer_info_list_has_next=function(){return(t._vscf_signer_info_list_has_next=t.asm._s).apply(null,arguments)},t._vscf_signer_info_list_next=function(){return(t._vscf_signer_info_list_next=t.asm.$s).apply(null,arguments)},t._vscf_signer_info_list_has_prev=function(){return(t._vscf_signer_info_list_has_prev=t.asm.at).apply(null,arguments)},t._vscf_signer_info_list_prev=function(){return(t._vscf_signer_info_list_prev=t.asm.bt).apply(null,arguments)},t._vscf_signer_info_list_clear=function(){return(t._vscf_signer_info_list_clear=t.asm.ct).apply(null,arguments)},t._vscf_verifier_new=function(){return(t._vscf_verifier_new=t.asm.dt).apply(null,arguments)},t._vscf_verifier_delete=function(){return(t._vscf_verifier_delete=t.asm.et).apply(null,arguments)},t._vscf_verifier_shallow_copy=function(){return(t._vscf_verifier_shallow_copy=t.asm.ft).apply(null,arguments)},t._vscf_verifier_reset=function(){return(t._vscf_verifier_reset=t.asm.gt).apply(null,arguments)},t._vscf_verifier_append_data=function(){return(t._vscf_verifier_append_data=t.asm.ht).apply(null,arguments)},t._vscf_verifier_verify=function(){return(t._vscf_verifier_verify=t.asm.it).apply(null,arguments)},t._vsc_buffer_new=function(){return(t._vsc_buffer_new=t.asm.jt).apply(null,arguments)},t._vsc_buffer_new_with_capacity=function(){return(t._vsc_buffer_new_with_capacity=t.asm.kt).apply(null,arguments)},t._vsc_buffer_delete=function(){return(t._vsc_buffer_delete=t.asm.lt).apply(null,arguments)},t._vsc_buffer_data=function(){return(t._vsc_buffer_data=t.asm.mt).apply(null,arguments)},t._vsc_buffer_make_secure=function(){return(t._vsc_buffer_make_secure=t.asm.nt).apply(null,arguments)},t._vsc_buffer_bytes=function(){return(t._vsc_buffer_bytes=t.asm.ot).apply(null,arguments)},t._vsc_buffer_len=function(){return(t._vsc_buffer_len=t.asm.pt).apply(null,arguments)},t._vsc_data_ctx_size=function(){return(t._vsc_data_ctx_size=t.asm.qt).apply(null,arguments)},t._vsc_data=function(){return(t._vsc_data=t.asm.rt).apply(null,arguments)},t._vsc_data_len=function(){return(t._vsc_data_len=t.asm.st).apply(null,arguments)},t._vsc_data_bytes=function(){return(t._vsc_data_bytes=t.asm.tt).apply(null,arguments)},t.___errno_location=function(){return(t.___errno_location=t.asm.ut).apply(null,arguments)};var De,Oe=t._malloc=function(){return(Oe=t._malloc=t.asm.vt).apply(null,arguments)};function Ve(){function e(){if(!De&&(De=!0,t.calledRun=!0,!m)){if(t.noFSInit||Pe||(Pe=!0,Ce(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Fe("stdin",t.stdin):Ie("/dev/tty","/dev/stdin"),t.stdout?Fe("stdout",null,t.stdout):Ie("/dev/tty","/dev/stdout"),t.stderr?Fe("stderr",null,t.stderr):Ie("/dev/tty1","/dev/stderr"),we("/dev/stdin","r"),we("/dev/stdout","w"),we("/dev/stderr","w")),N(b),ne=!1,N(w),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var e=t.postRun.shift();A.unshift(e)}N(A)}}if(!(0<R)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)C();N(I),0<R||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),e()}),1)):e())}}if(t._free=function(){return(t._free=t.asm.wt).apply(null,arguments)},t.stackAlloc=function(){return(t.stackAlloc=t.asm.xt).apply(null,arguments)},t.dynCall_vi=function(){return(t.dynCall_vi=t.asm.yt).apply(null,arguments)},t.asm=He,t.then=function(e){if(De)e(t);else{var _=t.onRuntimeInitialized;t.onRuntimeInitialized=function(){_&&_(),e(t)}}return t},S=function e(){De||Ve(),De||(S=e)},t.run=Ve,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return Ve(),e});e.exports=r}));var t=(e,t)=>Object.freeze({ALG:1,ALG_INFO:2,ALG_INFO_DESERIALIZER:3,ALG_INFO_SERIALIZER:4,ASN1_READER:5,ASN1_WRITER:6,AUTH_DECRYPT:7,AUTH_ENCRYPT:8,CIPHER:9,CIPHER_AUTH:10,CIPHER_AUTH_INFO:11,CIPHER_INFO:12,COMPUTE_SHARED_KEY:13,DECRYPT:14,ENCRYPT:15,ENTROPY_SOURCE:16,HASH:17,KDF:18,KEM:19,KEY:20,KEY_ALG:21,KEY_CIPHER:22,KEY_DESERIALIZER:23,KEY_SERIALIZER:24,KEY_SIGNER:25,MAC:26,MESSAGE_INFO_FOOTER_SERIALIZER:27,MESSAGE_INFO_SERIALIZER:28,PADDING:29,PRIVATE_KEY:30,PUBLIC_KEY:31,RANDOM:32,SALTED_KDF:33});var _=(e,t)=>class{static newAndTakeCContext(_){const r=e._vscf_impl_tag(_);switch(r){case t.FoundationImplTag.SHA224:return t.Sha224.newAndTakeCContext(_);case t.FoundationImplTag.SHA256:return t.Sha256.newAndTakeCContext(_);case t.FoundationImplTag.SHA384:return t.Sha384.newAndTakeCContext(_);case t.FoundationImplTag.SHA512:return t.Sha512.newAndTakeCContext(_);case t.FoundationImplTag.AES256_GCM:return t.Aes256Gcm.newAndTakeCContext(_);case t.FoundationImplTag.AES256_CBC:return t.Aes256Cbc.newAndTakeCContext(_);case t.FoundationImplTag.ASN1RD:return t.Asn1rd.newAndTakeCContext(_);case t.FoundationImplTag.ASN1WR:return t.Asn1wr.newAndTakeCContext(_);case t.FoundationImplTag.RSA_PUBLIC_KEY:return t.RsaPublicKey.newAndTakeCContext(_);case t.FoundationImplTag.RSA_PRIVATE_KEY:return t.RsaPrivateKey.newAndTakeCContext(_);case t.FoundationImplTag.RSA:return t.Rsa.newAndTakeCContext(_);case t.FoundationImplTag.ECC_PUBLIC_KEY:return t.EccPublicKey.newAndTakeCContext(_);case t.FoundationImplTag.ECC_PRIVATE_KEY:return t.EccPrivateKey.newAndTakeCContext(_);case t.FoundationImplTag.ECC:return t.Ecc.newAndTakeCContext(_);case t.FoundationImplTag.ENTROPY_ACCUMULATOR:return t.EntropyAccumulator.newAndTakeCContext(_);case t.FoundationImplTag.CTR_DRBG:return t.CtrDrbg.newAndTakeCContext(_);case t.FoundationImplTag.HMAC:return t.Hmac.newAndTakeCContext(_);case t.FoundationImplTag.HKDF:return t.Hkdf.newAndTakeCContext(_);case t.FoundationImplTag.KDF1:return t.Kdf1.newAndTakeCContext(_);case t.FoundationImplTag.KDF2:return t.Kdf2.newAndTakeCContext(_);case t.FoundationImplTag.FAKE_RANDOM:return t.FakeRandom.newAndTakeCContext(_);case t.FoundationImplTag.PKCS5_PBKDF2:return t.Pkcs5Pbkdf2.newAndTakeCContext(_);case t.FoundationImplTag.PKCS5_PBES2:return t.Pkcs5Pbes2.newAndTakeCContext(_);case t.FoundationImplTag.SEED_ENTROPY_SOURCE:return t.SeedEntropySource.newAndTakeCContext(_);case t.FoundationImplTag.KEY_MATERIAL_RNG:return t.KeyMaterialRng.newAndTakeCContext(_);case t.FoundationImplTag.RAW_PUBLIC_KEY:return t.RawPublicKey.newAndTakeCContext(_);case t.FoundationImplTag.RAW_PRIVATE_KEY:return t.RawPrivateKey.newAndTakeCContext(_);case t.FoundationImplTag.PKCS8_SERIALIZER:return t.Pkcs8Serializer.newAndTakeCContext(_);case t.FoundationImplTag.SEC1_SERIALIZER:return t.Sec1Serializer.newAndTakeCContext(_);case t.FoundationImplTag.KEY_ASN1_SERIALIZER:return t.KeyAsn1Serializer.newAndTakeCContext(_);case t.FoundationImplTag.KEY_ASN1_DESERIALIZER:return t.KeyAsn1Deserializer.newAndTakeCContext(_);case t.FoundationImplTag.ED25519:return t.Ed25519.newAndTakeCContext(_);case t.FoundationImplTag.CURVE25519:return t.Curve25519.newAndTakeCContext(_);case t.FoundationImplTag.FALCON:return t.Falcon.newAndTakeCContext(_);case t.FoundationImplTag.ROUND5:return t.Round5.newAndTakeCContext(_);case t.FoundationImplTag.COMPOUND_KEY_ALG_INFO:return t.CompoundKeyAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.COMPOUND_PUBLIC_KEY:return t.CompoundPublicKey.newAndTakeCContext(_);case t.FoundationImplTag.COMPOUND_PRIVATE_KEY:return t.CompoundPrivateKey.newAndTakeCContext(_);case t.FoundationImplTag.COMPOUND_KEY_ALG:return t.CompoundKeyAlg.newAndTakeCContext(_);case t.FoundationImplTag.HYBRID_KEY_ALG_INFO:return t.HybridKeyAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.HYBRID_PUBLIC_KEY:return t.HybridPublicKey.newAndTakeCContext(_);case t.FoundationImplTag.HYBRID_PRIVATE_KEY:return t.HybridPrivateKey.newAndTakeCContext(_);case t.FoundationImplTag.HYBRID_KEY_ALG:return t.HybridKeyAlg.newAndTakeCContext(_);case t.FoundationImplTag.SIMPLE_ALG_INFO:return t.SimpleAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.HASH_BASED_ALG_INFO:return t.HashBasedAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.CIPHER_ALG_INFO:return t.CipherAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.SALTED_KDF_ALG_INFO:return t.SaltedKdfAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.PBE_ALG_INFO:return t.PbeAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.ECC_ALG_INFO:return t.EccAlgInfo.newAndTakeCContext(_);case t.FoundationImplTag.ALG_INFO_DER_SERIALIZER:return t.AlgInfoDerSerializer.newAndTakeCContext(_);case t.FoundationImplTag.ALG_INFO_DER_DESERIALIZER:return t.AlgInfoDerDeserializer.newAndTakeCContext(_);case t.FoundationImplTag.MESSAGE_INFO_DER_SERIALIZER:return t.MessageInfoDerSerializer.newAndTakeCContext(_);case t.FoundationImplTag.RANDOM_PADDING:return t.RandomPadding.newAndTakeCContext(_);default:throw new Error("Unexpected implementation tag found: "+r)}}static newAndUseCContext(_){return new t.FoundationInterface.newAndTakeCContext(e._vscf_impl_shallow_copy(_))}static isImplemented(t,_){return 0!=e._vscf_impl_api(t,_)}};var r=(e,t)=>Object.freeze({AES256_CBC:1,AES256_GCM:2,ALG_INFO_DER_DESERIALIZER:3,ALG_INFO_DER_SERIALIZER:4,ASN1RD:5,ASN1WR:6,CIPHER_ALG_INFO:7,COMPOUND_KEY_ALG:8,COMPOUND_KEY_ALG_INFO:9,COMPOUND_PRIVATE_KEY:10,COMPOUND_PUBLIC_KEY:11,CTR_DRBG:12,CURVE25519:13,ECC:14,ECC_ALG_INFO:15,ECC_PRIVATE_KEY:16,ECC_PUBLIC_KEY:17,ED25519:18,ENTROPY_ACCUMULATOR:19,FAKE_RANDOM:20,FALCON:21,HASH_BASED_ALG_INFO:22,HKDF:23,HMAC:24,HYBRID_KEY_ALG:25,HYBRID_KEY_ALG_INFO:26,HYBRID_PRIVATE_KEY:27,HYBRID_PUBLIC_KEY:28,KDF1:29,KDF2:30,KEY_ASN1_DESERIALIZER:31,KEY_ASN1_SERIALIZER:32,KEY_MATERIAL_RNG:33,MESSAGE_INFO_DER_SERIALIZER:34,PBE_ALG_INFO:35,PKCS5_PBES2:36,PKCS5_PBKDF2:37,PKCS8_SERIALIZER:38,RANDOM_PADDING:39,RAW_PRIVATE_KEY:40,RAW_PUBLIC_KEY:41,ROUND5:42,RSA:43,RSA_PRIVATE_KEY:44,RSA_PUBLIC_KEY:45,SALTED_KDF_ALG_INFO:46,SEC1_SERIALIZER:47,SEED_ENTROPY_SOURCE:48,SHA224:49,SHA256:50,SHA384:51,SHA512:52,SIMPLE_ALG_INFO:53});var n=(e,t)=>{class _ extends Error{constructor(e){super(e),this.name="FoundationError",this.message=e}static handleStatusCode(e){if(0!=e){if(-1==e)throw new _("This error should not be returned if assertions is enabled.");if(-2==e)throw new _("Can be used to define that not all context prerequisites are satisfied. Note, this error should not be returned if assertions is enabled.");if(-3==e)throw new _("Define that error code from one of third-party module was not handled. Note, this error should not be returned if assertions is enabled.");if(-101==e)throw new _("Buffer capacity is not enough to hold result.");if(-200==e)throw new _("Unsupported algorithm.");if(-201==e)throw new _("Authentication failed during decryption.");if(-202==e)throw new _("Attempt to read data out of buffer bounds.");if(-203==e)throw new _("ASN.1 encoded data is corrupted.");if(-204==e)throw new _("Attempt to read ASN.1 type that is bigger then requested C type.");if(-205==e)throw new _("ASN.1 representation of PKCS#1 public key is corrupted.");if(-206==e)throw new _("ASN.1 representation of PKCS#1 private key is corrupted.");if(-207==e)throw new _("ASN.1 representation of PKCS#8 public key is corrupted.");if(-208==e)throw new _("ASN.1 representation of PKCS#8 private key is corrupted.");if(-209==e)throw new _("Encrypted data is corrupted.");if(-210==e)throw new _("Underlying random operation returns error.");if(-211==e)throw new _("Generation of the private or secret key failed.");if(-212==e)throw new _("One of the entropy sources failed.");if(-213==e)throw new _("Requested data to be generated is too big.");if(-214==e)throw new _("Base64 encoded string contains invalid characters.");if(-215==e)throw new _("PEM data is corrupted.");if(-216==e)throw new _("Exchange key return zero.");if(-217==e)throw new _("Ed25519 public key is corrupted.");if(-218==e)throw new _("Ed25519 private key is corrupted.");if(-219==e)throw new _("CURVE25519 public key is corrupted.");if(-220==e)throw new _("CURVE25519 private key is corrupted.");if(-221==e)throw new _("Elliptic curve public key format is corrupted see RFC 5480.");if(-222==e)throw new _("Elliptic curve public key format is corrupted see RFC 5915.");if(-223==e)throw new _("ASN.1 representation of a public key is corrupted.");if(-224==e)throw new _("ASN.1 representation of a private key is corrupted.");if(-225==e)throw new _("Key algorithm does not accept given type of public key.");if(-226==e)throw new _("Key algorithm does not accept given type of private key.");if(-227==e)throw new _("Post-quantum Falcon-Sign public key is corrupted.");if(-228==e)throw new _("Post-quantum Falcon-Sign private key is corrupted.");if(-229==e)throw new _("Generic Round5 library error.");if(-230==e)throw new _("Post-quantum NIST Round5 public key is corrupted.");if(-231==e)throw new _("Post-quantum NIST Round5 private key is corrupted.");if(-232==e)throw new _("Compound public key is corrupted.");if(-233==e)throw new _("Compound private key is corrupted.");if(-234==e)throw new _("Compound public hybrid key is corrupted.");if(-235==e)throw new _("Compound private hybrid key is corrupted.");if(-236==e)throw new _("ASN.1 AlgorithmIdentifer is corrupted.");if(-237==e)throw new _("ASN.1 AlgorithmIdentifer with ECParameters is corrupted.");if(-238==e)throw new _("ASN.1 AlgorithmIdentifer with CompoundKeyParams is corrupted.");if(-239==e)throw new _("ASN.1 AlgorithmIdentifer with HybridKeyParams is corrupted.");if(-301==e)throw new _("Decryption failed, because message info was not given explicitly, and was not part of an encrypted message.");if(-302==e)throw new _("Message Info is corrupted.");if(-303==e)throw new _("Recipient defined with id is not found within message info during data decryption.");if(-304==e)throw new _("Content encryption key can not be decrypted with a given private key.");if(-305==e)throw new _("Content encryption key can not be decrypted with a given password.");if(-306==e)throw new _("Custom parameter with a given key is not found within message info.");if(-307==e)throw new _("A custom parameter with a given key is found, but the requested value type does not correspond to the actual type.");if(-308==e)throw new _("Signature format is corrupted.");if(-309==e)throw new _("Message Info footer is corrupted.");if(-401==e)throw new _("Brainkey password length is out of range.");if(-402==e)throw new _("Brainkey number length should be 32 byte.");if(-403==e)throw new _("Brainkey point length should be 65 bytes.");if(-404==e)throw new _("Brainkey name is out of range.");if(-405==e)throw new _("Brainkey internal error.");if(-406==e)throw new _("Brainkey point is invalid.");if(-407==e)throw new _("Brainkey number buffer length capacity should be >= 32 byte.");if(-408==e)throw new _("Brainkey point buffer length capacity should be >= 32 byte.");if(-409==e)throw new _("Brainkey seed buffer length capacity should be >= 32 byte.");if(-410==e)throw new _("Brainkey identity secret is invalid.");if(-411==e)throw new _("KEM encapsulated key is invalid or does not correspond to the private key.");if(-501==e)throw new _("Invalid padding.");if(-601==e)throw new _("Protobuf error.");if(-701==e)throw new _("Session id doesnt match.");if(-702==e)throw new _("Epoch not found.");if(-703==e)throw new _("Wrong key type.");if(-704==e)throw new _("Invalid signature.");if(-705==e)throw new _("Ed25519 error.");if(-706==e)throw new _("Duplicate epoch.");if(-707==e)throw new _("Plain text too long.");throw new _("Unexpected status code:"+e)}}}return _};var s=(e,t)=>Object.freeze({BOOLEAN:0,INTEGER:1,BIT_STRING:2,OCTET_STRING:3,NULL:4,OID:5,UTF8_STRING:6,SEQUENCE:7,SET:8,PRINTABLE_STRING:9,T61_STRING:10,IA5_STRING:11,UTC_TIME:12,GENERALIZED_TIME:13,UNIVERSAL_STRING:14,BMP_STRING:15,PRIMITIVE:16,CONSTRUCTED:17,CONTEXT_SPECIFIC:18});var c=(e,t)=>Object.freeze({NONE:0,SHA224:1,SHA256:2,SHA384:3,SHA512:4,KDF1:5,KDF2:6,RSA:7,ED25519:8,CURVE25519:9,SECP256R1:10,AES256_GCM:11,AES256_CBC:12,HMAC:13,HKDF:14,PKCS5_PBKDF2:15,PKCS5_PBES2:16,COMPOUND_KEY:17,HYBRID_KEY:18,FALCON:19,ROUND5_ND_5KEM_5D:20,RANDOM_PADDING:21});var a=(e,t)=>Object.freeze({NONE:0,RSA:1,ED25519:2,CURVE25519:3,SHA224:4,SHA256:5,SHA384:6,SHA512:7,KDF1:8,KDF2:9,AES256_GCM:10,AES256_CBC:11,PKCS5_PBKDF2:12,PKCS5_PBES2:13,CMS_DATA:14,CMS_ENVELOPED_DATA:15,HKDF_WITH_SHA256:16,HKDF_WITH_SHA384:17,HKDF_WITH_SHA512:18,HMAC_WITH_SHA224:19,HMAC_WITH_SHA256:20,HMAC_WITH_SHA384:21,HMAC_WITH_SHA512:22,EC_GENERIC_KEY:23,EC_DOMAIN_SECP256R1:24,COMPOUND_KEY:25,HYBRID_KEY:26,FALCON:27,ROUND5_ND_5KEM_5D:28,RANDOM_PADDING:29});var i=(e,t)=>Object.freeze({GROUP_INFO:0,REGULAR:1});var l=(e,t)=>Object.freeze({INITIAL:0,ENCRYPTION:1,DECRYPTION:2});function o(e,t){if(!("number"==typeof t||t instanceof Number))throw new TypeError(`'${e}' is not a number`);if(Number.isNaN(t))throw new TypeError(`'${e}' is NaN`);if(t===1/0)throw new TypeError(`'${e}' is Infinity`);if(t===-1/0)throw new TypeError(`'${e}' is -Infinity`)}function u(e,t){if(o(e,t),0==t)throw new TypeError(`'${e}' is NULL`)}var f={ensureNumber:o,ensureString:function(e,t){if(!("string"==typeof t||t instanceof String))throw new TypeError(`'${e}' is not a string`)},ensureBoolean:function(e,t){if("boolean"!=typeof t)throw new TypeError(`'${e}' is not a boolean`)},ensureByteArray:function(e,t){if(!(t instanceof Uint8Array))throw new TypeError(`'${e}' is not an Uint8Array`)},ensureClass:function(e,t,_){if(!(t instanceof _))throw new TypeError(`'${e}' is not an instance of the class ${_.name}`);u(e,t.ctxPtr)},ensureNotNull:u,ensureImplementInterface:function(e,t,_,r,n){if(u(e,t.ctxPtr),!n.isImplemented(t.ctxPtr,r))throw new TypeError(`'${e}' does not implement interface '${_}'`)}};var d=(e,t)=>class{static fromAlgId(t){f.ensureNumber("algId",t);const _=e._vsc_data_ctx_size(),r=e._malloc(_);try{e._vscf_oid_from_alg_id(r,t);const _=e._vsc_data_len(r),n=e._vsc_data_bytes(r);return e.HEAPU8.slice(n,n+_)}finally{e._free(r)}}static toAlgId(t){f.ensureByteArray("oid",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_oid_to_alg_id(s),c}finally{e._free(r),e._free(s)}}static fromId(t){f.ensureNumber("oidId",t);const _=e._vsc_data_ctx_size(),r=e._malloc(_);try{e._vscf_oid_from_id(r,t);const _=e._vsc_data_len(r),n=e._vsc_data_bytes(r);return e.HEAPU8.slice(n,n+_)}finally{e._free(r)}}static toId(t){f.ensureByteArray("oid",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_oid_to_id(s),c}finally{e._free(r),e._free(s)}}static idToAlgId(t){let _;return f.ensureNumber("oidId",t),_=e._vscf_oid_id_to_alg_id(t),_}static equal(t,_){f.ensureByteArray("lhs",t),f.ensureByteArray("rhs",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_.length*_.BYTES_PER_ELEMENT,i=e._malloc(a);e.HEAP8.set(_,i);const l=e._vsc_data_ctx_size(),o=e._malloc(l);let u;e._vsc_data(o,i,a);try{return u=e._vscf_oid_equal(c,o),!!u}finally{e._free(n),e._free(c),e._free(i),e._free(o)}}};var p=(e,t)=>class{static encodedLen(t){let _;return f.ensureNumber("dataLen",t),_=e._vscf_base64_encoded_len(t),_}static encode(_){f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=t.Base64.encodedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{e._vscf_base64_encode(c,i);const t=e._vsc_buffer_bytes(i),_=e._vsc_buffer_len(i);return e.HEAPU8.slice(t,t+_)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}static decodedLen(t){let _;return f.ensureNumber("strLen",t),_=e._vscf_base64_decoded_len(t),_}static decode(_){f.ensureByteArray("str",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=t.Base64.decodedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_base64_decode(c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}};var v=(e,t)=>class{static wrappedLen(t,_){let r;return f.ensureNumber("title",t),f.ensureNumber("dataLen",_),r=e._vscf_pem_wrapped_len(t,_),r}static wrap(_,r){f.ensureNumber("title",_),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=t.Pem.wrappedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{e._vscf_pem_wrap(_,a,l);const t=e._vsc_buffer_bytes(l),r=e._vsc_buffer_len(l);return e.HEAPU8.slice(t,t+r)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}static unwrappedLen(t){let _;return f.ensureNumber("pemLen",t),_=e._vscf_pem_unwrapped_len(t),_}static unwrap(_){f.ensureByteArray("pem",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=t.Pem.unwrappedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_pem_unwrap(c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}static title(t){f.ensureByteArray("pem",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=e._vsc_data_ctx_size(),a=e._malloc(c);try{e._vscf_pem_title(a,s);const t=e._vsc_data_len(a),_=e._vsc_data_bytes(a);return e.HEAPU8.slice(_,_+t)}finally{e._free(r),e._free(s),e._free(a)}}};var y=(e,t)=>{class _{constructor(t){this.name="MessageInfo",this.ctxPtr=void 0===t?e._vscf_message_info_new():t}static newAndUseCContext(t){return new _(e._vscf_message_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_message_info_delete(this.ctxPtr),this.ctxPtr=null)}dataEncryptionAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_data_encryption_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}keyRecipientInfoList(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_key_recipient_info_list(this.ctxPtr),t.KeyRecipientInfoList.newAndUseCContext(_)}passwordRecipientInfoList(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_password_recipient_info_list(this.ctxPtr),t.PasswordRecipientInfoList.newAndUseCContext(_)}hasCustomParams(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_has_custom_params(this.ctxPtr),!!t}customParams(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_custom_params(this.ctxPtr),t.MessageInfoCustomParams.newAndUseCContext(_)}hasCipherKdfAlgInfo(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_has_cipher_kdf_alg_info(this.ctxPtr),!!t}cipherKdfAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_cipher_kdf_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}hasCipherPaddingAlgInfo(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_has_cipher_padding_alg_info(this.ctxPtr),!!t}cipherPaddingAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_cipher_padding_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}hasFooterInfo(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_has_footer_info(this.ctxPtr),!!t}footerInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_footer_info(this.ctxPtr),t.FooterInfo.newAndUseCContext(_)}clear(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_message_info_clear(this.ctxPtr)}}return _};var h=(e,t)=>{class _{constructor(t){this.name="KeyRecipientInfo",this.ctxPtr=void 0===t?e._vscf_key_recipient_info_new():t}static newAndUseCContext(t){return new _(e._vscf_key_recipient_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_recipient_info_delete(this.ctxPtr),this.ctxPtr=null)}static newWithData(r,n,s){f.ensureByteArray("recipientId",r),f.ensureImplementInterface("keyEncryptionAlgorithm",n,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),f.ensureByteArray("encryptedKey",s);const c=r.length*r.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(r,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_key_recipient_info_new_with_data(l,n.ctxPtr,p),_.newAndTakeCContext(v)}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}recipientId(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_key_recipient_info_recipient_id(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}keyEncryptionAlgorithm(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_key_recipient_info_key_encryption_algorithm(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}encryptedKey(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_key_recipient_info_encrypted_key(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}}return _};var P=(e,t)=>{class _{constructor(t){this.name="KeyRecipientInfoList",this.ctxPtr=void 0===t?e._vscf_key_recipient_info_list_new():t}static newAndUseCContext(t){return new _(e._vscf_key_recipient_info_list_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_recipient_info_list_delete(this.ctxPtr),this.ctxPtr=null)}hasItem(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_recipient_info_list_has_item(this.ctxPtr),!!t}item(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_key_recipient_info_list_item(this.ctxPtr),t.KeyRecipientInfo.newAndUseCContext(_)}hasNext(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_recipient_info_list_has_next(this.ctxPtr),!!t}next(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_recipient_info_list_next(this.ctxPtr),_.newAndUseCContext(t)}hasPrev(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_recipient_info_list_has_prev(this.ctxPtr),!!t}prev(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_recipient_info_list_prev(this.ctxPtr),_.newAndUseCContext(t)}clear(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_key_recipient_info_list_clear(this.ctxPtr)}}return _};var m=(e,t)=>{class _{constructor(t){this.name="PasswordRecipientInfo",this.ctxPtr=void 0===t?e._vscf_password_recipient_info_new():t}static newAndUseCContext(t){return new _(e._vscf_password_recipient_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_password_recipient_info_delete(this.ctxPtr),this.ctxPtr=null)}static newWithMembers(r,n){f.ensureImplementInterface("keyEncryptionAlgorithm",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),f.ensureByteArray("encryptedKey",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);let l;e._vsc_data(i,c,s);try{return l=e._vscf_password_recipient_info_new_with_members(r.ctxPtr,i),_.newAndTakeCContext(l)}finally{e._free(c),e._free(i)}}keyEncryptionAlgorithm(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_password_recipient_info_key_encryption_algorithm(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}encryptedKey(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_password_recipient_info_encrypted_key(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}}return _};var x=(e,t)=>{class _{constructor(t){this.name="PasswordRecipientInfoList",this.ctxPtr=void 0===t?e._vscf_password_recipient_info_list_new():t}static newAndUseCContext(t){return new _(e._vscf_password_recipient_info_list_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_password_recipient_info_list_delete(this.ctxPtr),this.ctxPtr=null)}hasItem(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_password_recipient_info_list_has_item(this.ctxPtr),!!t}item(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_password_recipient_info_list_item(this.ctxPtr),t.PasswordRecipientInfo.newAndUseCContext(_)}hasNext(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_password_recipient_info_list_has_next(this.ctxPtr),!!t}next(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_password_recipient_info_list_next(this.ctxPtr),_.newAndUseCContext(t)}hasPrev(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_password_recipient_info_list_has_prev(this.ctxPtr),!!t}prev(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_password_recipient_info_list_prev(this.ctxPtr),_.newAndUseCContext(t)}clear(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_password_recipient_info_list_clear(this.ctxPtr)}}return _};var g=(e,t)=>class{static createHashFromInfo(_){let r;return f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_factory_create_hash_from_info(_.ctxPtr),t.FoundationInterface.newAndTakeCContext(r)}static createMacFromInfo(_){let r;return f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_factory_create_mac_from_info(_.ctxPtr),t.FoundationInterface.newAndTakeCContext(r)}static createKdfFromInfo(_){let r;return f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_factory_create_kdf_from_info(_.ctxPtr),t.FoundationInterface.newAndTakeCContext(r)}static createSaltedKdfFromInfo(_){let r;return f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_factory_create_salted_kdf_from_info(_.ctxPtr),t.FoundationInterface.newAndTakeCContext(r)}static createCipherFromInfo(_){let r;return f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_factory_create_cipher_from_info(_.ctxPtr),t.FoundationInterface.newAndTakeCContext(r)}static createPaddingFromInfo(_,r){let n;return f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),f.ensureImplementInterface("random",r,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),n=e._vscf_alg_factory_create_padding_from_info(_.ctxPtr,r.ctxPtr),t.FoundationInterface.newAndTakeCContext(n)}};var k=(e,t)=>class{static createFromAlgId(_,r){f.ensureNumber("algId",_),f.ensureImplementInterface("random",r,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_key_alg_factory_create_from_alg_id(_,r.ctxPtr,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}static createFromKey(_,r){f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),f.ensureImplementInterface("random",r,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_key_alg_factory_create_from_key(_.ctxPtr,r.ctxPtr,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}static createFromRawPublicKey(_,r){f.ensureClass("publicKey",_,t.RawPublicKey),f.ensureImplementInterface("random",r,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_key_alg_factory_create_from_raw_public_key(_.ctxPtr,r.ctxPtr,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}static createFromRawPrivateKey(_,r){f.ensureClass("privateKey",_,t.RawPrivateKey),f.ensureImplementInterface("random",r,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_key_alg_factory_create_from_raw_private_key(_.ctxPtr,r.ctxPtr,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}};var E=(e,t)=>{class _{constructor(t){this.name="Ecies",this.ctxPtr=void 0===t?e._vscf_ecies_new():t}static newAndUseCContext(t){return new _(e._vscf_ecies_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ecies_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_ecies_release_random(this.ctxPtr),e._vscf_ecies_use_random(this.ctxPtr,_.ctxPtr)}set cipher(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("cipher",_,"Foundation.Cipher",t.FoundationInterfaceTag.CIPHER,t.FoundationInterface),e._vscf_ecies_release_cipher(this.ctxPtr),e._vscf_ecies_use_cipher(this.ctxPtr,_.ctxPtr)}set mac(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("mac",_,"Foundation.Mac",t.FoundationInterfaceTag.MAC,t.FoundationInterface),e._vscf_ecies_release_mac(this.ctxPtr),e._vscf_ecies_use_mac(this.ctxPtr,_.ctxPtr)}set kdf(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("kdf",_,"Foundation.Kdf",t.FoundationInterfaceTag.KDF,t.FoundationInterface),e._vscf_ecies_release_kdf(this.ctxPtr),e._vscf_ecies_use_kdf(this.ctxPtr,_.ctxPtr)}set ephemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("ephemeralKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),e._vscf_ecies_release_ephemeral_key(this.ctxPtr),e._vscf_ecies_use_ephemeral_key(this.ctxPtr,_.ctxPtr)}setKeyAlg(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("keyAlg",_,"Foundation.KeyAlg",t.FoundationInterfaceTag.KEY_ALG,t.FoundationInterface),e._vscf_ecies_set_key_alg(this.ctxPtr,_.ctxPtr)}releaseKeyAlg(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_ecies_release_key_alg(this.ctxPtr)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_ecies_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}setupDefaultsNoRandom(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_ecies_setup_defaults_no_random(this.ctxPtr)}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ecies_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_ecies_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ecies_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_ecies_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}}return _};var N=(e,t)=>{class _{constructor(t){this.name="RecipientCipher",this.ctxPtr=void 0===t?e._vscf_recipient_cipher_new():t}static newAndUseCContext(t){return new _(e._vscf_recipient_cipher_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_recipient_cipher_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_recipient_cipher_release_random(this.ctxPtr),e._vscf_recipient_cipher_use_random(this.ctxPtr,_.ctxPtr)}set encryptionCipher(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("encryptionCipher",_,"Foundation.Cipher",t.FoundationInterfaceTag.CIPHER,t.FoundationInterface),e._vscf_recipient_cipher_release_encryption_cipher(this.ctxPtr),e._vscf_recipient_cipher_use_encryption_cipher(this.ctxPtr,_.ctxPtr)}set encryptionPadding(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("encryptionPadding",_,"Foundation.Padding",t.FoundationInterfaceTag.PADDING,t.FoundationInterface),e._vscf_recipient_cipher_release_encryption_padding(this.ctxPtr),e._vscf_recipient_cipher_use_encryption_padding(this.ctxPtr,_.ctxPtr)}set paddingParams(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("paddingParams",_,t.PaddingParams),e._vscf_recipient_cipher_release_padding_params(this.ctxPtr),e._vscf_recipient_cipher_use_padding_params(this.ctxPtr,_.ctxPtr)}set signerHash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("signerHash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_recipient_cipher_release_signer_hash(this.ctxPtr),e._vscf_recipient_cipher_use_signer_hash(this.ctxPtr,_.ctxPtr)}hasKeyRecipient(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("recipientId",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_recipient_cipher_has_key_recipient(this.ctxPtr,s),!!c}finally{e._free(r),e._free(s)}}addKeyRecipient(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("recipientId",_),f.ensureImplementInterface("publicKey",r,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);try{e._vscf_recipient_cipher_add_key_recipient(this.ctxPtr,a,r.ctxPtr)}finally{e._free(s),e._free(a)}}clearRecipients(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_recipient_cipher_clear_recipients(this.ctxPtr)}addSigner(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("signerId",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);try{const _=e._vscf_recipient_cipher_add_signer(this.ctxPtr,a,r.ctxPtr);t.FoundationError.handleStatusCode(_)}finally{e._free(s),e._free(a)}}clearSigners(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_recipient_cipher_clear_signers(this.ctxPtr)}customParams(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_recipient_cipher_custom_params(this.ctxPtr),t.MessageInfoCustomParams.newAndUseCContext(_)}startEncryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_recipient_cipher_start_encryption(this.ctxPtr);t.FoundationError.handleStatusCode(_)}startSignedEncryption(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataSize",_);const r=e._vscf_recipient_cipher_start_signed_encryption(this.ctxPtr,_);t.FoundationError.handleStatusCode(r)}messageInfoLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_recipient_cipher_message_info_len(this.ctxPtr),t}packMessageInfo(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.messageInfoLen(),_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_recipient_cipher_pack_message_info(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}encryptionOutLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_recipient_cipher_encryption_out_len(this.ctxPtr,t),_}processEncryption(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.encryptionOutLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_recipient_cipher_process_encryption(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}finishEncryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.encryptionOutLen(0),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_recipient_cipher_finish_encryption(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}startDecryptionWithKey(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("recipientId",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("messageInfo",n);const s=_.length*_.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(_,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=n.length*n.BYTES_PER_ELEMENT,o=e._malloc(l);e.HEAP8.set(n,o);const u=e._vsc_data_ctx_size(),d=e._malloc(u);e._vsc_data(d,o,l);try{const _=e._vscf_recipient_cipher_start_decryption_with_key(this.ctxPtr,i,r.ctxPtr,d);t.FoundationError.handleStatusCode(_)}finally{e._free(c),e._free(i),e._free(o),e._free(d)}}startVerifiedDecryptionWithKey(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("recipientId",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("messageInfo",n),f.ensureByteArray("messageInfoFooter",s);const c=_.length*_.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(_,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=n.length*n.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(n,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);e._vsc_data(p,u,o);const v=s.length*s.BYTES_PER_ELEMENT,y=e._malloc(v);e.HEAP8.set(s,y);const h=e._vsc_data_ctx_size(),P=e._malloc(h);e._vsc_data(P,y,v);try{const _=e._vscf_recipient_cipher_start_verified_decryption_with_key(this.ctxPtr,l,r.ctxPtr,p,P);t.FoundationError.handleStatusCode(_)}finally{e._free(a),e._free(l),e._free(u),e._free(p),e._free(y),e._free(P)}}decryptionOutLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_recipient_cipher_decryption_out_len(this.ctxPtr,t),_}processDecryption(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.decryptionOutLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_recipient_cipher_process_decryption(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}finishDecryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.decryptionOutLen(0),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_recipient_cipher_finish_decryption(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}isDataSigned(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_recipient_cipher_is_data_signed(this.ctxPtr),!!t}signerInfos(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_recipient_cipher_signer_infos(this.ctxPtr),t.SignerInfoList.newAndUseCContext(_)}verifySignerInfo(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("signerInfo",_,t.SignerInfo),f.ensureImplementInterface("publicKey",r,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),n=e._vscf_recipient_cipher_verify_signer_info(this.ctxPtr,_.ctxPtr,r.ctxPtr),!!n}messageInfoFooterLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_recipient_cipher_message_info_footer_len(this.ctxPtr),t}packMessageInfoFooter(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.messageInfoFooterLen(),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_recipient_cipher_pack_message_info_footer(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}}return _};var I=(e,t)=>{class _{constructor(t){this.name="MessageInfoCustomParams",this.ctxPtr=void 0===t?e._vscf_message_info_custom_params_new():t}static newAndUseCContext(t){return new _(e._vscf_message_info_custom_params_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_message_info_custom_params_delete(this.ctxPtr),this.ctxPtr=null)}addInt(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t),f.ensureNumber("value",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);try{e._vscf_message_info_custom_params_add_int(this.ctxPtr,c,_)}finally{e._free(n),e._free(c)}}addString(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t),f.ensureByteArray("value",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_.length*_.BYTES_PER_ELEMENT,i=e._malloc(a);e.HEAP8.set(_,i);const l=e._vsc_data_ctx_size(),o=e._malloc(l);e._vsc_data(o,i,a);try{e._vscf_message_info_custom_params_add_string(this.ctxPtr,c,o)}finally{e._free(n),e._free(c),e._free(i),e._free(o)}}addData(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t),f.ensureByteArray("value",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_.length*_.BYTES_PER_ELEMENT,i=e._malloc(a);e.HEAP8.set(_,i);const l=e._vsc_data_ctx_size(),o=e._malloc(l);e._vsc_data(o,i,a);try{e._vscf_message_info_custom_params_add_data(this.ctxPtr,c,o)}finally{e._free(n),e._free(c),e._free(i),e._free(o)}}clear(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_message_info_custom_params_clear(this.ctxPtr)}findInt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_message_info_custom_params_find_int(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),l}finally{e._free(n),e._free(c),e._free(i)}}findString(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);e._vscf_error_reset(i);const l=e._vsc_data_ctx_size(),o=e._malloc(l);try{e._vscf_message_info_custom_params_find_string(o,this.ctxPtr,c,i);const _=e._vscf_error_status(i);t.FoundationError.handleStatusCode(_);const r=e._vsc_data_len(o),s=e._vsc_data_bytes(o);return e.HEAPU8.slice(s,s+r)}finally{e._free(n),e._free(c),e._free(i),e._free(o)}}findData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);e._vscf_error_reset(i);const l=e._vsc_data_ctx_size(),o=e._malloc(l);try{e._vscf_message_info_custom_params_find_data(o,this.ctxPtr,c,i);const _=e._vscf_error_status(i);t.FoundationError.handleStatusCode(_);const r=e._vsc_data_len(o),s=e._vsc_data_bytes(o);return e.HEAPU8.slice(s,s+r)}finally{e._free(n),e._free(c),e._free(i),e._free(o)}}hasParams(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_custom_params_has_params(this.ctxPtr),!!t}}return _};var b=(e,t)=>{class _{constructor(t){this.name="KeyProvider",this.ctxPtr=void 0===t?e._vscf_key_provider_new():t}static newAndUseCContext(t){return new _(e._vscf_key_provider_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_provider_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_key_provider_release_random(this.ctxPtr),e._vscf_key_provider_use_random(this.ctxPtr,_.ctxPtr)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_key_provider_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}setRsaParams(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("bitlen",t),e._vscf_key_provider_set_rsa_params(this.ctxPtr,t)}generatePrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("algId",_);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_key_provider_generate_private_key(this.ctxPtr,_,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}generatePostQuantumPrivateKey(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_key_provider_generate_post_quantum_private_key(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(n)}finally{e._free(r)}}generateCompoundPrivateKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("cipherAlgId",_),f.ensureNumber("signerAlgId",r);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_key_provider_generate_compound_private_key(this.ctxPtr,_,r,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}generateHybridPrivateKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("firstKeyAlgId",_),f.ensureNumber("secondKeyAlgId",r);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_key_provider_generate_hybrid_private_key(this.ctxPtr,_,r,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}generateCompoundHybridPrivateKey(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("cipherFirstKeyAlgId",_),f.ensureNumber("cipherSecondKeyAlgId",r),f.ensureNumber("signerFirstKeyAlgId",n),f.ensureNumber("signerSecondKeyAlgId",s);const c=e._vscf_error_ctx_size(),a=e._malloc(c);let i;e._vscf_error_reset(a);try{i=e._vscf_key_provider_generate_compound_hybrid_private_key(this.ctxPtr,_,r,n,s,a);const c=e._vscf_error_status(a);return t.FoundationError.handleStatusCode(c),t.FoundationInterface.newAndTakeCContext(i)}finally{e._free(a)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_key_provider_import_private_key(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_key_provider_import_public_key(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}exportedPublicKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_key_provider_exported_public_key_len(this.ctxPtr,_.ctxPtr),r}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_key_provider_export_public_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}exportedPrivateKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_key_provider_exported_private_key_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_key_provider_export_private_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}}return _};var w=(e,t)=>{class _{constructor(t){this.name="Signer",this.ctxPtr=void 0===t?e._vscf_signer_new():t}static newAndUseCContext(t){return new _(e._vscf_signer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_signer_delete(this.ctxPtr),this.ctxPtr=null)}set hash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_signer_release_hash(this.ctxPtr),e._vscf_signer_use_hash(this.ctxPtr,_.ctxPtr)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_signer_release_random(this.ctxPtr),e._vscf_signer_use_random(this.ctxPtr,_.ctxPtr)}reset(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_signer_reset(this.ctxPtr)}appendData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_signer_append_data(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_signer_signature_len(this.ctxPtr,_.ctxPtr),r}sign(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.signatureLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_signer_sign(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}}return _};var A=(e,t)=>{class _{constructor(t){this.name="Verifier",this.ctxPtr=void 0===t?e._vscf_verifier_new():t}static newAndUseCContext(t){return new _(e._vscf_verifier_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_verifier_delete(this.ctxPtr),this.ctxPtr=null)}reset(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("signature",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);try{const _=e._vscf_verifier_reset(this.ctxPtr,c);t.FoundationError.handleStatusCode(_)}finally{e._free(n),e._free(c)}}appendData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_verifier_append_data(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}verify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_verifier_verify(this.ctxPtr,_.ctxPtr),!!r}}return _};var C=(e,t)=>{class _{static get POINT_LEN(){return 65}get POINT_LEN(){return _.POINT_LEN}static get MPI_LEN(){return 32}get MPI_LEN(){return _.MPI_LEN}static get SEED_LEN(){return 32}get SEED_LEN(){return _.SEED_LEN}static get MAX_PASSWORD_LEN(){return 128}get MAX_PASSWORD_LEN(){return _.MAX_PASSWORD_LEN}static get MAX_KEY_NAME_LEN(){return 128}get MAX_KEY_NAME_LEN(){return _.MAX_KEY_NAME_LEN}constructor(t){this.name="BrainkeyClient",this.ctxPtr=void 0===t?e._vscf_brainkey_client_new():t}static newAndUseCContext(t){return new _(e._vscf_brainkey_client_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_brainkey_client_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_brainkey_client_release_random(this.ctxPtr),e._vscf_brainkey_client_use_random(this.ctxPtr,_.ctxPtr)}set operationRandom(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("operationRandom",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_brainkey_client_release_operation_random(this.ctxPtr),e._vscf_brainkey_client_use_operation_random(this.ctxPtr,_.ctxPtr)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_brainkey_client_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}blind(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("password",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=t.BrainkeyClient.MPI_LEN,i=e._vsc_buffer_new_with_capacity(a),l=t.BrainkeyClient.POINT_LEN,o=e._vsc_buffer_new_with_capacity(l);try{const _=e._vscf_brainkey_client_blind(this.ctxPtr,c,i,o);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i),a=e.HEAPU8.slice(r,r+s),l=e._vsc_buffer_bytes(o),u=e._vsc_buffer_len(o);return{deblindFactor:a,blindedPoint:e.HEAPU8.slice(l,l+u)}}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i),e._vsc_buffer_delete(o)}}deblind(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("password",_),f.ensureByteArray("hardenedPoint",r),f.ensureByteArray("deblindFactor",n),f.ensureByteArray("keyName",s);const c=_.length*_.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(_,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=r.length*r.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(r,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);e._vsc_data(p,u,o);const v=n.length*n.BYTES_PER_ELEMENT,y=e._malloc(v);e.HEAP8.set(n,y);const h=e._vsc_data_ctx_size(),P=e._malloc(h);e._vsc_data(P,y,v);const m=s.length*s.BYTES_PER_ELEMENT,x=e._malloc(m);e.HEAP8.set(s,x);const g=e._vsc_data_ctx_size(),k=e._malloc(g);e._vsc_data(k,x,m);const E=t.BrainkeyClient.POINT_LEN,N=e._vsc_buffer_new_with_capacity(E);try{const _=e._vscf_brainkey_client_deblind(this.ctxPtr,l,p,P,k,N);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(N),n=e._vsc_buffer_len(N);return e.HEAPU8.slice(r,r+n)}finally{e._free(a),e._free(l),e._free(u),e._free(p),e._free(y),e._free(P),e._free(x),e._free(k),e._vsc_buffer_delete(N)}}}return _};var F=(e,t)=>{class _{static get POINT_LEN(){return 65}get POINT_LEN(){return _.POINT_LEN}static get MPI_LEN(){return 32}get MPI_LEN(){return _.MPI_LEN}constructor(t){this.name="BrainkeyServer",this.ctxPtr=void 0===t?e._vscf_brainkey_server_new():t}static newAndUseCContext(t){return new _(e._vscf_brainkey_server_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_brainkey_server_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_brainkey_server_release_random(this.ctxPtr),e._vscf_brainkey_server_use_random(this.ctxPtr,_.ctxPtr)}set operationRandom(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("operationRandom",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_brainkey_server_release_operation_random(this.ctxPtr),e._vscf_brainkey_server_use_operation_random(this.ctxPtr,_.ctxPtr)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_brainkey_server_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateIdentitySecret(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=t.BrainkeyServer.MPI_LEN,r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_brainkey_server_generate_identity_secret(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}harden(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("identitySecret",_),f.ensureByteArray("blindedPoint",r);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=r.length*r.BYTES_PER_ELEMENT,l=e._malloc(i);e.HEAP8.set(r,l);const o=e._vsc_data_ctx_size(),u=e._malloc(o);e._vsc_data(u,l,i);const d=t.BrainkeyServer.POINT_LEN,p=e._vsc_buffer_new_with_capacity(d);try{const _=e._vscf_brainkey_server_harden(this.ctxPtr,a,u,p);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(p),n=e._vsc_buffer_len(p);return e.HEAPU8.slice(r,r+n)}finally{e._free(s),e._free(a),e._free(l),e._free(u),e._vsc_buffer_delete(p)}}}return _};var T=(e,t)=>{class _{static get MAX_MESSAGE_LEN(){return 30188}get MAX_MESSAGE_LEN(){return _.MAX_MESSAGE_LEN}static get MESSAGE_VERSION(){return 1}get MESSAGE_VERSION(){return _.MESSAGE_VERSION}constructor(t){this.name="GroupSessionMessage",this.ctxPtr=void 0===t?e._vscf_group_session_message_new():t}static newAndUseCContext(t){return new _(e._vscf_group_session_message_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_group_session_message_delete(this.ctxPtr),this.ctxPtr=null)}getType(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_group_session_message_get_type(this.ctxPtr),t}getSessionId(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_group_session_message_get_session_id(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}getEpoch(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_group_session_message_get_epoch(this.ctxPtr),t}serializeLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_group_session_message_serialize_len(this.ctxPtr),t}serialize(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.serializeLen(),_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_group_session_message_serialize(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}static deserialize(r){f.ensureByteArray("input",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_group_session_message_deserialize(a,l);const r=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(r),_.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}}return _};var K=(e,t)=>{class _{constructor(t){this.name="GroupSessionTicket",this.ctxPtr=void 0===t?e._vscf_group_session_ticket_new():t}static newAndUseCContext(t){return new _(e._vscf_group_session_ticket_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_group_session_ticket_delete(this.ctxPtr),this.ctxPtr=null)}set rng(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("rng",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_group_session_ticket_release_rng(this.ctxPtr),e._vscf_group_session_ticket_use_rng(this.ctxPtr,_.ctxPtr)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_group_session_ticket_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}setupTicketAsNew(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("sessionId",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);try{const _=e._vscf_group_session_ticket_setup_ticket_as_new(this.ctxPtr,c);t.FoundationError.handleStatusCode(_)}finally{e._free(n),e._free(c)}}getTicketMessage(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_group_session_ticket_get_ticket_message(this.ctxPtr),t.GroupSessionMessage.newAndUseCContext(_)}}return _};var L=(e,t)=>{class _{static get SENDER_ID_LEN(){return 32}get SENDER_ID_LEN(){return _.SENDER_ID_LEN}static get MAX_PLAIN_TEXT_LEN(){return 3e4}get MAX_PLAIN_TEXT_LEN(){return _.MAX_PLAIN_TEXT_LEN}static get MAX_EPOCHS_COUNT(){return 50}get MAX_EPOCHS_COUNT(){return _.MAX_EPOCHS_COUNT}static get SALT_SIZE(){return 32}get SALT_SIZE(){return _.SALT_SIZE}constructor(t){this.name="GroupSession",this.ctxPtr=void 0===t?e._vscf_group_session_new():t}static newAndUseCContext(t){return new _(e._vscf_group_session_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_group_session_delete(this.ctxPtr),this.ctxPtr=null)}set rng(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("rng",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_group_session_release_rng(this.ctxPtr),e._vscf_group_session_use_rng(this.ctxPtr,_.ctxPtr)}getCurrentEpoch(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_group_session_get_current_epoch(this.ctxPtr),t}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_group_session_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}getSessionId(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_group_session_get_session_id(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}addEpoch(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("message",_,t.GroupSessionMessage);const r=e._vscf_group_session_add_epoch(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("plainText",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_group_session_encrypt(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.GroupSessionMessage.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}decryptLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("message",_,t.GroupSessionMessage),r=e._vscf_group_session_decrypt_len(this.ctxPtr,_.ctxPtr),r}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("message",_,t.GroupSessionMessage),f.ensureImplementInterface("publicKey",r,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const n=this.decryptLen(_),s=e._vsc_buffer_new_with_capacity(n);try{const n=e._vscf_group_session_decrypt(this.ctxPtr,_.ctxPtr,r.ctxPtr,s);t.FoundationError.handleStatusCode(n);const c=e._vsc_buffer_bytes(s),a=e._vsc_buffer_len(s);return e.HEAPU8.slice(c,c+a)}finally{e._vsc_buffer_delete(s)}}createGroupTicket(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_group_session_create_group_ticket(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.GroupSessionTicket.newAndTakeCContext(n)}finally{e._free(r)}}}return _};var R=(e,t)=>{class _{constructor(t){this.name="MessageInfoEditor",this.ctxPtr=void 0===t?e._vscf_message_info_editor_new():t}static newAndUseCContext(t){return new _(e._vscf_message_info_editor_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_message_info_editor_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_message_info_editor_release_random(this.ctxPtr),e._vscf_message_info_editor_use_random(this.ctxPtr,_.ctxPtr)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_message_info_editor_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}unpack(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("messageInfoData",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);try{const _=e._vscf_message_info_editor_unpack(this.ctxPtr,c);t.FoundationError.handleStatusCode(_)}finally{e._free(n),e._free(c)}}unlock(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("ownerRecipientId",_),f.ensureImplementInterface("ownerPrivateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);try{const _=e._vscf_message_info_editor_unlock(this.ctxPtr,a,r.ctxPtr);t.FoundationError.handleStatusCode(_)}finally{e._free(s),e._free(a)}}addKeyRecipient(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("recipientId",_),f.ensureImplementInterface("publicKey",r,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);try{const _=e._vscf_message_info_editor_add_key_recipient(this.ctxPtr,a,r.ctxPtr);t.FoundationError.handleStatusCode(_)}finally{e._free(s),e._free(a)}}removeKeyRecipient(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("recipientId",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_message_info_editor_remove_key_recipient(this.ctxPtr,s),!!c}finally{e._free(r),e._free(s)}}removeAll(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_message_info_editor_remove_all(this.ctxPtr)}packedLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_editor_packed_len(this.ctxPtr),t}pack(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.packedLen(),_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_message_info_editor_pack(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}}return _};var S=(e,t)=>{class _{constructor(t){this.name="SignerInfo",this.ctxPtr=void 0===t?e._vscf_signer_info_new():t}static newAndUseCContext(t){return new _(e._vscf_signer_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_signer_info_delete(this.ctxPtr),this.ctxPtr=null)}signerId(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_signer_info_signer_id(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}signerAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_signer_info_signer_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}signature(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_signer_info_signature(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}}return _};var z=(e,t)=>{class _{constructor(t){this.name="SignerInfoList",this.ctxPtr=void 0===t?e._vscf_signer_info_list_new():t}static newAndUseCContext(t){return new _(e._vscf_signer_info_list_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_signer_info_list_delete(this.ctxPtr),this.ctxPtr=null)}hasItem(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_signer_info_list_has_item(this.ctxPtr),!!t}item(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_signer_info_list_item(this.ctxPtr),t.SignerInfo.newAndUseCContext(_)}hasNext(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_signer_info_list_has_next(this.ctxPtr),!!t}next(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_signer_info_list_next(this.ctxPtr),_.newAndTakeCContext(t)}hasPrev(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_signer_info_list_has_prev(this.ctxPtr),!!t}prev(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_signer_info_list_prev(this.ctxPtr),_.newAndTakeCContext(t)}clear(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_signer_info_list_clear(this.ctxPtr)}}return _};var B=(e,t)=>{class _{constructor(t){this.name="MessageInfoFooter",this.ctxPtr=void 0===t?e._vscf_message_info_footer_new():t}static newAndUseCContext(t){return new _(e._vscf_message_info_footer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_message_info_footer_delete(this.ctxPtr),this.ctxPtr=null)}hasSignerInfos(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_message_info_footer_has_signer_infos(this.ctxPtr),!!t}signerInfos(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_footer_signer_infos(this.ctxPtr),t.SignerInfoList.newAndUseCContext(_)}signerHashAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_message_info_footer_signer_hash_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}signerDigest(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_message_info_footer_signer_digest(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}}return _};var Y=(e,t)=>{class _{constructor(t){this.name="SignedDataInfo",this.ctxPtr=void 0===t?e._vscf_signed_data_info_new():t}static newAndUseCContext(t){return new _(e._vscf_signed_data_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_signed_data_info_delete(this.ctxPtr),this.ctxPtr=null)}hashAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_signed_data_info_hash_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var U=(e,t)=>{class _{constructor(t){this.name="FooterInfo",this.ctxPtr=void 0===t?e._vscf_footer_info_new():t}static newAndUseCContext(t){return new _(e._vscf_footer_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_footer_info_delete(this.ctxPtr),this.ctxPtr=null)}hasSignedDataInfo(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_footer_info_has_signed_data_info(this.ctxPtr),!!t}signedDataInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_footer_info_signed_data_info(this.ctxPtr),t.SignedDataInfo.newAndUseCContext(_)}setDataSize(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataSize",t),e._vscf_footer_info_set_data_size(this.ctxPtr,t)}dataSize(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_footer_info_data_size(this.ctxPtr),t}}return _};var H=(e,t)=>{class _{constructor(t){this.name="KeyInfo",this.ctxPtr=void 0===t?e._vscf_key_info_new():t}static newAndUseCContext(t){return new _(e._vscf_key_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_info_delete(this.ctxPtr),this.ctxPtr=null)}static newWithAlgInfo(r){let n;return f.ensureImplementInterface("algInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),n=e._vscf_key_info_new_with_alg_info(r.ctxPtr),_.newAndTakeCContext(n)}isCompound(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_compound(this.ctxPtr),!!t}isHybrid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_hybrid(this.ctxPtr),!!t}isCompoundHybrid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_compound_hybrid(this.ctxPtr),!!t}isCompoundHybridCipher(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_compound_hybrid_cipher(this.ctxPtr),!!t}isCompoundHybridSigner(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_compound_hybrid_signer(this.ctxPtr),!!t}isHybridPostQuantum(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_hybrid_post_quantum(this.ctxPtr),!!t}isHybridPostQuantumCipher(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_hybrid_post_quantum_cipher(this.ctxPtr),!!t}isHybridPostQuantumSigner(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_is_hybrid_post_quantum_signer(this.ctxPtr),!!t}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_alg_id(this.ctxPtr),t}compoundCipherAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_compound_cipher_alg_id(this.ctxPtr),t}compoundSignerAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_compound_signer_alg_id(this.ctxPtr),t}hybridFirstKeyAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_hybrid_first_key_alg_id(this.ctxPtr),t}hybridSecondKeyAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_hybrid_second_key_alg_id(this.ctxPtr),t}compoundHybridCipherFirstKeyAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_compound_hybrid_cipher_first_key_alg_id(this.ctxPtr),t}compoundHybridCipherSecondKeyAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_compound_hybrid_cipher_second_key_alg_id(this.ctxPtr),t}compoundHybridSignerFirstKeyAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_compound_hybrid_signer_first_key_alg_id(this.ctxPtr),t}compoundHybridSignerSecondKeyAlgId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_key_info_compound_hybrid_signer_second_key_alg_id(this.ctxPtr),t}}return _};var M=(e,t)=>{class _{static get DEFAULT_FRAME_MIN(){return 32}get DEFAULT_FRAME_MIN(){return _.DEFAULT_FRAME_MIN}static get DEFAULT_FRAME(){return 160}get DEFAULT_FRAME(){return _.DEFAULT_FRAME}static get DEFAULT_FRAME_MAX(){return 256}get DEFAULT_FRAME_MAX(){return _.DEFAULT_FRAME_MAX}constructor(t){this.name="PaddingParams",this.ctxPtr=void 0===t?e._vscf_padding_params_new():t}static newAndUseCContext(t){return new _(e._vscf_padding_params_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_padding_params_delete(this.ctxPtr),this.ctxPtr=null)}static newWithConstraints(t,r){let n;return f.ensureNumber("frame",t),f.ensureNumber("frameMax",r),n=e._vscf_padding_params_new_with_constraints(t,r),_.newAndTakeCContext(n)}frame(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_padding_params_frame(this.ctxPtr),t}frameMax(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_padding_params_frame_max(this.ctxPtr),t}}return _};var D=(e,t)=>{class _{static get DIGEST_LEN(){return 28}get DIGEST_LEN(){return _.DIGEST_LEN}static get BLOCK_LEN(){return 64}get BLOCK_LEN(){return _.BLOCK_LEN}constructor(t){this.name="Sha224",this.ctxPtr=void 0===t?e._vscf_sha224_new():t}static newAndUseCContext(t){return new _(e._vscf_sha224_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_sha224_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_sha224_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_sha224_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_sha224_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}hash(t){f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=this.DIGEST_LEN,a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_sha224_hash(s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}start(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_sha224_start(this.ctxPtr)}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_sha224_update(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.DIGEST_LEN,_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_sha224_finish(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}}return _};var O=(e,t)=>{class _{static get DIGEST_LEN(){return 32}get DIGEST_LEN(){return _.DIGEST_LEN}static get BLOCK_LEN(){return 64}get BLOCK_LEN(){return _.BLOCK_LEN}constructor(t){this.name="Sha256",this.ctxPtr=void 0===t?e._vscf_sha256_new():t}static newAndUseCContext(t){return new _(e._vscf_sha256_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_sha256_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_sha256_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_sha256_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_sha256_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}hash(t){f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=this.DIGEST_LEN,a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_sha256_hash(s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}start(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_sha256_start(this.ctxPtr)}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_sha256_update(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.DIGEST_LEN,_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_sha256_finish(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}}return _};var V=(e,t)=>{class _{static get DIGEST_LEN(){return 48}get DIGEST_LEN(){return _.DIGEST_LEN}static get BLOCK_LEN(){return 128}get BLOCK_LEN(){return _.BLOCK_LEN}constructor(t){this.name="Sha384",this.ctxPtr=void 0===t?e._vscf_sha384_new():t}static newAndUseCContext(t){return new _(e._vscf_sha384_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_sha384_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_sha384_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_sha384_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_sha384_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}hash(t){f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=this.DIGEST_LEN,a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_sha384_hash(s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}start(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_sha384_start(this.ctxPtr)}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_sha384_update(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.DIGEST_LEN,_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_sha384_finish(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}}return _};var G=(e,t)=>{class _{static get DIGEST_LEN(){return 64}get DIGEST_LEN(){return _.DIGEST_LEN}static get BLOCK_LEN(){return 128}get BLOCK_LEN(){return _.BLOCK_LEN}constructor(t){this.name="Sha512",this.ctxPtr=void 0===t?e._vscf_sha512_new():t}static newAndUseCContext(t){return new _(e._vscf_sha512_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_sha512_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_sha512_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_sha512_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_sha512_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}hash(t){f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=this.DIGEST_LEN,a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_sha512_hash(s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}start(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_sha512_start(this.ctxPtr)}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_sha512_update(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.DIGEST_LEN,_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_sha512_finish(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}}return _};var q=(e,t)=>{class _{static get NONCE_LEN(){return 12}get NONCE_LEN(){return _.NONCE_LEN}static get KEY_LEN(){return 32}get KEY_LEN(){return _.KEY_LEN}static get KEY_BITLEN(){return 256}get KEY_BITLEN(){return _.KEY_BITLEN}static get BLOCK_LEN(){return 16}get BLOCK_LEN(){return _.BLOCK_LEN}static get AUTH_TAG_LEN(){return 16}get AUTH_TAG_LEN(){return _.AUTH_TAG_LEN}constructor(t){this.name="Aes256Gcm",this.ctxPtr=void 0===t?e._vscf_aes256_gcm_new():t}static newAndUseCContext(t){return new _(e._vscf_aes256_gcm_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_aes256_gcm_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_aes256_gcm_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_aes256_gcm_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_aes256_gcm_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}encrypt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.encryptedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_aes256_gcm_encrypt(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}encryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_encrypted_len(this.ctxPtr,t),_}preciseEncryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_precise_encrypted_len(this.ctxPtr,t),_}decrypt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.decryptedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_aes256_gcm_decrypt(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}decryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_decrypted_len(this.ctxPtr,t),_}setNonce(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("nonce",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_aes256_gcm_set_nonce(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}setKey(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_aes256_gcm_set_key(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}state(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_aes256_gcm_state(this.ctxPtr),t}startEncryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_aes256_gcm_start_encryption(this.ctxPtr)}startDecryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_aes256_gcm_start_decryption(this.ctxPtr)}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=this.outLen(t.length),a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_aes256_gcm_update(this.ctxPtr,s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}outLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_out_len(this.ctxPtr,t),_}encryptedOutLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_encrypted_out_len(this.ctxPtr,t),_}decryptedOutLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_decrypted_out_len(this.ctxPtr,t),_}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.outLen(0),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_aes256_gcm_finish(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}authEncrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_),f.ensureByteArray("authData",r);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=r.length*r.BYTES_PER_ELEMENT,l=e._malloc(i);e.HEAP8.set(r,l);const o=e._vsc_data_ctx_size(),u=e._malloc(o);e._vsc_data(u,l,i);const d=this.authEncryptedLen(_.length),p=e._vsc_buffer_new_with_capacity(d),v=this.AUTH_TAG_LEN,y=e._vsc_buffer_new_with_capacity(v);try{const _=e._vscf_aes256_gcm_auth_encrypt(this.ctxPtr,a,u,p,y);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(p),n=e._vsc_buffer_len(p),c=e.HEAPU8.slice(r,r+n),i=e._vsc_buffer_bytes(y),o=e._vsc_buffer_len(y);return{out:c,tag:e.HEAPU8.slice(i,i+o)}}finally{e._free(s),e._free(a),e._free(l),e._free(u),e._vsc_buffer_delete(p),e._vsc_buffer_delete(y)}}authEncryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_auth_encrypted_len(this.ctxPtr,t),_}authDecrypt(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_),f.ensureByteArray("authData",r),f.ensureByteArray("tag",n);const s=_.length*_.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(_,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=r.length*r.BYTES_PER_ELEMENT,o=e._malloc(l);e.HEAP8.set(r,o);const u=e._vsc_data_ctx_size(),d=e._malloc(u);e._vsc_data(d,o,l);const p=n.length*n.BYTES_PER_ELEMENT,v=e._malloc(p);e.HEAP8.set(n,v);const y=e._vsc_data_ctx_size(),h=e._malloc(y);e._vsc_data(h,v,p);const P=this.authDecryptedLen(_.length),m=e._vsc_buffer_new_with_capacity(P);try{const _=e._vscf_aes256_gcm_auth_decrypt(this.ctxPtr,i,d,h,m);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(m),n=e._vsc_buffer_len(m);return e.HEAPU8.slice(r,r+n)}finally{e._free(c),e._free(i),e._free(o),e._free(d),e._free(v),e._free(h),e._vsc_buffer_delete(m)}}authDecryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_gcm_auth_decrypted_len(this.ctxPtr,t),_}setAuthData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("authData",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_aes256_gcm_set_auth_data(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}finishAuthEncryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.outLen(0),r=e._vsc_buffer_new_with_capacity(_),n=this.AUTH_TAG_LEN,s=e._vsc_buffer_new_with_capacity(n);try{const _=e._vscf_aes256_gcm_finish_auth_encryption(this.ctxPtr,r,s);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),c=e._vsc_buffer_len(r),a=e.HEAPU8.slice(n,n+c),i=e._vsc_buffer_bytes(s),l=e._vsc_buffer_len(s);return{out:a,tag:e.HEAPU8.slice(i,i+l)}}finally{e._vsc_buffer_delete(r),e._vsc_buffer_delete(s)}}finishAuthDecryption(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("tag",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.outLen(0),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_aes256_gcm_finish_auth_decryption(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}}return _};var X=(e,t)=>{class _{static get NONCE_LEN(){return 16}get NONCE_LEN(){return _.NONCE_LEN}static get KEY_LEN(){return 32}get KEY_LEN(){return _.KEY_LEN}static get KEY_BITLEN(){return 256}get KEY_BITLEN(){return _.KEY_BITLEN}static get BLOCK_LEN(){return 16}get BLOCK_LEN(){return _.BLOCK_LEN}constructor(t){this.name="Aes256Cbc",this.ctxPtr=void 0===t?e._vscf_aes256_cbc_new():t}static newAndUseCContext(t){return new _(e._vscf_aes256_cbc_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_aes256_cbc_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_aes256_cbc_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_aes256_cbc_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_aes256_cbc_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}encrypt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.encryptedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_aes256_cbc_encrypt(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}encryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_cbc_encrypted_len(this.ctxPtr,t),_}preciseEncryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_cbc_precise_encrypted_len(this.ctxPtr,t),_}decrypt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.decryptedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_aes256_cbc_decrypt(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}decryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_cbc_decrypted_len(this.ctxPtr,t),_}setNonce(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("nonce",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_aes256_cbc_set_nonce(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}setKey(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_aes256_cbc_set_key(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}state(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_aes256_cbc_state(this.ctxPtr),t}startEncryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_aes256_cbc_start_encryption(this.ctxPtr)}startDecryption(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_aes256_cbc_start_decryption(this.ctxPtr)}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=this.outLen(t.length),a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_aes256_cbc_update(this.ctxPtr,s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}outLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_cbc_out_len(this.ctxPtr,t),_}encryptedOutLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_cbc_encrypted_out_len(this.ctxPtr,t),_}decryptedOutLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_aes256_cbc_decrypted_out_len(this.ctxPtr,t),_}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.outLen(0),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_aes256_cbc_finish(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}}return _};var j=(e,t)=>{class _{constructor(t){this.name="Asn1rd",this.ctxPtr=void 0===t?e._vscf_asn1rd_new():t}static newAndUseCContext(t){return new _(e._vscf_asn1rd_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_asn1rd_delete(this.ctxPtr),this.ctxPtr=null)}reset(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_asn1rd_reset(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}leftLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_left_len(this.ctxPtr),t}hasError(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_has_error(this.ctxPtr),!!t}status(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_asn1rd_status(this.ctxPtr);t.FoundationError.handleStatusCode(_)}getTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_get_tag(this.ctxPtr),t}getLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_get_len(this.ctxPtr),t}getDataLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_get_data_len(this.ctxPtr),t}readTag(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("tag",t),_=e._vscf_asn1rd_read_tag(this.ctxPtr,t),_}readContextTag(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("tag",t),_=e._vscf_asn1rd_read_context_tag(this.ctxPtr,t),_}readInt(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_int(this.ctxPtr),t}readInt8(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_int8(this.ctxPtr),t}readInt16(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_int16(this.ctxPtr),t}readInt32(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_int32(this.ctxPtr),t}readInt64(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_int64(this.ctxPtr),t}readUint(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_uint(this.ctxPtr),t}readUint8(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_uint8(this.ctxPtr),t}readUint16(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_uint16(this.ctxPtr),t}readUint32(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_uint32(this.ctxPtr),t}readUint64(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_uint64(this.ctxPtr),t}readBool(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_bool(this.ctxPtr),!!t}readNull(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_asn1rd_read_null(this.ctxPtr)}readNullOptional(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_asn1rd_read_null_optional(this.ctxPtr)}readOctetStr(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_asn1rd_read_octet_str(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}readBitstringAsOctetStr(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_asn1rd_read_bitstring_as_octet_str(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}readUtf8Str(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_asn1rd_read_utf8_str(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}readOid(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_asn1rd_read_oid(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}readData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",t);const _=e._vsc_data_ctx_size(),r=e._malloc(_);try{e._vscf_asn1rd_read_data(r,this.ctxPtr,t);const _=e._vsc_data_len(r),n=e._vsc_data_bytes(r);return e.HEAPU8.slice(n,n+_)}finally{e._free(r)}}readSequence(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_sequence(this.ctxPtr),t}readSet(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1rd_read_set(this.ctxPtr),t}}return _};var W=(e,t)=>{class _{constructor(t){this.name="Asn1wr",this.ctxPtr=void 0===t?e._vscf_asn1wr_new():t}static newAndUseCContext(t){return new _(e._vscf_asn1wr_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_asn1wr_delete(this.ctxPtr),this.ctxPtr=null)}reset(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("out",t),f.ensureNumber("outLen",_),e._vscf_asn1wr_reset(this.ctxPtr,t,_)}finish(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureBoolean("doNotAdjust",t),_=e._vscf_asn1wr_finish(this.ctxPtr,t),_}bytes(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1wr_bytes(this.ctxPtr),t}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1wr_len(this.ctxPtr),t}writtenLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1wr_written_len(this.ctxPtr),t}unwrittenLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1wr_unwritten_len(this.ctxPtr),t}hasError(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1wr_has_error(this.ctxPtr),!!t}status(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_asn1wr_status(this.ctxPtr);t.FoundationError.handleStatusCode(_)}reserve(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",t),_=e._vscf_asn1wr_reserve(this.ctxPtr,t),_}writeTag(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("tag",t),_=e._vscf_asn1wr_write_tag(this.ctxPtr,t),_}writeContextTag(t,_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("tag",t),f.ensureNumber("len",_),r=e._vscf_asn1wr_write_context_tag(this.ctxPtr,t,_),r}writeLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",t),_=e._vscf_asn1wr_write_len(this.ctxPtr,t),_}writeInt(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_int(this.ctxPtr,t),_}writeInt8(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_int8(this.ctxPtr,t),_}writeInt16(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_int16(this.ctxPtr,t),_}writeInt32(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_int32(this.ctxPtr,t),_}writeInt64(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_int64(this.ctxPtr,t),_}writeUint(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_uint(this.ctxPtr,t),_}writeUint8(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_uint8(this.ctxPtr,t),_}writeUint16(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_uint16(this.ctxPtr,t),_}writeUint32(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_uint32(this.ctxPtr,t),_}writeUint64(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("value",t),_=e._vscf_asn1wr_write_uint64(this.ctxPtr,t),_}writeBool(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureBoolean("value",t),_=e._vscf_asn1wr_write_bool(this.ctxPtr,t),_}writeNull(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_asn1wr_write_null(this.ctxPtr),t}writeOctetStr(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("value",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_asn1wr_write_octet_str(this.ctxPtr,s),c}finally{e._free(r),e._free(s)}}writeOctetStrAsBitstring(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("value",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_asn1wr_write_octet_str_as_bitstring(this.ctxPtr,s),c}finally{e._free(r),e._free(s)}}writeData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_asn1wr_write_data(this.ctxPtr,s),c}finally{e._free(r),e._free(s)}}writeUtf8Str(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("value",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_asn1wr_write_utf8_str(this.ctxPtr,s),c}finally{e._free(r),e._free(s)}}writeOid(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("value",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_asn1wr_write_oid(this.ctxPtr,s),c}finally{e._free(r),e._free(s)}}writeSequence(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",t),_=e._vscf_asn1wr_write_sequence(this.ctxPtr,t),_}writeSet(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",t),_=e._vscf_asn1wr_write_set(this.ctxPtr,t),_}}return _};var Z=(e,t)=>{class _{constructor(t){this.name="RsaPublicKey",this.ctxPtr=void 0===t?e._vscf_rsa_public_key_new():t}static newAndUseCContext(t){return new _(e._vscf_rsa_public_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_rsa_public_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_public_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_rsa_public_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_public_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_public_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_public_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_public_key_is_valid(this.ctxPtr),!!t}keyExponent(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_public_key_key_exponent(this.ctxPtr),t}}return _};var $=(e,t)=>{class _{constructor(t){this.name="RsaPrivateKey",this.ctxPtr=void 0===t?e._vscf_rsa_private_key_new():t}static newAndUseCContext(t){return new _(e._vscf_rsa_private_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_rsa_private_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_private_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_rsa_private_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_private_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_private_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_private_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_rsa_private_key_is_valid(this.ctxPtr),!!t}extractPublicKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_rsa_private_key_extract_public_key(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}}return _};var Q=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="Rsa",this.ctxPtr=void 0===t?e._vscf_rsa_new():t}static newAndUseCContext(t){return new _(e._vscf_rsa_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_rsa_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_rsa_release_random(this.ctxPtr),e._vscf_rsa_use_random(this.ctxPtr,_.ctxPtr)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_rsa_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_rsa_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_rsa_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_rsa_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_rsa_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_rsa_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_rsa_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_rsa_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_rsa_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_rsa_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_rsa_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canEncrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_rsa_can_encrypt(this.ctxPtr,_.ctxPtr,r),!!n}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_rsa_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_rsa_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canDecrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_rsa_can_decrypt(this.ctxPtr,_.ctxPtr,r),!!n}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_rsa_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_rsa_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canSign(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_rsa_can_sign(this.ctxPtr,_.ctxPtr),!!r}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_rsa_signature_len(this.ctxPtr,_.ctxPtr),r}signHash(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=this.signatureLen(_),o=e._vsc_buffer_new_with_capacity(l);try{const n=e._vscf_rsa_sign_hash(this.ctxPtr,_.ctxPtr,r,i,o);t.FoundationError.handleStatusCode(n);const s=e._vsc_buffer_bytes(o),a=e._vsc_buffer_len(o);return e.HEAPU8.slice(s,s+a)}finally{e._free(c),e._free(i),e._vsc_buffer_delete(o)}}canVerify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_rsa_can_verify(this.ctxPtr,_.ctxPtr),!!r}verifyHash(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n),f.ensureByteArray("signature",s);const c=n.length*n.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(n,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_rsa_verify_hash(this.ctxPtr,_.ctxPtr,r,l,p),!!v}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_rsa_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("bitlen",_);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_rsa_generate_key(this.ctxPtr,_,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}}return _};var J=(e,t)=>{class _{constructor(t){this.name="EccPublicKey",this.ctxPtr=void 0===t?e._vscf_ecc_public_key_new():t}static newAndUseCContext(t){return new _(e._vscf_ecc_public_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ecc_public_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_public_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_ecc_public_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_public_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_public_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_public_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_public_key_is_valid(this.ctxPtr),!!t}}return _};var ee=(e,t)=>{class _{constructor(t){this.name="EccPrivateKey",this.ctxPtr=void 0===t?e._vscf_ecc_private_key_new():t}static newAndUseCContext(t){return new _(e._vscf_ecc_private_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ecc_private_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_private_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_ecc_private_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_private_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_private_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_private_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_private_key_is_valid(this.ctxPtr),!!t}extractPublicKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_ecc_private_key_extract_public_key(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}}return _};var te=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="Ecc",this.ctxPtr=void 0===t?e._vscf_ecc_new():t}static newAndUseCContext(t){return new _(e._vscf_ecc_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ecc_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_ecc_release_random(this.ctxPtr),e._vscf_ecc_use_random(this.ctxPtr,_.ctxPtr)}set ecies(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("ecies",_,t.Ecies),e._vscf_ecc_release_ecies(this.ctxPtr),e._vscf_ecc_use_ecies(this.ctxPtr,_.ctxPtr)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ecc_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ecc_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_ecc_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ecc_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_ecc_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_ecc_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ecc_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_ecc_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ecc_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_ecc_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_ecc_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canEncrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ecc_can_encrypt(this.ctxPtr,_.ctxPtr,r),!!n}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ecc_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_ecc_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canDecrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ecc_can_decrypt(this.ctxPtr,_.ctxPtr,r),!!n}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ecc_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_ecc_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canSign(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_ecc_can_sign(this.ctxPtr,_.ctxPtr),!!r}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_ecc_signature_len(this.ctxPtr,_.ctxPtr),r}signHash(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=this.signatureLen(_),o=e._vsc_buffer_new_with_capacity(l);try{const n=e._vscf_ecc_sign_hash(this.ctxPtr,_.ctxPtr,r,i,o);t.FoundationError.handleStatusCode(n);const s=e._vsc_buffer_bytes(o),a=e._vsc_buffer_len(o);return e.HEAPU8.slice(s,s+a)}finally{e._free(c),e._free(i),e._vsc_buffer_delete(o)}}canVerify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_ecc_can_verify(this.ctxPtr,_.ctxPtr),!!r}verifyHash(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n),f.ensureByteArray("signature",s);const c=n.length*n.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(n,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_ecc_verify_hash(this.ctxPtr,_.ctxPtr,r,l,p),!!v}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}computeSharedKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=this.sharedKeyLen(r),s=e._vsc_buffer_new_with_capacity(n);try{const n=e._vscf_ecc_compute_shared_key(this.ctxPtr,_.ctxPtr,r.ctxPtr,s);t.FoundationError.handleStatusCode(n);const c=e._vsc_buffer_bytes(s),a=e._vsc_buffer_len(s);return e.HEAPU8.slice(c,c+a)}finally{e._vsc_buffer_delete(s)}}sharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_ecc_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemSharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_ecc_kem_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulatedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_ecc_kem_encapsulated_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulate(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.kemSharedKeyLen(_),n=e._vsc_buffer_new_with_capacity(r),s=this.kemEncapsulatedKeyLen(_),c=e._vsc_buffer_new_with_capacity(s);try{const r=e._vscf_ecc_kem_encapsulate(this.ctxPtr,_.ctxPtr,n,c);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),a=e._vsc_buffer_len(n),i=e.HEAPU8.slice(s,s+a),l=e._vsc_buffer_bytes(c),o=e._vsc_buffer_len(c);return{sharedKey:i,encapsulatedKey:e.HEAPU8.slice(l,l+o)}}finally{e._vsc_buffer_delete(n),e._vsc_buffer_delete(c)}}kemDecapsulate(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("encapsulatedKey",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.kemSharedKeyLen(r),l=e._vsc_buffer_new_with_capacity(i);try{const _=e._vscf_ecc_kem_decapsulate(this.ctxPtr,a,r.ctxPtr,l);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_ecc_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("algId",_);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ecc_generate_key(this.ctxPtr,_,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}}return _};var _e=(e,t)=>{class _{static get SOURCES_MAX(){return 15}get SOURCES_MAX(){return _.SOURCES_MAX}constructor(t){this.name="EntropyAccumulator",this.ctxPtr=void 0===t?e._vscf_entropy_accumulator_new():t}static newAndUseCContext(t){return new _(e._vscf_entropy_accumulator_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_entropy_accumulator_delete(this.ctxPtr),this.ctxPtr=null)}isStrong(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_entropy_accumulator_is_strong(this.ctxPtr),!!t}gather(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",_);const r=_,n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_entropy_accumulator_gather(this.ctxPtr,_,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_entropy_accumulator_setup_defaults(this.ctxPtr)}addSource(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("source",_,"Foundation.EntropySource",t.FoundationInterfaceTag.ENTROPY_SOURCE,t.FoundationInterface),f.ensureNumber("threshold",r),e._vscf_entropy_accumulator_add_source(this.ctxPtr,_.ctxPtr,r)}}return _};var re=(e,t)=>{class _{static get RESEED_INTERVAL(){return 1e4}get RESEED_INTERVAL(){return _.RESEED_INTERVAL}static get ENTROPY_LEN(){return 48}get ENTROPY_LEN(){return _.ENTROPY_LEN}constructor(t){this.name="CtrDrbg",this.ctxPtr=void 0===t?e._vscf_ctr_drbg_new():t}static newAndUseCContext(t){return new _(e._vscf_ctr_drbg_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ctr_drbg_delete(this.ctxPtr),this.ctxPtr=null)}set entropySource(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("entropySource",_,"Foundation.EntropySource",t.FoundationInterfaceTag.ENTROPY_SOURCE,t.FoundationInterface),e._vscf_ctr_drbg_release_entropy_source(this.ctxPtr);const r=e._vscf_ctr_drbg_use_entropy_source(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",_);const r=_,n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_ctr_drbg_random(this.ctxPtr,_,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}reseed(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_ctr_drbg_reseed(this.ctxPtr);t.FoundationError.handleStatusCode(_)}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_ctr_drbg_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}enablePredictionResistance(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_ctr_drbg_enable_prediction_resistance(this.ctxPtr)}setReseedInterval(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("interval",t),e._vscf_ctr_drbg_set_reseed_interval(this.ctxPtr,t)}setEntropyLen(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",t),e._vscf_ctr_drbg_set_entropy_len(this.ctxPtr,t)}}return _};var ne=(e,t)=>{class _{constructor(t){this.name="Hmac",this.ctxPtr=void 0===t?e._vscf_hmac_new():t}static newAndUseCContext(t){return new _(e._vscf_hmac_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hmac_delete(this.ctxPtr),this.ctxPtr=null)}set hash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_hmac_release_hash(this.ctxPtr),e._vscf_hmac_use_hash(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hmac_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hmac_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_hmac_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}digestLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hmac_digest_len(this.ctxPtr),t}mac(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t),f.ensureByteArray("data",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_.length*_.BYTES_PER_ELEMENT,i=e._malloc(a);e.HEAP8.set(_,i);const l=e._vsc_data_ctx_size(),o=e._malloc(l);e._vsc_data(o,i,a);const u=this.digestLen(),d=e._vsc_buffer_new_with_capacity(u);try{e._vscf_hmac_mac(this.ctxPtr,c,o,d);const t=e._vsc_buffer_bytes(d),_=e._vsc_buffer_len(d);return e.HEAPU8.slice(t,t+_)}finally{e._free(n),e._free(c),e._free(i),e._free(o),e._vsc_buffer_delete(d)}}start(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("key",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_hmac_start(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}update(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_hmac_update(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}finish(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=this.digestLen(),_=e._vsc_buffer_new_with_capacity(t);try{e._vscf_hmac_finish(this.ctxPtr,_);const t=e._vsc_buffer_bytes(_),r=e._vsc_buffer_len(_);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(_)}}reset(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_hmac_reset(this.ctxPtr)}}return _};var se=(e,t)=>{class _{constructor(t){this.name="Hkdf",this.ctxPtr=void 0===t?e._vscf_hkdf_new():t}static newAndUseCContext(t){return new _(e._vscf_hkdf_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hkdf_delete(this.ctxPtr),this.ctxPtr=null)}set hash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_hkdf_release_hash(this.ctxPtr),e._vscf_hkdf_use_hash(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hkdf_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hkdf_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_hkdf_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}derive(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t),f.ensureNumber("keyLen",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_,i=e._vsc_buffer_new_with_capacity(a);try{e._vscf_hkdf_derive(this.ctxPtr,c,_,i);const t=e._vsc_buffer_bytes(i),r=e._vsc_buffer_len(i);return e.HEAPU8.slice(t,t+r)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}reset(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("salt",t),f.ensureNumber("iterationCount",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);try{e._vscf_hkdf_reset(this.ctxPtr,c,_)}finally{e._free(n),e._free(c)}}setInfo(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("info",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_hkdf_set_info(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}}return _};var ce=(e,t)=>{class _{constructor(t){this.name="Kdf1",this.ctxPtr=void 0===t?e._vscf_kdf1_new():t}static newAndUseCContext(t){return new _(e._vscf_kdf1_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_kdf1_delete(this.ctxPtr),this.ctxPtr=null)}set hash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_kdf1_release_hash(this.ctxPtr),e._vscf_kdf1_use_hash(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_kdf1_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_kdf1_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_kdf1_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}derive(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t),f.ensureNumber("keyLen",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_,i=e._vsc_buffer_new_with_capacity(a);try{e._vscf_kdf1_derive(this.ctxPtr,c,_,i);const t=e._vsc_buffer_bytes(i),r=e._vsc_buffer_len(i);return e.HEAPU8.slice(t,t+r)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}}return _};var ae=(e,t)=>{class _{constructor(t){this.name="Kdf2",this.ctxPtr=void 0===t?e._vscf_kdf2_new():t}static newAndUseCContext(t){return new _(e._vscf_kdf2_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_kdf2_delete(this.ctxPtr),this.ctxPtr=null)}set hash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_kdf2_release_hash(this.ctxPtr),e._vscf_kdf2_use_hash(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_kdf2_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_kdf2_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_kdf2_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}derive(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t),f.ensureNumber("keyLen",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_,i=e._vsc_buffer_new_with_capacity(a);try{e._vscf_kdf2_derive(this.ctxPtr,c,_,i);const t=e._vsc_buffer_bytes(i),r=e._vsc_buffer_len(i);return e.HEAPU8.slice(t,t+r)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}}return _};var ie=(e,t)=>{class _{constructor(t){this.name="FakeRandom",this.ctxPtr=void 0===t?e._vscf_fake_random_new():t}static newAndUseCContext(t){return new _(e._vscf_fake_random_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_fake_random_delete(this.ctxPtr),this.ctxPtr=null)}random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",_);const r=_,n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_fake_random_random(this.ctxPtr,_,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}reseed(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_fake_random_reseed(this.ctxPtr);t.FoundationError.handleStatusCode(_)}isStrong(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_fake_random_is_strong(this.ctxPtr),!!t}gather(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",_);const r=_,n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_fake_random_gather(this.ctxPtr,_,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}setupSourceByte(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("byteSource",t),e._vscf_fake_random_setup_source_byte(this.ctxPtr,t)}setupSourceData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("dataSource",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_fake_random_setup_source_data(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}}return _};var le=(e,t)=>{class _{constructor(t){this.name="Pkcs5Pbkdf2",this.ctxPtr=void 0===t?e._vscf_pkcs5_pbkdf2_new():t}static newAndUseCContext(t){return new _(e._vscf_pkcs5_pbkdf2_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_pkcs5_pbkdf2_delete(this.ctxPtr),this.ctxPtr=null)}set hmac(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hmac",_,"Foundation.Mac",t.FoundationInterfaceTag.MAC,t.FoundationInterface),e._vscf_pkcs5_pbkdf2_release_hmac(this.ctxPtr),e._vscf_pkcs5_pbkdf2_use_hmac(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_pkcs5_pbkdf2_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_pkcs5_pbkdf2_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_pkcs5_pbkdf2_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}derive(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t),f.ensureNumber("keyLen",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=_,i=e._vsc_buffer_new_with_capacity(a);try{e._vscf_pkcs5_pbkdf2_derive(this.ctxPtr,c,_,i);const t=e._vsc_buffer_bytes(i),r=e._vsc_buffer_len(i);return e.HEAPU8.slice(t,t+r)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}reset(t,_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("salt",t),f.ensureNumber("iterationCount",_);const r=t.length*t.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(t,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);try{e._vscf_pkcs5_pbkdf2_reset(this.ctxPtr,c,_)}finally{e._free(n),e._free(c)}}setInfo(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("info",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_pkcs5_pbkdf2_set_info(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_pkcs5_pbkdf2_setup_defaults(this.ctxPtr)}}return _};var oe=(e,t)=>{class _{constructor(t){this.name="Pkcs5Pbes2",this.ctxPtr=void 0===t?e._vscf_pkcs5_pbes2_new():t}static newAndUseCContext(t){return new _(e._vscf_pkcs5_pbes2_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_pkcs5_pbes2_delete(this.ctxPtr),this.ctxPtr=null)}set kdf(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("kdf",_,"Foundation.SaltedKdf",t.FoundationInterfaceTag.SALTED_KDF,t.FoundationInterface),e._vscf_pkcs5_pbes2_release_kdf(this.ctxPtr),e._vscf_pkcs5_pbes2_use_kdf(this.ctxPtr,_.ctxPtr)}set cipher(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("cipher",_,"Foundation.Cipher",t.FoundationInterfaceTag.CIPHER,t.FoundationInterface),e._vscf_pkcs5_pbes2_release_cipher(this.ctxPtr),e._vscf_pkcs5_pbes2_use_cipher(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_pkcs5_pbes2_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_pkcs5_pbes2_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_pkcs5_pbes2_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}encrypt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.encryptedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_pkcs5_pbes2_encrypt(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}encryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_pkcs5_pbes2_encrypted_len(this.ctxPtr,t),_}preciseEncryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_pkcs5_pbes2_precise_encrypted_len(this.ctxPtr,t),_}decrypt(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=this.decryptedLen(_.length),i=e._vsc_buffer_new_with_capacity(a);try{const _=e._vscf_pkcs5_pbes2_decrypt(this.ctxPtr,c,i);t.FoundationError.handleStatusCode(_);const r=e._vsc_buffer_bytes(i),s=e._vsc_buffer_len(i);return e.HEAPU8.slice(r,r+s)}finally{e._free(n),e._free(c),e._vsc_buffer_delete(i)}}decryptedLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_pkcs5_pbes2_decrypted_len(this.ctxPtr,t),_}reset(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("pwd",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_pkcs5_pbes2_reset(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}}return _};var ue=(e,t)=>{class _{constructor(t){this.name="SeedEntropySource",this.ctxPtr=void 0===t?e._vscf_seed_entropy_source_new():t}static newAndUseCContext(t){return new _(e._vscf_seed_entropy_source_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_seed_entropy_source_delete(this.ctxPtr),this.ctxPtr=null)}isStrong(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_seed_entropy_source_is_strong(this.ctxPtr),!!t}gather(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("len",_);const r=_,n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_seed_entropy_source_gather(this.ctxPtr,_,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}resetSeed(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("seed",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_seed_entropy_source_reset_seed(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}}return _};var fe=(e,t)=>{class _{static get KEY_MATERIAL_LEN_MIN(){return 32}get KEY_MATERIAL_LEN_MIN(){return _.KEY_MATERIAL_LEN_MIN}static get KEY_MATERIAL_LEN_MAX(){return 512}get KEY_MATERIAL_LEN_MAX(){return _.KEY_MATERIAL_LEN_MAX}constructor(t){this.name="KeyMaterialRng",this.ctxPtr=void 0===t?e._vscf_key_material_rng_new():t}static newAndUseCContext(t){return new _(e._vscf_key_material_rng_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_material_rng_delete(this.ctxPtr),this.ctxPtr=null)}random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",_);const r=_,n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_key_material_rng_random(this.ctxPtr,_,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}reseed(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_key_material_rng_reseed(this.ctxPtr);t.FoundationError.handleStatusCode(_)}resetKeyMaterial(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyMaterial",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);try{e._vscf_key_material_rng_reset_key_material(this.ctxPtr,s)}finally{e._free(r),e._free(s)}}}return _};var de=(e,t)=>{class _{constructor(t){this.name="RawPublicKey",this.ctxPtr=void 0===t?e._vscf_raw_public_key_new():t}static newAndUseCContext(t){return new _(e._vscf_raw_public_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_raw_public_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_public_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_raw_public_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_public_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_public_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_public_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_public_key_is_valid(this.ctxPtr),!!t}data(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_raw_public_key_data(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}}return _};var pe=(e,t)=>{class _{constructor(t){this.name="RawPrivateKey",this.ctxPtr=void 0===t?e._vscf_raw_private_key_new():t}static newAndUseCContext(t){return new _(e._vscf_raw_private_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_raw_private_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_private_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_raw_private_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_private_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_private_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_private_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_private_key_is_valid(this.ctxPtr),!!t}extractPublicKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_raw_private_key_extract_public_key(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}data(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_raw_private_key_data(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}hasPublicKey(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_raw_private_key_has_public_key(this.ctxPtr),!!t}setPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawPublicKey",_,t.RawPublicKey),e._vscf_raw_private_key_set_public_key(this.ctxPtr,_.ctxPtr)}getPublicKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_raw_private_key_get_public_key(this.ctxPtr),t.RawPublicKey.newAndUseCContext(_)}}return _};var ve=(e,t)=>{class _{constructor(t){this.name="Pkcs8Serializer",this.ctxPtr=void 0===t?e._vscf_pkcs8_serializer_new():t}static newAndUseCContext(t){return new _(e._vscf_pkcs8_serializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_pkcs8_serializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Writer(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Writer",_,"Foundation.Asn1Writer",t.FoundationInterfaceTag.ASN1_WRITER,t.FoundationInterface),e._vscf_pkcs8_serializer_release_asn1_writer(this.ctxPtr),e._vscf_pkcs8_serializer_use_asn1_writer(this.ctxPtr,_.ctxPtr)}serializedPublicKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey),r=e._vscf_pkcs8_serializer_serialized_public_key_len(this.ctxPtr,_.ctxPtr),r}serializePublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey);const r=this.serializedPublicKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_pkcs8_serializer_serialize_public_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}serializedPrivateKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey),r=e._vscf_pkcs8_serializer_serialized_private_key_len(this.ctxPtr,_.ctxPtr),r}serializePrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey);const r=this.serializedPrivateKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_pkcs8_serializer_serialize_private_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_pkcs8_serializer_setup_defaults(this.ctxPtr)}serializePublicKeyInplace(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_pkcs8_serializer_serialize_public_key_inplace(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),s}finally{e._free(n)}}serializePrivateKeyInplace(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_pkcs8_serializer_serialize_private_key_inplace(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),s}finally{e._free(n)}}}return _};var ye=(e,t)=>{class _{constructor(t){this.name="Sec1Serializer",this.ctxPtr=void 0===t?e._vscf_sec1_serializer_new():t}static newAndUseCContext(t){return new _(e._vscf_sec1_serializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_sec1_serializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Writer(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Writer",_,"Foundation.Asn1Writer",t.FoundationInterfaceTag.ASN1_WRITER,t.FoundationInterface),e._vscf_sec1_serializer_release_asn1_writer(this.ctxPtr),e._vscf_sec1_serializer_use_asn1_writer(this.ctxPtr,_.ctxPtr)}serializedPublicKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey),r=e._vscf_sec1_serializer_serialized_public_key_len(this.ctxPtr,_.ctxPtr),r}serializePublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey);const r=this.serializedPublicKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_sec1_serializer_serialize_public_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}serializedPrivateKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey),r=e._vscf_sec1_serializer_serialized_private_key_len(this.ctxPtr,_.ctxPtr),r}serializePrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey);const r=this.serializedPrivateKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_sec1_serializer_serialize_private_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_sec1_serializer_setup_defaults(this.ctxPtr)}serializePublicKeyInplace(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_sec1_serializer_serialize_public_key_inplace(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),s}finally{e._free(n)}}serializePrivateKeyInplace(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_sec1_serializer_serialize_private_key_inplace(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),s}finally{e._free(n)}}}return _};var he=(e,t)=>{class _{constructor(t){this.name="KeyAsn1Serializer",this.ctxPtr=void 0===t?e._vscf_key_asn1_serializer_new():t}static newAndUseCContext(t){return new _(e._vscf_key_asn1_serializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_asn1_serializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Writer(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Writer",_,"Foundation.Asn1Writer",t.FoundationInterfaceTag.ASN1_WRITER,t.FoundationInterface),e._vscf_key_asn1_serializer_release_asn1_writer(this.ctxPtr),e._vscf_key_asn1_serializer_use_asn1_writer(this.ctxPtr,_.ctxPtr)}serializedPublicKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey),r=e._vscf_key_asn1_serializer_serialized_public_key_len(this.ctxPtr,_.ctxPtr),r}serializePublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey);const r=this.serializedPublicKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_key_asn1_serializer_serialize_public_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}serializedPrivateKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey),r=e._vscf_key_asn1_serializer_serialized_private_key_len(this.ctxPtr,_.ctxPtr),r}serializePrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey);const r=this.serializedPrivateKeyLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_key_asn1_serializer_serialize_private_key(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_key_asn1_serializer_setup_defaults(this.ctxPtr)}serializePublicKeyInplace(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("publicKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_key_asn1_serializer_serialize_public_key_inplace(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),s}finally{e._free(n)}}serializePrivateKeyInplace(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("privateKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_key_asn1_serializer_serialize_private_key_inplace(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),s}finally{e._free(n)}}}return _};var Pe=(e,t)=>{class _{constructor(t){this.name="KeyAsn1Deserializer",this.ctxPtr=void 0===t?e._vscf_key_asn1_deserializer_new():t}static newAndUseCContext(t){return new _(e._vscf_key_asn1_deserializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_key_asn1_deserializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Reader(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Reader",_,"Foundation.Asn1Reader",t.FoundationInterfaceTag.ASN1_READER,t.FoundationInterface),e._vscf_key_asn1_deserializer_release_asn1_reader(this.ctxPtr),e._vscf_key_asn1_deserializer_use_asn1_reader(this.ctxPtr,_.ctxPtr)}deserializePublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("publicKeyData",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_key_asn1_deserializer_deserialize_public_key(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.RawPublicKey.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}deserializePrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("privateKeyData",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_key_asn1_deserializer_deserialize_private_key(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.RawPrivateKey.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_key_asn1_deserializer_setup_defaults(this.ctxPtr)}deserializePublicKeyInplace(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_key_asn1_deserializer_deserialize_public_key_inplace(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.RawPublicKey.newAndTakeCContext(n)}finally{e._free(r)}}deserializePrivateKeyInplace(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_key_asn1_deserializer_deserialize_private_key_inplace(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.RawPrivateKey.newAndTakeCContext(n)}finally{e._free(r)}}}return _};var me=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="Ed25519",this.ctxPtr=void 0===t?e._vscf_ed25519_new():t}static newAndUseCContext(t){return new _(e._vscf_ed25519_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ed25519_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_ed25519_release_random(this.ctxPtr),e._vscf_ed25519_use_random(this.ctxPtr,_.ctxPtr)}set ecies(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("ecies",_,t.Ecies),e._vscf_ed25519_release_ecies(this.ctxPtr),e._vscf_ed25519_use_ecies(this.ctxPtr,_.ctxPtr)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ed25519_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ed25519_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_ed25519_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ed25519_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_ed25519_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_ed25519_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ed25519_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_ed25519_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_ed25519_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_ed25519_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_ed25519_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canEncrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ed25519_can_encrypt(this.ctxPtr,_.ctxPtr,r),!!n}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ed25519_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_ed25519_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canDecrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ed25519_can_decrypt(this.ctxPtr,_.ctxPtr,r),!!n}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_ed25519_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_ed25519_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canSign(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_ed25519_can_sign(this.ctxPtr,_.ctxPtr),!!r}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_ed25519_signature_len(this.ctxPtr,_.ctxPtr),r}signHash(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=this.signatureLen(_),o=e._vsc_buffer_new_with_capacity(l);try{const n=e._vscf_ed25519_sign_hash(this.ctxPtr,_.ctxPtr,r,i,o);t.FoundationError.handleStatusCode(n);const s=e._vsc_buffer_bytes(o),a=e._vsc_buffer_len(o);return e.HEAPU8.slice(s,s+a)}finally{e._free(c),e._free(i),e._vsc_buffer_delete(o)}}canVerify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_ed25519_can_verify(this.ctxPtr,_.ctxPtr),!!r}verifyHash(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n),f.ensureByteArray("signature",s);const c=n.length*n.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(n,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_ed25519_verify_hash(this.ctxPtr,_.ctxPtr,r,l,p),!!v}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}computeSharedKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=this.sharedKeyLen(r),s=e._vsc_buffer_new_with_capacity(n);try{const n=e._vscf_ed25519_compute_shared_key(this.ctxPtr,_.ctxPtr,r.ctxPtr,s);t.FoundationError.handleStatusCode(n);const c=e._vsc_buffer_bytes(s),a=e._vsc_buffer_len(s);return e.HEAPU8.slice(c,c+a)}finally{e._vsc_buffer_delete(s)}}sharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_ed25519_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemSharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_ed25519_kem_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulatedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_ed25519_kem_encapsulated_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulate(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.kemSharedKeyLen(_),n=e._vsc_buffer_new_with_capacity(r),s=this.kemEncapsulatedKeyLen(_),c=e._vsc_buffer_new_with_capacity(s);try{const r=e._vscf_ed25519_kem_encapsulate(this.ctxPtr,_.ctxPtr,n,c);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),a=e._vsc_buffer_len(n),i=e.HEAPU8.slice(s,s+a),l=e._vsc_buffer_bytes(c),o=e._vsc_buffer_len(c);return{sharedKey:i,encapsulatedKey:e.HEAPU8.slice(l,l+o)}}finally{e._vsc_buffer_delete(n),e._vsc_buffer_delete(c)}}kemDecapsulate(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("encapsulatedKey",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.kemSharedKeyLen(r),l=e._vsc_buffer_new_with_capacity(i);try{const _=e._vscf_ed25519_kem_decapsulate(this.ctxPtr,a,r.ctxPtr,l);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_ed25519_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateKey(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_ed25519_generate_key(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(n)}finally{e._free(r)}}}return _};var xe=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="Curve25519",this.ctxPtr=void 0===t?e._vscf_curve25519_new():t}static newAndUseCContext(t){return new _(e._vscf_curve25519_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_curve25519_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_curve25519_release_random(this.ctxPtr),e._vscf_curve25519_use_random(this.ctxPtr,_.ctxPtr)}set ecies(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("ecies",_,t.Ecies),e._vscf_curve25519_release_ecies(this.ctxPtr),e._vscf_curve25519_use_ecies(this.ctxPtr,_.ctxPtr)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_curve25519_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_curve25519_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_curve25519_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_curve25519_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_curve25519_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_curve25519_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_curve25519_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_curve25519_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_curve25519_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_curve25519_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_curve25519_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canEncrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_curve25519_can_encrypt(this.ctxPtr,_.ctxPtr,r),!!n}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_curve25519_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_curve25519_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canDecrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_curve25519_can_decrypt(this.ctxPtr,_.ctxPtr,r),!!n}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_curve25519_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_curve25519_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}computeSharedKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=this.sharedKeyLen(r),s=e._vsc_buffer_new_with_capacity(n);try{const n=e._vscf_curve25519_compute_shared_key(this.ctxPtr,_.ctxPtr,r.ctxPtr,s);t.FoundationError.handleStatusCode(n);const c=e._vsc_buffer_bytes(s),a=e._vsc_buffer_len(s);return e.HEAPU8.slice(c,c+a)}finally{e._vsc_buffer_delete(s)}}sharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_curve25519_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemSharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_curve25519_kem_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulatedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_curve25519_kem_encapsulated_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulate(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.kemSharedKeyLen(_),n=e._vsc_buffer_new_with_capacity(r),s=this.kemEncapsulatedKeyLen(_),c=e._vsc_buffer_new_with_capacity(s);try{const r=e._vscf_curve25519_kem_encapsulate(this.ctxPtr,_.ctxPtr,n,c);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),a=e._vsc_buffer_len(n),i=e.HEAPU8.slice(s,s+a),l=e._vsc_buffer_bytes(c),o=e._vsc_buffer_len(c);return{sharedKey:i,encapsulatedKey:e.HEAPU8.slice(l,l+o)}}finally{e._vsc_buffer_delete(n),e._vsc_buffer_delete(c)}}kemDecapsulate(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("encapsulatedKey",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.kemSharedKeyLen(r),l=e._vsc_buffer_new_with_capacity(i);try{const _=e._vscf_curve25519_kem_decapsulate(this.ctxPtr,a,r.ctxPtr,l);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_curve25519_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateKey(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_curve25519_generate_key(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(n)}finally{e._free(r)}}}return _};var ge=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="Falcon",this.ctxPtr=void 0===t?e._vscf_falcon_new():t}static newAndUseCContext(t){return new _(e._vscf_falcon_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_falcon_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_falcon_release_random(this.ctxPtr),e._vscf_falcon_use_random(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_falcon_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_falcon_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_falcon_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_falcon_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_falcon_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_falcon_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_falcon_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_falcon_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_falcon_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_falcon_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_falcon_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_falcon_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_falcon_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_falcon_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canSign(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_falcon_can_sign(this.ctxPtr,_.ctxPtr),!!r}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_falcon_signature_len(this.ctxPtr,_.ctxPtr),r}signHash(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=this.signatureLen(_),o=e._vsc_buffer_new_with_capacity(l);try{const n=e._vscf_falcon_sign_hash(this.ctxPtr,_.ctxPtr,r,i,o);t.FoundationError.handleStatusCode(n);const s=e._vsc_buffer_bytes(o),a=e._vsc_buffer_len(o);return e.HEAPU8.slice(s,s+a)}finally{e._free(c),e._free(i),e._vsc_buffer_delete(o)}}canVerify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_falcon_can_verify(this.ctxPtr,_.ctxPtr),!!r}verifyHash(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n),f.ensureByteArray("signature",s);const c=n.length*n.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(n,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_falcon_verify_hash(this.ctxPtr,_.ctxPtr,r,l,p),!!v}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_falcon_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateKey(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_falcon_generate_key(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(n)}finally{e._free(r)}}}return _};var ke=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="Round5",this.ctxPtr=void 0===t?e._vscf_round5_new():t}static newAndUseCContext(t){return new _(e._vscf_round5_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_round5_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_round5_release_random(this.ctxPtr),e._vscf_round5_use_random(this.ctxPtr,_.ctxPtr)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_round5_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_round5_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_round5_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_round5_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_round5_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_round5_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_round5_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_round5_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_round5_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_round5_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_round5_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}kemSharedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface),r=e._vscf_round5_kem_shared_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulatedKeyLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_round5_kem_encapsulated_key_len(this.ctxPtr,_.ctxPtr),r}kemEncapsulate(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.kemSharedKeyLen(_),n=e._vsc_buffer_new_with_capacity(r),s=this.kemEncapsulatedKeyLen(_),c=e._vsc_buffer_new_with_capacity(s);try{const r=e._vscf_round5_kem_encapsulate(this.ctxPtr,_.ctxPtr,n,c);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),a=e._vsc_buffer_len(n),i=e.HEAPU8.slice(s,s+a),l=e._vsc_buffer_bytes(c),o=e._vsc_buffer_len(c);return{sharedKey:i,encapsulatedKey:e.HEAPU8.slice(l,l+o)}}finally{e._vsc_buffer_delete(n),e._vsc_buffer_delete(c)}}kemDecapsulate(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("encapsulatedKey",_),f.ensureImplementInterface("privateKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.kemSharedKeyLen(r),l=e._vsc_buffer_new_with_capacity(i);try{const _=e._vscf_round5_kem_decapsulate(this.ctxPtr,a,r.ctxPtr,l);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_round5_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}generateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("algId",_);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_round5_generate_key(this.ctxPtr,_,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}}return _};var Ee=(e,t)=>{class _{constructor(t){this.name="CompoundKeyAlgInfo",this.ctxPtr=void 0===t?e._vscf_compound_key_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_compound_key_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_compound_key_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_key_alg_info_alg_id(this.ctxPtr),t}cipherAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_key_alg_info_cipher_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}signerAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_key_alg_info_signer_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var Ne=(e,t)=>{class _{constructor(t){this.name="CompoundPublicKey",this.ctxPtr=void 0===t?e._vscf_compound_public_key_new():t}static newAndUseCContext(t){return new _(e._vscf_compound_public_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_compound_public_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_public_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_public_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_public_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_public_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_public_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_public_key_is_valid(this.ctxPtr),!!t}cipherKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_public_key_cipher_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}signerKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_public_key_signer_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var Ie=(e,t)=>{class _{constructor(t){this.name="CompoundPrivateKey",this.ctxPtr=void 0===t?e._vscf_compound_private_key_new():t}static newAndUseCContext(t){return new _(e._vscf_compound_private_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_compound_private_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_private_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_private_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_private_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_private_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_private_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_private_key_is_valid(this.ctxPtr),!!t}extractPublicKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_private_key_extract_public_key(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}cipherKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_private_key_cipher_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}signerKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_private_key_signer_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var be=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="CompoundKeyAlg",this.ctxPtr=void 0===t?e._vscf_compound_key_alg_new():t}static newAndUseCContext(t){return new _(e._vscf_compound_key_alg_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_compound_key_alg_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_compound_key_alg_release_random(this.ctxPtr),e._vscf_compound_key_alg_use_random(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_compound_key_alg_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_compound_key_alg_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_compound_key_alg_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_compound_key_alg_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_compound_key_alg_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_compound_key_alg_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_compound_key_alg_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_compound_key_alg_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_compound_key_alg_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_compound_key_alg_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_compound_key_alg_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_compound_key_alg_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_compound_key_alg_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_compound_key_alg_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canEncrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_compound_key_alg_can_encrypt(this.ctxPtr,_.ctxPtr,r),!!n}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_compound_key_alg_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_compound_key_alg_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canDecrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_compound_key_alg_can_decrypt(this.ctxPtr,_.ctxPtr,r),!!n}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_compound_key_alg_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_compound_key_alg_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canSign(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_compound_key_alg_can_sign(this.ctxPtr,_.ctxPtr),!!r}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_compound_key_alg_signature_len(this.ctxPtr,_.ctxPtr),r}signHash(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=this.signatureLen(_),o=e._vsc_buffer_new_with_capacity(l);try{const n=e._vscf_compound_key_alg_sign_hash(this.ctxPtr,_.ctxPtr,r,i,o);t.FoundationError.handleStatusCode(n);const s=e._vsc_buffer_bytes(o),a=e._vsc_buffer_len(o);return e.HEAPU8.slice(s,s+a)}finally{e._free(c),e._free(i),e._vsc_buffer_delete(o)}}canVerify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_compound_key_alg_can_verify(this.ctxPtr,_.ctxPtr),!!r}verifyHash(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n),f.ensureByteArray("signature",s);const c=n.length*n.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(n,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_compound_key_alg_verify_hash(this.ctxPtr,_.ctxPtr,r,l,p),!!v}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_compound_key_alg_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}makeKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("cipherKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureImplementInterface("signerKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_compound_key_alg_make_key(this.ctxPtr,_.ctxPtr,r.ctxPtr,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}}return _};var we=(e,t)=>{class _{constructor(t){this.name="HybridKeyAlgInfo",this.ctxPtr=void 0===t?e._vscf_hybrid_key_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_hybrid_key_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hybrid_key_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_key_alg_info_alg_id(this.ctxPtr),t}firstKeyAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_key_alg_info_first_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}secondKeyAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_key_alg_info_second_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var Ae=(e,t)=>{class _{constructor(t){this.name="HybridPublicKey",this.ctxPtr=void 0===t?e._vscf_hybrid_public_key_new():t}static newAndUseCContext(t){return new _(e._vscf_hybrid_public_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hybrid_public_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_public_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_public_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_public_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_public_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_public_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_public_key_is_valid(this.ctxPtr),!!t}firstKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_public_key_first_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}secondKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_public_key_second_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var Ce=(e,t)=>{class _{constructor(t){this.name="HybridPrivateKey",this.ctxPtr=void 0===t?e._vscf_hybrid_private_key_new():t}static newAndUseCContext(t){return new _(e._vscf_hybrid_private_key_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hybrid_private_key_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_private_key_alg_id(this.ctxPtr),t}algInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_private_key_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_private_key_len(this.ctxPtr),t}bitlen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_private_key_bitlen(this.ctxPtr),t}implTag(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_private_key_impl_tag(this.ctxPtr),t}isValid(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hybrid_private_key_is_valid(this.ctxPtr),!!t}extractPublicKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_private_key_extract_public_key(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}firstKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_private_key_first_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}secondKey(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hybrid_private_key_second_key(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var Fe=(e,t)=>{class _{static get CAN_IMPORT_PUBLIC_KEY(){return!0}get CAN_IMPORT_PUBLIC_KEY(){return _.CAN_IMPORT_PUBLIC_KEY}static get CAN_EXPORT_PUBLIC_KEY(){return!0}get CAN_EXPORT_PUBLIC_KEY(){return _.CAN_EXPORT_PUBLIC_KEY}static get CAN_IMPORT_PRIVATE_KEY(){return!0}get CAN_IMPORT_PRIVATE_KEY(){return _.CAN_IMPORT_PRIVATE_KEY}static get CAN_EXPORT_PRIVATE_KEY(){return!0}get CAN_EXPORT_PRIVATE_KEY(){return _.CAN_EXPORT_PRIVATE_KEY}constructor(t){this.name="HybridKeyAlg",this.ctxPtr=void 0===t?e._vscf_hybrid_key_alg_new():t}static newAndUseCContext(t){return new _(e._vscf_hybrid_key_alg_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hybrid_key_alg_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_hybrid_key_alg_release_random(this.ctxPtr),e._vscf_hybrid_key_alg_use_random(this.ctxPtr,_.ctxPtr)}set cipher(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("cipher",_,"Foundation.CipherAuth",t.FoundationInterfaceTag.CIPHER_AUTH,t.FoundationInterface),e._vscf_hybrid_key_alg_release_cipher(this.ctxPtr),e._vscf_hybrid_key_alg_use_cipher(this.ctxPtr,_.ctxPtr)}set hash(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("hash",_,"Foundation.Hash",t.FoundationInterfaceTag.HASH,t.FoundationInterface),e._vscf_hybrid_key_alg_release_hash(this.ctxPtr),e._vscf_hybrid_key_alg_use_hash(this.ctxPtr,_.ctxPtr)}generateEphemeralKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("key",_,"Foundation.Key",t.FoundationInterfaceTag.KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_hybrid_key_alg_generate_ephemeral_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPublicKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_hybrid_key_alg_import_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPublicKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_hybrid_key_alg_import_public_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPublicKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_hybrid_key_alg_export_public_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPublicKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPublicKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_hybrid_key_alg_exported_public_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPublicKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface);const r=this.exportedPublicKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_hybrid_key_alg_export_public_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}importPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("rawKey",_,t.RawPrivateKey);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_hybrid_key_alg_import_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.FoundationInterface.newAndTakeCContext(s)}finally{e._free(n)}}importPrivateKeyData(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("keyData",_),f.ensureImplementInterface("keyAlgInfo",r,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const n=_.length*_.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(_,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=e._vscf_error_ctx_size(),l=e._malloc(i);let o;e._vscf_error_reset(l);try{o=e._vscf_hybrid_key_alg_import_private_key_data(this.ctxPtr,a,r.ctxPtr,l);const _=e._vscf_error_status(l);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(o)}finally{e._free(s),e._free(a),e._free(l)}}exportPrivateKey(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=e._vscf_error_ctx_size(),n=e._malloc(r);let s;e._vscf_error_reset(n);try{s=e._vscf_hybrid_key_alg_export_private_key(this.ctxPtr,_.ctxPtr,n);const r=e._vscf_error_status(n);return t.FoundationError.handleStatusCode(r),t.RawPrivateKey.newAndTakeCContext(s)}finally{e._free(n)}}exportedPrivateKeyDataLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_hybrid_key_alg_exported_private_key_data_len(this.ctxPtr,_.ctxPtr),r}exportPrivateKeyData(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const r=this.exportedPrivateKeyDataLen(_),n=e._vsc_buffer_new_with_capacity(r);try{const r=e._vscf_hybrid_key_alg_export_private_key_data(this.ctxPtr,_.ctxPtr,n);t.FoundationError.handleStatusCode(r);const s=e._vsc_buffer_bytes(n),c=e._vsc_buffer_len(n);return e.HEAPU8.slice(s,s+c)}finally{e._vsc_buffer_delete(n)}}canEncrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_hybrid_key_alg_can_encrypt(this.ctxPtr,_.ctxPtr,r),!!n}encryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_hybrid_key_alg_encrypted_len(this.ctxPtr,_.ctxPtr,r),n}encrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.encryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_hybrid_key_alg_encrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canDecrypt(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_hybrid_key_alg_can_decrypt(this.ctxPtr,_.ctxPtr,r),!!n}decryptedLen(_,r){let n;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("dataLen",r),n=e._vscf_hybrid_key_alg_decrypted_len(this.ctxPtr,_.ctxPtr,r),n}decrypt(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureByteArray("data",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);e._vsc_data(a,s,n);const i=this.decryptedLen(_,r.length),l=e._vsc_buffer_new_with_capacity(i);try{const r=e._vscf_hybrid_key_alg_decrypt(this.ctxPtr,_.ctxPtr,a,l);t.FoundationError.handleStatusCode(r);const n=e._vsc_buffer_bytes(l),c=e._vsc_buffer_len(l);return e.HEAPU8.slice(n,n+c)}finally{e._free(s),e._free(a),e._vsc_buffer_delete(l)}}canSign(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_hybrid_key_alg_can_sign(this.ctxPtr,_.ctxPtr),!!r}signatureLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),r=e._vscf_hybrid_key_alg_signature_len(this.ctxPtr,_.ctxPtr),r}signHash(_,r,n){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("privateKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n);const s=n.length*n.BYTES_PER_ELEMENT,c=e._malloc(s);e.HEAP8.set(n,c);const a=e._vsc_data_ctx_size(),i=e._malloc(a);e._vsc_data(i,c,s);const l=this.signatureLen(_),o=e._vsc_buffer_new_with_capacity(l);try{const n=e._vscf_hybrid_key_alg_sign_hash(this.ctxPtr,_.ctxPtr,r,i,o);t.FoundationError.handleStatusCode(n);const s=e._vsc_buffer_bytes(o),a=e._vsc_buffer_len(o);return e.HEAPU8.slice(s,s+a)}finally{e._free(c),e._free(i),e._vsc_buffer_delete(o)}}canVerify(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),r=e._vscf_hybrid_key_alg_can_verify(this.ctxPtr,_.ctxPtr),!!r}verifyHash(_,r,n,s){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("publicKey",_,"Foundation.PublicKey",t.FoundationInterfaceTag.PUBLIC_KEY,t.FoundationInterface),f.ensureNumber("hashId",r),f.ensureByteArray("digest",n),f.ensureByteArray("signature",s);const c=n.length*n.BYTES_PER_ELEMENT,a=e._malloc(c);e.HEAP8.set(n,a);const i=e._vsc_data_ctx_size(),l=e._malloc(i);e._vsc_data(l,a,c);const o=s.length*s.BYTES_PER_ELEMENT,u=e._malloc(o);e.HEAP8.set(s,u);const d=e._vsc_data_ctx_size(),p=e._malloc(d);let v;e._vsc_data(p,u,o);try{return v=e._vscf_hybrid_key_alg_verify_hash(this.ctxPtr,_.ctxPtr,r,l,p),!!v}finally{e._free(a),e._free(l),e._free(u),e._free(p)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_hybrid_key_alg_setup_defaults(this.ctxPtr);t.FoundationError.handleStatusCode(_)}makeKey(_,r){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("firstKey",_,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface),f.ensureImplementInterface("secondKey",r,"Foundation.PrivateKey",t.FoundationInterfaceTag.PRIVATE_KEY,t.FoundationInterface);const n=e._vscf_error_ctx_size(),s=e._malloc(n);let c;e._vscf_error_reset(s);try{c=e._vscf_hybrid_key_alg_make_key(this.ctxPtr,_.ctxPtr,r.ctxPtr,s);const n=e._vscf_error_status(s);return t.FoundationError.handleStatusCode(n),t.FoundationInterface.newAndTakeCContext(c)}finally{e._free(s)}}}return _};var Te=(e,t)=>{class _{constructor(t){this.name="SimpleAlgInfo",this.ctxPtr=void 0===t?e._vscf_simple_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_simple_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_simple_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}static newWithAlgId(t){let r;return f.ensureNumber("algId",t),r=e._vscf_simple_alg_info_new_with_alg_id(t),_.newAndTakeCContext(r)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_simple_alg_info_alg_id(this.ctxPtr),t}}return _};var Ke=(e,t)=>{class _{constructor(t){this.name="HashBasedAlgInfo",this.ctxPtr=void 0===t?e._vscf_hash_based_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_hash_based_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_hash_based_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_hash_based_alg_info_alg_id(this.ctxPtr),t}hashAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_hash_based_alg_info_hash_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var Le=(e,t)=>{class _{constructor(t){this.name="CipherAlgInfo",this.ctxPtr=void 0===t?e._vscf_cipher_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_cipher_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_cipher_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}static newWithMembers(t,r){f.ensureNumber("algId",t),f.ensureByteArray("nonce",r);const n=r.length*r.BYTES_PER_ELEMENT,s=e._malloc(n);e.HEAP8.set(r,s);const c=e._vsc_data_ctx_size(),a=e._malloc(c);let i;e._vsc_data(a,s,n);try{return i=e._vscf_cipher_alg_info_new_with_members(t,a),_.newAndTakeCContext(i)}finally{e._free(s),e._free(a)}}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_cipher_alg_info_alg_id(this.ctxPtr),t}nonce(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_cipher_alg_info_nonce(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}}return _};var Re=(e,t)=>{class _{constructor(t){this.name="SaltedKdfAlgInfo",this.ctxPtr=void 0===t?e._vscf_salted_kdf_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_salted_kdf_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_salted_kdf_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_salted_kdf_alg_info_alg_id(this.ctxPtr),t}hashAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_salted_kdf_alg_info_hash_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}salt(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const t=e._vsc_data_ctx_size(),_=e._malloc(t);try{e._vscf_salted_kdf_alg_info_salt(_,this.ctxPtr);const t=e._vsc_data_len(_),r=e._vsc_data_bytes(_);return e.HEAPU8.slice(r,r+t)}finally{e._free(_)}}iterationCount(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_salted_kdf_alg_info_iteration_count(this.ctxPtr),t}}return _};var Se=(e,t)=>{class _{constructor(t){this.name="PbeAlgInfo",this.ctxPtr=void 0===t?e._vscf_pbe_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_pbe_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_pbe_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_pbe_alg_info_alg_id(this.ctxPtr),t}kdfAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_pbe_alg_info_kdf_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}cipherAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_pbe_alg_info_cipher_alg_info(this.ctxPtr),t.FoundationInterface.newAndUseCContext(_)}}return _};var ze=(e,t)=>{class _{constructor(t){this.name="EccAlgInfo",this.ctxPtr=void 0===t?e._vscf_ecc_alg_info_new():t}static newAndUseCContext(t){return new _(e._vscf_ecc_alg_info_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_ecc_alg_info_delete(this.ctxPtr),this.ctxPtr=null)}static newWithMembers(t,r,n){let s;return f.ensureNumber("algId",t),f.ensureNumber("keyId",r),f.ensureNumber("domainId",n),s=e._vscf_ecc_alg_info_new_with_members(t,r,n),_.newAndTakeCContext(s)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_alg_info_alg_id(this.ctxPtr),t}keyId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_alg_info_key_id(this.ctxPtr),t}domainId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_ecc_alg_info_domain_id(this.ctxPtr),t}}return _};var Be=(e,t)=>{class _{constructor(t){this.name="AlgInfoDerSerializer",this.ctxPtr=void 0===t?e._vscf_alg_info_der_serializer_new():t}static newAndUseCContext(t){return new _(e._vscf_alg_info_der_serializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_alg_info_der_serializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Writer(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Writer",_,"Foundation.Asn1Writer",t.FoundationInterfaceTag.ASN1_WRITER,t.FoundationInterface),e._vscf_alg_info_der_serializer_release_asn1_writer(this.ctxPtr),e._vscf_alg_info_der_serializer_use_asn1_writer(this.ctxPtr,_.ctxPtr)}serializedLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_info_der_serializer_serialized_len(this.ctxPtr,_.ctxPtr),r}serialize(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=this.serializedLen(_),n=e._vsc_buffer_new_with_capacity(r);try{e._vscf_alg_info_der_serializer_serialize(this.ctxPtr,_.ctxPtr,n);const t=e._vsc_buffer_bytes(n),r=e._vsc_buffer_len(n);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(n)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_alg_info_der_serializer_setup_defaults(this.ctxPtr)}serializeInplace(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface),r=e._vscf_alg_info_der_serializer_serialize_inplace(this.ctxPtr,_.ctxPtr),r}}return _};var Ye=(e,t)=>{class _{constructor(t){this.name="AlgInfoDerDeserializer",this.ctxPtr=void 0===t?e._vscf_alg_info_der_deserializer_new():t}static newAndUseCContext(t){return new _(e._vscf_alg_info_der_deserializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_alg_info_der_deserializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Reader(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Reader",_,"Foundation.Asn1Reader",t.FoundationInterfaceTag.ASN1_READER,t.FoundationInterface),e._vscf_alg_info_der_deserializer_release_asn1_reader(this.ctxPtr),e._vscf_alg_info_der_deserializer_use_asn1_reader(this.ctxPtr,_.ctxPtr)}deserialize(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_alg_info_der_deserializer_deserialize(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_alg_info_der_deserializer_setup_defaults(this.ctxPtr)}deserializeInplace(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=e._vscf_error_ctx_size(),r=e._malloc(_);let n;e._vscf_error_reset(r);try{n=e._vscf_alg_info_der_deserializer_deserialize_inplace(this.ctxPtr,r);const _=e._vscf_error_status(r);return t.FoundationError.handleStatusCode(_),t.FoundationInterface.newAndTakeCContext(n)}finally{e._free(r)}}}return _};var Ue=(e,t)=>{class _{static get PREFIX_LEN(){return 32}get PREFIX_LEN(){return _.PREFIX_LEN}constructor(t){this.name="MessageInfoDerSerializer",this.ctxPtr=void 0===t?e._vscf_message_info_der_serializer_new():t}static newAndUseCContext(t){return new _(e._vscf_message_info_der_serializer_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_message_info_der_serializer_delete(this.ctxPtr),this.ctxPtr=null)}set asn1Reader(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Reader",_,"Foundation.Asn1Reader",t.FoundationInterfaceTag.ASN1_READER,t.FoundationInterface),e._vscf_message_info_der_serializer_release_asn1_reader(this.ctxPtr),e._vscf_message_info_der_serializer_use_asn1_reader(this.ctxPtr,_.ctxPtr)}set asn1Writer(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("asn1Writer",_,"Foundation.Asn1Writer",t.FoundationInterfaceTag.ASN1_WRITER,t.FoundationInterface),e._vscf_message_info_der_serializer_release_asn1_writer(this.ctxPtr),e._vscf_message_info_der_serializer_use_asn1_writer(this.ctxPtr,_.ctxPtr)}serializedLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("messageInfo",_,t.MessageInfo),r=e._vscf_message_info_der_serializer_serialized_len(this.ctxPtr,_.ctxPtr),r}serialize(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("messageInfo",_,t.MessageInfo);const r=this.serializedLen(_),n=e._vsc_buffer_new_with_capacity(r);try{e._vscf_message_info_der_serializer_serialize(this.ctxPtr,_.ctxPtr,n);const t=e._vsc_buffer_bytes(n),r=e._vsc_buffer_len(n);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(n)}}readPrefix(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);let c;e._vsc_data(s,r,_);try{return c=e._vscf_message_info_der_serializer_read_prefix(this.ctxPtr,s),c}finally{e._free(r),e._free(s)}}deserialize(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_message_info_der_serializer_deserialize(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.MessageInfo.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}serializedFooterLen(_){let r;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("messageInfoFooter",_,t.MessageInfoFooter),r=e._vscf_message_info_der_serializer_serialized_footer_len(this.ctxPtr,_.ctxPtr),r}serializeFooter(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("messageInfoFooter",_,t.MessageInfoFooter);const r=this.serializedFooterLen(_),n=e._vsc_buffer_new_with_capacity(r);try{e._vscf_message_info_der_serializer_serialize_footer(this.ctxPtr,_.ctxPtr,n);const t=e._vsc_buffer_bytes(n),r=e._vsc_buffer_len(n);return e.HEAPU8.slice(t,t+r)}finally{e._vsc_buffer_delete(n)}}deserializeFooter(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",_);const r=_.length*_.BYTES_PER_ELEMENT,n=e._malloc(r);e.HEAP8.set(_,n);const s=e._vsc_data_ctx_size(),c=e._malloc(s);e._vsc_data(c,n,r);const a=e._vscf_error_ctx_size(),i=e._malloc(a);let l;e._vscf_error_reset(i);try{l=e._vscf_message_info_der_serializer_deserialize_footer(this.ctxPtr,c,i);const _=e._vscf_error_status(i);return t.FoundationError.handleStatusCode(_),t.MessageInfoFooter.newAndTakeCContext(l)}finally{e._free(n),e._free(c),e._free(i)}}setupDefaults(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_message_info_der_serializer_setup_defaults(this.ctxPtr)}}return _};var He=(e,t)=>{class _{constructor(t){this.name="RandomPadding",this.ctxPtr=void 0===t?e._vscf_random_padding_new():t}static newAndUseCContext(t){return new _(e._vscf_random_padding_shallow_copy(t))}static newAndTakeCContext(e){return new _(e)}delete(){void 0!==this.ctxPtr&&null!==this.ctxPtr&&(e._vscf_random_padding_delete(this.ctxPtr),this.ctxPtr=null)}set random(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("random",_,"Foundation.Random",t.FoundationInterfaceTag.RANDOM,t.FoundationInterface),e._vscf_random_padding_release_random(this.ctxPtr),e._vscf_random_padding_use_random(this.ctxPtr,_.ctxPtr)}algId(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_random_padding_alg_id(this.ctxPtr),t}produceAlgInfo(){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),_=e._vscf_random_padding_produce_alg_info(this.ctxPtr),t.FoundationInterface.newAndTakeCContext(_)}restoreAlgInfo(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureImplementInterface("algInfo",_,"Foundation.AlgInfo",t.FoundationInterfaceTag.ALG_INFO,t.FoundationInterface);const r=e._vscf_random_padding_restore_alg_info(this.ctxPtr,_.ctxPtr);t.FoundationError.handleStatusCode(r)}configure(_){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureClass("params",_,t.PaddingParams),e._vscf_random_padding_configure(this.ctxPtr,_.ctxPtr)}paddedDataLen(t){let _;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureNumber("dataLen",t),_=e._vscf_random_padding_padded_data_len(this.ctxPtr,t),_}len(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_random_padding_len(this.ctxPtr),t}lenMax(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_random_padding_len_max(this.ctxPtr),t}startDataProcessing(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_random_padding_start_data_processing(this.ctxPtr)}processData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=e._vsc_data_ctx_size(),a=e._malloc(c);try{e._vscf_random_padding_process_data(a,this.ctxPtr,s);const t=e._vsc_data_len(a),_=e._vsc_data_bytes(a);return e.HEAPU8.slice(_,_+t)}finally{e._free(r),e._free(s),e._free(a)}}finishDataProcessing(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.len(),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_random_padding_finish_data_processing(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}startPaddedDataProcessing(){f.ensureNotNull("this.ctxPtr",this.ctxPtr),e._vscf_random_padding_start_padded_data_processing(this.ctxPtr)}processPaddedData(t){f.ensureNotNull("this.ctxPtr",this.ctxPtr),f.ensureByteArray("data",t);const _=t.length*t.BYTES_PER_ELEMENT,r=e._malloc(_);e.HEAP8.set(t,r);const n=e._vsc_data_ctx_size(),s=e._malloc(n);e._vsc_data(s,r,_);const c=_,a=e._vsc_buffer_new_with_capacity(c);try{e._vscf_random_padding_process_padded_data(this.ctxPtr,s,a);const t=e._vsc_buffer_bytes(a),_=e._vsc_buffer_len(a);return e.HEAPU8.slice(t,t+_)}finally{e._free(r),e._free(s),e._vsc_buffer_delete(a)}}finishPaddedDataProcessingOutLen(){let t;return f.ensureNotNull("this.ctxPtr",this.ctxPtr),t=e._vscf_random_padding_finish_padded_data_processing_out_len(this.ctxPtr),t}finishPaddedDataProcessing(){f.ensureNotNull("this.ctxPtr",this.ctxPtr);const _=this.finishPaddedDataProcessingOutLen(),r=e._vsc_buffer_new_with_capacity(_);try{const _=e._vscf_random_padding_finish_padded_data_processing(this.ctxPtr,r);t.FoundationError.handleStatusCode(_);const n=e._vsc_buffer_bytes(r),s=e._vsc_buffer_len(r);return e.HEAPU8.slice(n,n+s)}finally{e._vsc_buffer_delete(r)}}}return _};var Me=o=>{const u=new e(o);return new Promise((e,o)=>{u.onRuntimeInitialized=()=>{const o={};o.FoundationInterfaceTag=t(),o.FoundationInterface=_(u,o),o.FoundationImplTag=r(),o.FoundationError=n(),o.Asn1Tag=s(),o.AlgId=c(),o.OidId=a(),o.GroupMsgType=i(),o.CipherState=l(),o.Oid=d(u),o.Base64=p(u,o),o.Pem=v(u,o),o.MessageInfo=y(u,o),o.KeyRecipientInfo=h(u,o),o.KeyRecipientInfoList=P(u,o),o.PasswordRecipientInfo=m(u,o),o.PasswordRecipientInfoList=x(u,o),o.AlgFactory=g(u,o),o.KeyAlgFactory=k(u,o),o.Ecies=E(u,o),o.RecipientCipher=N(u,o),o.MessageInfoCustomParams=I(u,o),o.KeyProvider=b(u,o),o.Signer=w(u,o),o.Verifier=A(u,o),o.BrainkeyClient=C(u,o),o.BrainkeyServer=F(u,o),o.GroupSessionMessage=T(u,o),o.GroupSessionTicket=K(u,o),o.GroupSession=L(u,o),o.MessageInfoEditor=R(u,o),o.SignerInfo=S(u,o),o.SignerInfoList=z(u,o),o.MessageInfoFooter=B(u,o),o.SignedDataInfo=Y(u,o),o.FooterInfo=U(u,o),o.KeyInfo=H(u,o),o.PaddingParams=M(u),o.Sha224=D(u,o),o.Sha256=O(u,o),o.Sha384=V(u,o),o.Sha512=G(u,o),o.Aes256Gcm=q(u,o),o.Aes256Cbc=X(u,o),o.Asn1rd=j(u,o),o.Asn1wr=W(u,o),o.RsaPublicKey=Z(u,o),o.RsaPrivateKey=$(u,o),o.Rsa=Q(u,o),o.EccPublicKey=J(u,o),o.EccPrivateKey=ee(u,o),o.Ecc=te(u,o),o.EntropyAccumulator=_e(u,o),o.CtrDrbg=re(u,o),o.Hmac=ne(u,o),o.Hkdf=se(u,o),o.Kdf1=ce(u,o),o.Kdf2=ae(u,o),o.FakeRandom=ie(u,o),o.Pkcs5Pbkdf2=le(u,o),o.Pkcs5Pbes2=oe(u,o),o.SeedEntropySource=ue(u,o),o.KeyMaterialRng=fe(u,o),o.RawPublicKey=de(u,o),o.RawPrivateKey=pe(u,o),o.Pkcs8Serializer=ve(u,o),o.Sec1Serializer=ye(u,o),o.KeyAsn1Serializer=he(u,o),o.KeyAsn1Deserializer=Pe(u,o),o.Ed25519=me(u,o),o.Curve25519=xe(u,o),o.Falcon=ge(u,o),o.Round5=ke(u,o),o.CompoundKeyAlgInfo=Ee(u,o),o.CompoundPublicKey=Ne(u,o),o.CompoundPrivateKey=Ie(u,o),o.CompoundKeyAlg=be(u,o),o.HybridKeyAlgInfo=we(u,o),o.HybridPublicKey=Ae(u,o),o.HybridPrivateKey=Ce(u,o),o.HybridKeyAlg=Fe(u,o),o.SimpleAlgInfo=Te(u),o.HashBasedAlgInfo=Ke(u,o),o.CipherAlgInfo=Le(u),o.SaltedKdfAlgInfo=Re(u,o),o.PbeAlgInfo=Se(u,o),o.EccAlgInfo=ze(u),o.AlgInfoDerSerializer=Be(u,o),o.AlgInfoDerDeserializer=Ye(u,o),o.MessageInfoDerSerializer=Ue(u,o),o.RandomPadding=He(u,o),e(o)},u.onAbort=e=>{o(new Error(e))}})};module.exports=Me;
  