Examples of update()


Examples of gnu.java.security.sig.dss.DSSSignature.update()

    alice.update(message, 0, message.length);
    Object signature = alice.sign();

    map.put(BaseSignature.VERIFIER_KEY, publicK);
    bob.setupVerify(map);
    bob.update(message, 0, message.length);

    harness.check(bob.verify(signature), "instance methods");

    IMessageDigest sha = new Sha160();
    sha.update(message, 0, message.length);
View Full Code Here

Examples of gnu.javax.crypto.assembly.Cascade.update()

            desEDE.init(map);
            new3DES.init(map);

            desEDE.encryptBlock(pt, 0, ct1, 0);
            new3DES.update(pt, 0, ct2, 0);
            harness.check(Arrays.equals(ct1, ct2));

            for (int j = 0; j < 9999; j++)
              {
                desEDE.encryptBlock(ct1, 0, ct1, 0);
View Full Code Here

Examples of gnu.javax.crypto.mac.IMac.update()

        hmac.update((byte) 'b');
        hmac.update((byte) 'c');

        clone.init(hmacAttributes);

        clone.update((byte) 'a');
        clone.update((byte) 'b');
        clone.update((byte) 'c');

        byte[] md1 = hmac.digest();
        byte[] md2 = clone.digest();
View Full Code Here

Examples of gnu.javax.crypto.mode.IAuthenticatedMode.update()

        attr.put(IAuthenticatedMode.IV, TESTS[i][1]);
        try
          {
            mode.reset();
            mode.init(attr);
            mode.update(TESTS[i][3], 0, TESTS[i][3].length);
            byte[] ct = new byte[TESTS[i][2].length];
            for (int j = 0; j < TESTS[i][2].length; j += mode.currentBlockSize())
              {
                mode.update(TESTS[i][2], j, ct, j);
              }
View Full Code Here

Examples of gnu.javax.crypto.mode.IMode.update()

                    attrib.put(IMode.STATE, new Integer(IMode.ENCRYPTION));
                    attrib.put(IBlockCipher.KEY_MATERIAL, kb);
                    gnu.reset();
                    gnu.init(attrib);
                    ct1 = new byte[bs];
                    gnu.update(pt, 0, ct1, 0);
                    jce.init(Cipher.ENCRYPT_MODE,
                             new SecretKeySpec(kb, cipherName),
                             new IvParameterSpec(pt));
                    ct2 = new byte[bs];
                    jce.doFinal(pt, 0, bs, ct2, 0);
View Full Code Here

Examples of gnu.javax.crypto.sasl.IAuthInfoProvider.update()

    // ----------------------------------------------------------------------

    try
      {
        authenticator.update(user1);
        harness.check(true, "update(user1)");
      }
    catch (AuthenticationException x)
      {
        harness.debug(x);
View Full Code Here

Examples of gnu.javax.crypto.sasl.srp.SRPAuthInfoProvider.update()

    // ----------------------------------------------------------------------

    try
      {
        authenticator.update(user1);
        harness.check(true, "update(user1)");
      }
    catch (AuthenticationException x)
      {
        harness.debug(x);
View Full Code Here

Examples of gog.MDBObject.update()

        fovTransits = fovTransitsSub;
      }
      // create and write MDBObject parameters as requested
      long t2 = System.currentTimeMillis();
      MDBObject mdbo = createMDBObject(as, fovTransits, random);
      mdbo.update();
      writeMDBObject(mdbo);
      if (as instanceof gaiasimu.universe.source.stellar.StarSystem) {
        gaiasimu.universe.source.AstroSource[] astroSourceComponents = as.getComponents();
        for (gaiasimu.universe.source.AstroSource asComponent : astroSourceComponents) {
          MDBObject componentMDBObject = createMDBObject(asComponent, fovTransits, new Random());
View Full Code Here

Examples of gov.nasa.arc.mct.canvas.panel.Panel.update()

        Panel existingPanel = renderedPanels.get(index);
        if (existingPanel != null) {
            if (!updating || selectedPanels.contains(existingPanel)) {
                // update existing panel
                existingPanel.update(canvasContent);
                changeOrder(existingPanel, zorder);
            }
        } else {
            String viewType = canvasContent.getManifestedViewType();
            ComponentRegistry cr = ComponentRegistryAccess.getComponentRegistry();
View Full Code Here

Examples of gov.sandia.cognition.statistics.bayesian.KalmanFilter.update()

    // TODO FIXME gross hack!
//    posteriorState.getCovariance().scaleEquals(sigma2Sample);
//    kf.setMeasurementCovariance(Iy.scale(sigma2Sample));
//    kf.setModelCovariance(Ix.scale(sigma2Sample));
    kf.predict(posteriorState);
    kf.update(posteriorState, data.getObservedValue());
//    kf.setMeasurementCovariance(Iy);
//    kf.setModelCovariance(Ix);
   

    final GaussianArHpWfParticle newTransState =
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.