Examples of update()


Examples of org.bouncycastle.openpgp.PGPOnePassSignature.update()

        } finally {
            IOHelper.close(litData, encData, in);
        }

        if (signature != null) {
            signature.update(answer);
            PGPSignatureList sigList = (PGPSignatureList) pgpFactory.nextObject();
            if (!signature.verify(sigList.get(0))) {
                throw new SignatureException("Cannot verify PGP signature");
            }
        }
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPSignature.update()

        {
            do
            {
                lookAhead = readInputLine(lineOut, lookAhead, sigIn);

                sig.update((byte)'\r');
                sig.update((byte)'\n');

                processLine(sig, lineOut.toByteArray());
            }
            while (lookAhead != -1);
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPSignatureGenerator.update()

            byte[] buffer = new byte[BUFFER_SIZE];
            int bytesRead;
            while ((bytesRead = input.read(buffer)) != -1) {
                litOut.write(buffer, 0, bytesRead);
                if (sigGen != null) {
                    sigGen.update(buffer, 0, bytesRead);
                }
                litOut.flush();
            }
        } finally {
            IOHelper.close(litOut);
View Full Code Here

Examples of org.bouncycastle.openpgp.PGPV3SignatureGenerator.update()

        int ch;
        while ((ch = testIn.read()) >= 0)
        {
            lOut.write(ch);
            sGen.update((byte)ch);
        }
   
        lOut.write(TEST_DATA);
        sGen.update(TEST_DATA);
       
View Full Code Here

Examples of org.bouncycastle2.crypto.Digest.update()

    {
        Digest  digest = new SHA1Digest();
        byte[]  resBuf = new byte[digest.getDigestSize()];

        byte[] bytes = spki.getPublicKeyData().getBytes();
        digest.update(bytes, 0, bytes.length);
        digest.doFinal(resBuf, 0);
        this.keyidentifier = new DEROctetString(resBuf);
    }

    /**
 
View Full Code Here

Examples of org.bouncycastle2.crypto.Mac.update()

            b0[b0.length - count] = (byte)(q & 0xff);
            q >>>= 8;
            count++;
        }
       
        cMac.update(b0, 0, b0.length);
       
        //
        // process associated text
        //
        if (hasAssociatedText())
View Full Code Here

Examples of org.bouncycastle2.crypto.digests.SHA1Digest.update()

    {
        Digest  digest = new SHA1Digest();
        byte[]  resBuf = new byte[digest.getDigestSize()];

        byte[] bytes = spki.getPublicKeyData().getBytes();
        digest.update(bytes, 0, bytes.length);
        digest.doFinal(resBuf, 0);
        this.keyidentifier = new DEROctetString(resBuf);
    }

    /**
 
View Full Code Here

Examples of org.bouncycastle2.crypto.macs.CBCBlockCipherMac.update()

            b0[b0.length - count] = (byte)(q & 0xff);
            q >>>= 8;
            count++;
        }
       
        cMac.update(b0, 0, b0.length);
       
        //
        // process associated text
        //
        if (hasAssociatedText())
View Full Code Here

Examples of org.broadinstitute.gatk.utils.sam.ArtificialSingleSampleReadStreamAnalyzer.update()

                SAMRecord read = downsamplingIter.next();
                String sampleName = read.getReadGroup() != null ? read.getReadGroup().getSample() : null;

                ArtificialSingleSampleReadStreamAnalyzer analyzer = perSampleStreamAnalyzers.get(sampleName);
                if ( analyzer != null ) {
                    analyzer.update(read);
                }
                else {
                    throw new ReviewedGATKException("bug: stream analyzer for sample " + sampleName + " not found");
                }
            }
View Full Code Here

Examples of org.broadleafcommerce.openadmin.server.service.persistence.PersistenceManager.update()

                if (persistencePackage.getEntity().isValidationFailure()) {
                    return new PersistenceResponse().withEntity(persistencePackage.getEntity());
                }
                try {
                    PersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
                    return persistenceManager.update(persistencePackage);
                } catch (ServiceException e) {
                    //immediately throw validation exceptions without printing a stack trace
                    if (e instanceof ValidationException) {
                        throw e;
                    } else if (e.getCause() instanceof ValidationException) {
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.