mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-14 12:55:08 -05:00
cleanup
This commit is contained in:
parent
b952af90e6
commit
7436bf578c
@ -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);
|
||||||
|
@ -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 == ' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user