daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   const calculateTempValuesforSecretKey = (listSorted, participantJid, uid, callback) => {
  2.     getPreviousNext(listSorted, participantJid, (current, previous, next) => {
  3.       if (!_.has(next, 'd')) {
  4.         return cryptoHelpers.xorBuffers([generateBuffer(current.d), generateBuffer(next.z)], (value) => {
  5.           next.d = value;
  6.           calculateTempValuesforSecretKey(listSorted, next.jid, uid, callback);
  7.         });
  8.       }
  9.       const buffers = _.map(listSorted, participant => participant.d);
  10.       buffers.push(generateBuffer(uid));
  11.       _.each(buffers, buffer => buffer.toString('hex'));
  12.       return callback(cryptoHelpers.hashBufferList(buffers));
  13.     });
  14.   };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top