bsip
Version:
Siphash 2-4 and all its variations for javascript
17 lines (13 loc) • 408 B
JavaScript
/*!
* siphash.js - siphash for bcoin
* Copyright (c) 2017, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcoin
*/
;
try {
if (process.env.NODE_BACKEND && process.env.NODE_BACKEND !== 'native')
throw new Error('Native backend not selected.');
module.exports = require('loady')('bsip', __dirname);
} catch (e) {
module.exports = require('./siphash-browser');
}