2017-05-03 15:35:00 +02:00
|
|
|
|
|
|
|
require('./create-hash')
|
|
|
|
require('./create-hmac')
|
|
|
|
if (!process.browser) {
|
|
|
|
require('./dh')
|
|
|
|
}
|
|
|
|
|
|
|
|
require('./pbkdf2')
|
|
|
|
try {
|
|
|
|
require('randombytes')(8)
|
|
|
|
require('./ecdh')
|
|
|
|
require('./public-encrypt')
|
|
|
|
require('./random-bytes')
|
|
|
|
require('./sign')
|
2017-12-10 21:51:33 +01:00
|
|
|
require('./random-fill')
|
2017-05-03 15:35:00 +02:00
|
|
|
} catch (e) {
|
|
|
|
console.log('no secure rng avaiable')
|
|
|
|
}
|
|
|
|
require('./aes')
|