(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.evp_bytestokey"],{ae84:function(e,n,t){var a=t("8707").Buffer,r=t("f576");function i(e,n,t,i){if(a.isBuffer(e)||(e=a.from(e,"binary")),n&&(a.isBuffer(n)||(n=a.from(n,"binary")),8!==n.length))throw new RangeError("salt should be Buffer with 8 byte length");var l=t/8,o=a.alloc(l),f=a.alloc(i||0),h=a.alloc(0);while(l>0||i>0){var p=new r;p.update(h),p.update(e),n&&p.update(n),h=p.digest();var u=0;if(l>0){var w=o.length-l;u=Math.min(l,h.length),h.copy(o,w,0,u),l-=u}if(u<h.length&&i>0){var s=f.length-i,c=Math.min(i,h.length-u);h.copy(f,s,u,u+c),i-=c}}return h.fill(0),{key:o,iv:f}}e.exports=i}}]);