|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.adamcin.httpsig.ssh.jce.Magic
public final class Magic
Implementation of peculiar SSH byte array algorithms
| Constructor Summary | |
|---|---|
Magic()
|
|
| Method Summary | |
|---|---|
static byte[] |
dssPadSignature(byte[] signatureBytes)
Pad r and s to 160-bit (20 byte) integers |
static byte[] |
dssUnpadSignature(byte[] signatureBytes)
Remove padding from 160-bit integers, r and s |
static byte[] |
extractSignatureFromDER(byte[] signatureBytes)
|
static String |
getFingerprint(byte[] keyBlob)
Computes the MD5 fingerprint of the public key blob |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Magic()
| Method Detail |
|---|
public static String getFingerprint(byte[] keyBlob)
keyBlob - base64-decoded byte array containing the public key spec
public static byte[] extractSignatureFromDER(byte[] signatureBytes)
public static byte[] dssPadSignature(byte[] signatureBytes)
r and s to 160-bit (20 byte) integers
signatureBytes -
public static byte[] dssUnpadSignature(byte[] signatureBytes)
r and s
signatureBytes -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||