mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 08:10:55 +03:00
Okay, more spaces Codacy, you win!
This commit is contained in:
@@ -427,7 +427,7 @@ public class Buffer<T extends Buffer<T>> {
|
|||||||
throws BufferException {
|
throws BufferException {
|
||||||
try {
|
try {
|
||||||
final KeyType type = KeyType.fromString(readString());
|
final KeyType type = KeyType.fromString(readString());
|
||||||
switch(type) {
|
switch (type) {
|
||||||
case RSA:
|
case RSA:
|
||||||
case DSA:
|
case DSA:
|
||||||
return type.readPubKeyFromBuffer(this);
|
return type.readPubKeyFromBuffer(this);
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ public class PKCS5KeyFile
|
|||||||
throw new FormatException("PKCS5 header not found");
|
throw new FormatException("PKCS5 header not found");
|
||||||
}
|
}
|
||||||
ASN1Data asn = new ASN1Data(data = decrypt(Base64.decode(sb.toString()), cipher, iv));
|
ASN1Data asn = new ASN1Data(data = decrypt(Base64.decode(sb.toString()), cipher, iv));
|
||||||
switch(type) {
|
switch (type) {
|
||||||
case RSA: {
|
case RSA: {
|
||||||
KeyFactory factory = KeyFactory.getInstance("RSA");
|
KeyFactory factory = KeyFactory.getInstance("RSA");
|
||||||
asn.readNext();
|
asn.readNext();
|
||||||
|
|||||||
Reference in New Issue
Block a user