var forge=require("./forge");require("./util"),forge.mgf=forge.mgf||{};var mgf1=module.exports=forge.mgf.mgf1=forge.mgf1=forge.mgf1||{};mgf1.create=function(e){return{generate:function(r,t){for(var f=new forge.util.ByteBuffer,g=Math.ceil(t/e.digestLength),u=0;u<g;u++){var o=new forge.util.ByteBuffer;o.putInt32(u),e.start(),e.update(r+o.getBytes()),f.putBuffer(e.digest())}return f.truncate(f.length()-t),f.getBytes()}}};