Sha256: 00eca544aeff6690c25e190370c22c5a643764d3bad6c74fad643eaad2c16d4f
Contents?: true
Size: 231 Bytes
Versions: 14
Compression:
Stored size: 231 Bytes
Contents
var bn = require('bn.js'); function withPublic(paddedMsg, key) { return new Buffer(paddedMsg .toRed(bn.mont(key.modulus)) .redPow(new bn(key.publicExponent)) .fromRed() .toArray()); } module.exports = withPublic;
Version data entries
14 entries across 14 versions & 7 rubygems