This commit is contained in:
Dominik Schürmann 2014-02-19 13:06:57 +01:00
parent b952af90e6
commit 7436bf578c
2 changed files with 6 additions and 9 deletions

View File

@ -624,8 +624,8 @@ public class PgpOperationIncoming {
// taken from ClearSignedFileProcessor in BC
private static void processLine(PGPSignature sig, byte[] line) throws SignatureException,
IOException {
private static void processLine(PGPSignature sig, byte[] line)
throws SignatureException, IOException {
int length = getLengthWithoutWhiteSpace(line);
if (length > 0) {
sig.update(line, 0, length);

View File

@ -539,7 +539,8 @@ public class PgpOperationOutgoing {
private static void processLine(final String pLine, final ArmoredOutputStream pArmoredOutput,
final PGPSignatureGenerator pSignatureGenerator) throws IOException, SignatureException {
final PGPSignatureGenerator pSignatureGenerator)
throws IOException, SignatureException {
if (pLine == null) {
return;
@ -564,8 +565,8 @@ public class PgpOperationOutgoing {
}
private static void processLine(final String pLine, final ArmoredOutputStream pArmoredOutput,
final PGPV3SignatureGenerator pSignatureGenerator) throws IOException,
SignatureException {
final PGPV3SignatureGenerator pSignatureGenerator)
throws IOException, SignatureException {
if (pLine == null) {
return;
@ -589,8 +590,4 @@ public class PgpOperationOutgoing {
pSignatureGenerator.update(data);
}
private static boolean isWhiteSpace(byte b) {
return b == '\r' || b == '\n' || b == '\t' || b == ' ';
}
}