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 // taken from ClearSignedFileProcessor in BC
private static void processLine(PGPSignature sig, byte[] line) throws SignatureException, private static void processLine(PGPSignature sig, byte[] line)
IOException { throws SignatureException, IOException {
int length = getLengthWithoutWhiteSpace(line); int length = getLengthWithoutWhiteSpace(line);
if (length > 0) { if (length > 0) {
sig.update(line, 0, length); sig.update(line, 0, length);

View File

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