Uses of Class
org.drasyl.crypto.CryptoException
Packages that use CryptoException
Package
Description
Classes for crypto-related operations.
Libsodium wrappers for the crypto operations of drasyl
Contains classes necessary for encrypted peer/application communication.
-
Uses of CryptoException in org.drasyl.crypto
Methods in org.drasyl.crypto that throw CryptoExceptionModifier and TypeMethodDescriptionCrypto.convertIdentityKeyToKeyAgreementKey(IdentityPublicKey publicKey) Converts the given ed25519 long timepublicKeyinto a curve25519 key for (on-demand) key agreement.Crypto.convertLongTimeKeyPairToKeyAgreementKeyPair(KeyPair<IdentityPublicKey, IdentitySecretKey> keyPair) Converts the given ed25519 long timekeyPairinto a curve25519 key pair for (on-demand) key agreement.byte[]Crypto.decrypt(byte[] cipher, byte[] authTag, Nonce nonce, SessionPair sessionPair) Decrypt the givencipher, by verify theauthTagas an authentication tag, uses the givennonceand decrypting with the rx part of thesessionPair.byte[]Crypto.encrypt(byte[] message, byte[] authTag, Nonce nonce, SessionPair sessionPair) Encrypts the givenmessage, by addingauthTagas an authentication tag, using the given (hopefully fresh)nonceand encrypting with the tx part of thesessionPair.Crypto.generateEphemeralKeyPair()Generates a new curve25519 key pair for key exchange.Crypto.generateLongTimeKeyPair()Generates a new ed25519 key pair for signing and on-demand encryption.<P extends PublicKey,S extends SecretKey>
SessionPairCrypto.generateSessionKeyPair(KeyPair<P, S> myKeyPair, PublicKey receiverPublicKey) Generates session key pair from themyKeyPairandreceiverKeyPair.byte[]Crypto.sha256(byte[] input) Generates a SHA-256 hash of the given input.byte[]Crypto.sign(byte[] message, IdentitySecretKey secretKey) Creates a signature for the givenmessagewith the givensecretKeyin detached mode (signature is not appended to message, rather it is standalone). -
Uses of CryptoException in org.drasyl.crypto.sodium
Methods in org.drasyl.crypto.sodium that throw CryptoExceptionModifier and TypeMethodDescriptionDrasylSodiumWrapper.cryptoKxClientSessionKeys(byte[] clientPk, byte[] clientSk, byte[] serverPk) This function computes a pair of shared keys (rx and tx) using the client's public key clientPk, the client's secret key clientSk and the server's public key serverPk.DrasylSodiumWrapper.cryptoKxServerSessionKeys(byte[] serverPk, byte[] serverSk, byte[] clientPk) This function computes a pair of shared keys (rx and tx) using the client's public key clientPk, the server's secret key serverSk and the server's public key serverPk.byte[]DrasylSodiumWrapper.sha256(byte[] in) Generates a SHA-256 hash of the given input. -
Uses of CryptoException in org.drasyl.node.channel
Methods in org.drasyl.node.channel that throw CryptoExceptionModifier and TypeMethodDescriptionprotected voidDrasylNodeChannelInitializer.armStage(DrasylChannel ch) This stage arms outbound and disarms inbound messages. -
Uses of CryptoException in org.drasyl.node.handler.crypto
Methods in org.drasyl.node.handler.crypto that throw CryptoExceptionModifier and TypeMethodDescriptionprotected ArmHeaderAbstractArmHandler.arm(io.netty.channel.ChannelHandlerContext ctx, Agreement agreement, io.netty.buffer.ByteBuf msg) PendingAgreement.buildAgreement(Crypto crypto, long staleAt) protected ObjectAbstractArmHandler.unarm(io.netty.channel.ChannelHandlerContext ctx, Agreement agreement, Nonce nonce, io.netty.buffer.ByteBuf byteBuf) Constructors in org.drasyl.node.handler.crypto that throw CryptoExceptionModifierConstructorDescriptionprotectedAbstractArmHandler(Crypto crypto, Duration expireAfter, int maxAgreements, Identity identity, IdentityPublicKey peerIdentity) PFSArmHandler(Crypto crypto, Duration expireAfter, Duration retryInterval, int maxAgreements, Identity identity, IdentityPublicKey peerIdentity)