function RSASetPublic(N,E) {
  if(N != null && E != null && N.length > 0 && E.length > 0) {
    this.n = parseBigInt(N,16);
    this.e = parseInt(E,16);
  }
  else
    alert("Invalid RSA public key");
}
function RSASetPublic(N,E) {
  if(N != null && E != null && N.length > 0 && E.length > 0) {
    this.n = parseBigInt(N,16);
    this.e = parseInt(E,16);
  }
  else
    alert("Invalid RSA public key");
}
function RSASetPublic ( N , E ) { if ( N != null && E != null && N . length > 0 && E . length > 0 ) { this . n = parseBigInt ( N , 16 ) ; this . e = parseInt ( E , 16 ) ; } else alert ( "Invalid RSA public key" ) ; }
Set the public key fields N and e from hex strings
Set the public key fields N and e from hex strings