Uses of Class
org.drasyl.handler.remote.protocol.Nonce
Packages that use Nonce
Package
Description
Classes for crypto-related operations.
The protocol used for communication with remote peers.
Contains classes necessary for encrypted peer/application communication.
-
Uses of Nonce in org.drasyl.crypto
Methods in org.drasyl.crypto with parameters of type NonceModifier and TypeMethodDescriptionbyte[]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. -
Uses of Nonce in org.drasyl.handler.remote.protocol
Methods in org.drasyl.handler.remote.protocol that return NonceModifier and TypeMethodDescriptionabstract NoncePublicHeader.getNonce()RemoteMessage.getNonce()static NonceNonce.of(byte[] bytes) static Noncestatic NonceNonce.of(ImmutableByteArray bytes) static NonceNonce.randomNonce()Static factory to retrieve a randomly generatedNonce.Methods in org.drasyl.handler.remote.protocol with parameters of type NonceModifier and TypeMethodDescriptionstatic AcknowledgementMessageAcknowledgementMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time) Creates new acknowledgement message.static ApplicationMessageApplicationMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf payload) Creates new application message.static ArmedProtocolMessageArmedProtocolMessage.of(Nonce nonce, HopCount hopCount, int networkId, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes) Creates an armed message.static HelloMessageHelloMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates newHelloMessage.static HelloMessageHelloMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, ImmutableByteArray signature, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage.static PublicHeaderPublicHeader.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork) static UnarmedProtocolMessageUnarmedProtocolMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes) Creates an unarmed message.static UniteMessageUniteMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, DrasylAddress address, Set<InetSocketAddress> inetAddresses) Creates new unit message. -
Uses of Nonce in org.drasyl.node.handler.crypto
Methods in org.drasyl.node.handler.crypto that return NonceMethods in org.drasyl.node.handler.crypto with parameters of type NonceModifier and TypeMethodDescriptionstatic ArmHeaderArmHeader.of(AgreementId agreementId, Nonce nonce, io.netty.buffer.ByteBuf data) protected ObjectAbstractArmHandler.unarm(io.netty.channel.ChannelHandlerContext ctx, Agreement agreement, Nonce nonce, io.netty.buffer.ByteBuf byteBuf) Constructors in org.drasyl.node.handler.crypto with parameters of type NonceModifierConstructorDescriptionArmHeader(AgreementId agreementId, Nonce nonce, io.netty.buffer.ByteBuf data)