Uses of Class
org.drasyl.crypto.CryptoException
Packages that use CryptoException
Package
Description
Classes for crypto-related operations.
Contains classes to manage the
Identity
of the drasyl node.-
Uses of CryptoException in org.drasyl.crypto
Methods in org.drasyl.crypto that throw CryptoExceptionModifier and TypeMethodDescriptionstatic byte[]
Crypto.compressedKey
(PrivateKey privkey) Generates an asymmetric, compressed curve private key from the given private key.static byte[]
Crypto.compressedKey
(PublicKey key) Generates an asymmetric, compressed curve public key from the given public key.static PrivateKey
Crypto.getPrivateKeyFromBytes
(byte[] privKey) Generates an asymmetric curve private key from the given bytes.static PublicKey
Crypto.getPublicKeyFromBytes
(byte[] pubKey) Generates an asymmetric curve public key from the given bytes.static KeyPair
Crypto.makeKeyPair
(byte[] compressedPrivate, byte[] compressedPublic) Generates an asymmetric curve key pair from the given compressed private and public key.static org.bouncycastle.jce.interfaces.ECPrivateKey
Crypto.parseCompressedPrivateKey
(byte[] compressedPrivateKey) Generates an asymmetric curve private key from the given compressed private key.static org.bouncycastle.jce.interfaces.ECPublicKey
Crypto.parseCompressedPublicKey
(byte[] compressedPubKey) Generates an asymmetric curve public key from the given compressed public key.static void
Crypto.sign
(PrivateKey key, Signable signable) Signs the given signable with the PrivateKey.static byte[]
Crypto.signMessage
(PrivateKey key, byte[] message) Creates signature from the given message with the PrivateKey. -
Uses of CryptoException in org.drasyl.identity
Methods in org.drasyl.identity that throw CryptoExceptionModifier and TypeMethodDescriptionstatic CompressedKeyPair
static CompressedKeyPair
static CompressedKeyPair
CompressedKeyPair.of
(PublicKey publicKey, PrivateKey privateKey) static CompressedPrivateKey
Converts aString
into aCompressedPrivateKey
.static CompressedPrivateKey
CompressedPrivateKey.of
(PrivateKey key) Converts aPrivateKey
into aCompressedPrivateKey
.static CompressedPublicKey
Converts aString
into aCompressedPublicKey
.static CompressedPublicKey
Converts aPublicKey
into aCompressedPublicKey
.static Identity
static Identity
Identity.of
(ProofOfWork proofOfWork, String publicKey, String privateKey) CompressedPrivateKey.toUncompressedKey()
Returns thePrivateKey
object of this compressed private key.CompressedPublicKey.toUncompressedKey()
Returns thePublicKey
object of this compressed public key.CompressedKeyPair.toUncompressedKeyPair()
Constructors in org.drasyl.identity that throw CryptoExceptionModifierConstructorDescriptionCompressedPrivateKey
(String compressedKey) Creates a new compressed private key from the given string.Creates a new compressed private key from the given private key.CompressedPublicKey
(String compressedKey) Creates a new compressed public key from the given string.Creates a new compressed public key from the given public key.protected