HybridEncryption
979899100101102103104
private byte[] encryptIntroductionBuffer(ByteBuffer buffer, TorPublicKey key) { final int len = buffer.position(); final byte[] payload = new byte[len]; buffer.flip(); buffer.get(payload); final HybridEncryption enc = new HybridEncryption(); return enc.encrypt(payload, key); }