lib/rsa.js
function RSASetPrivate(N,E,D) {
  if(N != null && E != null && N.length > 0 && E.length > 0) {
    this.n = parseBigInt(N,16);
    this.e = parseInt(E,16);
    this.d = parseBigInt(D,16);
  }
  else
    console.log("Invalid RSA private key");
}
function RSASetPrivate(N,E,D) {
  if(N != null && E != null && N.length > 0 && E.length > 0) {
    this.n = parseBigInt(N,16);
    this.e = parseInt(E,16);
    this.d = parseBigInt(D,16);
  }
  else
    console.log("Invalid RSA private key");
}
function RSASetPrivate ( N , E , D ) { if ( N != null && E != null && N . length > 0 && E . length > 0 ) { this . n = parseBigInt ( N , 16 ) ; this . e = parseInt ( E , 16 ) ; this . d = parseBigInt ( D , 16 ) ; } else console . log ( "Invalid RSA private key" ) ; }
Set the private key fields N, e, and d from hex strings
Set the private key fields N e and d from hex strings