code: protected static final void setRSAKey(byte[][] key) {
          BigInteger[] k = new BigInteger[8];
          for (int i = 0; i < 8; i++) {
              if (key[i] != null) {
                  k[i] = new BigInteger(1, key[i]);
              }
          }
  
          if (k[3].compareTo(k[4]) < 0) {
              BigInteger tmp;
              tmp = k[3];
              k[3] = k[4];
              k[4] = tmp;
              tmp = k[5];
              k[5] = k[6];
              k[6] = tmp;
              k[7] = null;
          }
          if (k[7] == null) {
              k[7] = k[4].modInverse(k[3]);
          }
          if (k[0] == null) {
              k[0] = k[3].multiply(k[4]);
          }
          if (k[1] == null) {
              k[1] = k[2].modInverse(k[3].subtract(BigInteger.valueOf(1)).multiply(k[4].subtract(BigInteger.valueOf(1))));
          }
          if (k[5] == null) {
              k[5] = k[1].remainder(k[3].subtract(BigInteger.valueOf(1)));
          }
          if (k[6] == null) {
              k[6] = k[1].remainder(k[4].subtract(BigInteger.valueOf(1)));
          }
          for (int i = 0; i < 8; i++) {
              key[i] = k[i].toByteArray();
          }
  
      }
docs: Set the key for RSA algorithms.
  
  @param key The key