GithubHelp home page GithubHelp logo

lux1m / rapido-relay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mpiraux/rapido

0.0 0.0 0.0 5.99 MB

rapido is a minimal implementation of TCPLS atop picotls

C++ 0.01% Python 0.29% Perl 0.50% C 97.58% PowerShell 0.04% Makefile 0.06% CMake 0.97% DTrace 0.52% Shell 0.03%

rapido-relay's Introduction

rapido

rapido is a minimal implementation of TCPLS atop picotls. It follows the TCPLS IETF draft specification.

Building rapido

If you have cloned rapido from git then ensure that you have initialised the submodules:

% git submodule update --init

Build using cmake:

% cmake .
% make rapido
% make check

Using the rapido command

Run the test server (at 127.0.0.1:8443):

% ./rapido -c /path/to/certificate.pem -k /path/to/private-key.pem  127.0.0.1 8443

Connect to the test server:

% ./rapido 127.0.0.1 8443

Other options are documented in the command:

% ./rapido -h

Public test server

We host a public server running an instance of the test server at 192.168.1.35 and 2a02:a03f:65ff:e300:c6c6:30e2:fda5:45e9 on port 443. Be aware that it can only accept a single TCPLS session at a time. This test server is here for researchers to test their own implementation of TCPLS. After establishing a session, the server will continuously send data on its first stream until the client terminates the session.

To connect over IPv4 to the server:

./rapido -s 10 -n localhost 130.104.229.29 443

Documentation & API

The documentation and API can be found at https://mpiraux.github.io/rapido/. The rapido.h header file defines the functions and data structures available to the application leveraging TCPLS.

picotls

Picotls is a TLS 1.3 (RFC 8446) protocol stack written in C, with the following features:

Primary goal of the project is to create a fast, tiny, low-latency TLS 1.3 implementation that can be used with the HTTP/2 protocol stack and the upcoming QUIC stack of the H2O HTTP/2 server.

The TLS protocol implementation of picotls is licensed under the MIT license.

License and the cryptographic algorithms supported by the crypto bindings are as follows:

Binding License Key Exchange Certificate AEAD cipher
minicrypto CC0 / 2-clause BSD secp256r1, x25519 ECDSA (secp256r1)1 AES-128-GCM, chacha20-poly1305
OpenSSL OpenSSL secp256r1, secp384r1, secp521r1, x25519 RSA, ECDSA (secp256r1, secp384r1, secp521r1), ed25519 AES-128-GCM, AES-256-GCM, chacha20-poly1305

Note 1: Minicrypto binding is capable of signing a handshake using the certificate's key, but cannot verify a signature sent by the peer.

Building picotls

If you have cloned picotls from git then ensure that you have initialised the submodules:

% git submodule init
% git submodule update

Build using cmake:

% cmake .
% make
% make check

A dedicated documentation for using picotls with Visual Studio can be found in WindowsPort.md.

Developer documentation

Developer documentation should be available on the wiki.

Using the cli command

Run the test server (at 127.0.0.1:8443):

% ./cli -c /path/to/certificate.pem -k /path/to/private-key.pem  127.0.0.1 8443

Connect to the test server:

% ./cli 127.0.0.1 8443

Using resumption:

% ./cli -s session-file 127.0.0.1 8443

The session-file is read-write. The cli server implements a single-entry session cache. The cli server sends NewSessionTicket when it first sends application data after receiving ClientFinished.

Using early-data:

% ./cli -s session-file -e 127.0.0.1 8443

When -e option is used, client first waits for user input, and then sends CLIENT_HELLO along with the early-data.

License

The software is provided under the MIT license. Note that additional licences apply if you use the minicrypto binding (see above).

rapido-relay's People

Contributors

kazuho avatar huitema avatar mpiraux avatar deweerdt avatar lux1m avatar gfx avatar jfoote avatar larseggert avatar victorstewart avatar robguima avatar bkchr avatar toru avatar alagoutte avatar lekensteyn avatar tbarbette avatar steschu77 avatar mattcaswell avatar i110 avatar hfujita avatar ha0li avatar mattn avatar xiaoyinl avatar tatsuhiro-t avatar syohex avatar neheb avatar maxsharabayko avatar omasanori avatar martinthomson avatar maksqwe avatar herumi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.