Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_DECODING_PUBLIC_KEY |
static java.lang.String |
SIGNATURE_ERROR |
Constructor and Description |
---|
BouncyCastleCrypto() |
Modifier and Type | Method and Description |
---|---|
void |
checkSignature(java.security.PublicKey publicKey,
byte[] signedBytes,
byte[] signature) |
void |
checkSignature(java.security.cert.X509Certificate attestationCertificate,
byte[] signedBytes,
byte[] signature) |
java.security.PublicKey |
decodePublicKey(byte[] encodedPublicKey) |
byte[] |
hash(byte[] bytes) |
byte[] |
hash(java.lang.String str) |
public static final java.lang.String SIGNATURE_ERROR
public static final java.lang.String ERROR_DECODING_PUBLIC_KEY
public void checkSignature(java.security.cert.X509Certificate attestationCertificate, byte[] signedBytes, byte[] signature) throws U2fException
checkSignature
in interface Crypto
U2fException
public void checkSignature(java.security.PublicKey publicKey, byte[] signedBytes, byte[] signature) throws U2fException
checkSignature
in interface Crypto
U2fException
public java.security.PublicKey decodePublicKey(byte[] encodedPublicKey) throws U2fException
decodePublicKey
in interface Crypto
U2fException