public final class Magic extends Object
| Constructor and Description |
|---|
Magic() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static String getFingerprint(byte[] keyBlob)
keyBlob - base64-decoded byte array containing the public key specpublic static byte[] extractSignatureFromDER(byte[] signatureBytes)
public static byte[] dssPadSignature(byte[] signatureBytes)
r and s to 160-bit (20 byte) integerssignatureBytes - data for unpadded signaturepublic static byte[] dssUnpadSignature(byte[] signatureBytes)
r and ssignatureBytes - data for padded signatureCopyright © 2013-2017. All Rights Reserved.