public Bytes encrypt(final Bytes in) throws InvalidCipherTextException {
    return Bytes.wrap(encrypt(in.toArray(), 0, in.size(), null));
  }
Encrypts the provided plaintext.

@param in The plaintext.
@return The ciphertext.
@throws InvalidCipherTextException Thrown if an error occurred during encryption.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/handshake/ecies/ECIESEncryptionEngine.java