Examples of update()


Examples of ch.ethz.ssh2.crypto.digest.Digest.update()

      throw new IllegalArgumentException("Unknown key type " + keyType);

    if (hostkey == null)
      throw new IllegalArgumentException("hostkey is null");

    dig.update(hostkey);
    byte[] res = new byte[dig.getDigestLength()];
    dig.digest(res);
    return res;
  }
View Full Code Here

Examples of ch.ethz.ssh2.crypto.digest.HMAC.update()

    if (salt.length != sha1.getDigestLength())
      throw new IllegalArgumentException("Salt has wrong length (" + salt.length + ")");

    HMAC hmac = new HMAC(sha1, salt, salt.length);

    hmac.update(hostname.getBytes());

    byte[] dig = new byte[hmac.getDigestLength()];

    hmac.digest(dig);
View Full Code Here

Examples of ch.ethz.ssh2.crypto.digest.MD5.update()

    byte[] key = new byte[keyLen];
    byte[] tmp = new byte[md5.getDigestLength()];

    while (true)
    {
      md5.update(password, 0, password.length);
      md5.update(salt, 0, 8); // ARGH we only use the first 8 bytes of the salt in this step.
      // This took me two hours until I got AES-xxx running.

      int copy = (keyLen < tmp.length) ? keyLen : tmp.length;
View Full Code Here

Examples of ch.ethz.ssh2.crypto.digest.SHA1.update()

  public static boolean verifySignature(byte[] message, DSASignature ds, DSAPublicKey dpk) throws IOException
  {
    /* Inspired by Bouncycastle's DSASigner class */

    SHA1 md = new SHA1();
    md.update(message);
    byte[] sha_message = new byte[md.getDigestLength()];
    md.digest(sha_message);

    BigInteger m = new BigInteger(1, sha_message);

View Full Code Here

Examples of ch.fork.AdHocRailway.domain.locomotives.LocomotiveControlface.update()

                        myLocomotive);
                if (locomotiveConfig.isOkPressed()) {
                    locomotivePersistence.updateLocomotive(myLocomotive);
                }
                locomotiveChanged(myLocomotive);
                locomotiveControl.update();
            } else if (e.getButton() == MouseEvent.BUTTON2) {
                ToggleDirectionAction a = new ToggleDirectionAction();
                a.actionPerformed(null);
            }
            updateWidget();
View Full Code Here

Examples of ch.fork.AdHocRailway.domain.routes.RouteControlIface.update()

        private void displayRouteConfig() {
            RouteControlIface routeControl = AdHocRailway.getInstance()
                    .getRouteControl();
            routeControl.removeRouteChangeListener(route, RouteWidget.this);
            new RouteConfig(AdHocRailway.getInstance(), route);
            routeControl.update();
            routeControl.addRouteChangeListener(route, RouteWidget.this);

            routeChanged(route);
        }
    }
View Full Code Here

Examples of ch.fork.AdHocRailway.domain.turnouts.TurnoutControlIface.update()

                    .getTurnoutControl();

            turnoutControl.removeTurnoutChangeListener(TurnoutWidget.this);
            new TurnoutConfig(AdHocRailway.getInstance(), turnout);
            validateTurnout();
            turnoutControl.update();
            turnoutControl
                    .addTurnoutChangeListener(turnout, TurnoutWidget.this);

            turnoutChanged(turnout, actualTurnoutState);
        }
View Full Code Here

Examples of ch.fusun.baron.data.DataUpdate.update()

      @Override
      public synchronized void received(Connection arg0, Object object) {
        if (object instanceof DataUpdate) {
          DataUpdate update = (DataUpdate) object;
          ReInjector.getInstance().reInject(update);
          update.update();
        }
      }
    });
    try {
      client.connect(5000, host, 54555, 54555);
View Full Code Here

Examples of ch.grengine.source.SourceSetState.update()

            stateNow = state;
            diff = System.currentTimeMillis() - stateNow.getLastChecked();
            if (diff >= 0 && diff < latencyMs) {
                return stateNow.getSourceSet();
            }
            state = stateNow.update(getSourceSetNew());
            return state.getSourceSet();
        }
    }
   
    @Override
View Full Code Here

Examples of cirrus.hibernate.Session.update()

            bk.setTitle( title );
            bk.setUrl( url.toString() );
            bk.setDescription( description );

            tx = session.beginTransaction(  );
            session.update( bk );
            tx.commit(  );
        }
        catch( cirrus.hibernate.ObjectNotFoundException o )
        {
            throw new ObjectNotFoundException( "Bookmark#" + id + " not found" );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.