mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
- Ident in spaces
This commit is contained in:
@@ -30,12 +30,10 @@ import net.schmizz.sshj.common.KeyType;
|
||||
import net.schmizz.sshj.common.SSHRuntimeException;
|
||||
|
||||
/** ECDSA {@link Signature} */
|
||||
public class SignatureECDSA
|
||||
extends AbstractSignature {
|
||||
public class SignatureECDSA extends AbstractSignature {
|
||||
|
||||
/** A named factory for ECDSA-256 signature */
|
||||
public static class Factory256
|
||||
implements net.schmizz.sshj.common.Factory.Named<Signature> {
|
||||
public static class Factory256 implements net.schmizz.sshj.common.Factory.Named<Signature> {
|
||||
|
||||
@Override
|
||||
public Signature create() {
|
||||
@@ -50,8 +48,7 @@ public class SignatureECDSA
|
||||
}
|
||||
|
||||
/** A named factory for ECDSA-384 signature */
|
||||
public static class Factory384
|
||||
implements net.schmizz.sshj.common.Factory.Named<Signature> {
|
||||
public static class Factory384 implements net.schmizz.sshj.common.Factory.Named<Signature> {
|
||||
|
||||
@Override
|
||||
public Signature create() {
|
||||
@@ -66,8 +63,7 @@ public class SignatureECDSA
|
||||
}
|
||||
|
||||
/** A named factory for ECDSA-521 signature */
|
||||
public static class Factory521
|
||||
implements net.schmizz.sshj.common.Factory.Named<Signature> {
|
||||
public static class Factory521 implements net.schmizz.sshj.common.Factory.Named<Signature> {
|
||||
|
||||
@Override
|
||||
public Signature create() {
|
||||
@@ -143,7 +139,10 @@ public class SignatureECDSA
|
||||
int rLen = r.length;
|
||||
int sLen = s.length;
|
||||
|
||||
/* We can't have the high bit set, so add an extra zero at the beginning if so. */
|
||||
/*
|
||||
* We can't have the high bit set, so add an extra zero at the beginning
|
||||
* if so.
|
||||
*/
|
||||
if ((r[0] & 0x80) != 0) {
|
||||
rLen++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user