Encryption & authentication methods
fastd supports various combinations of ciphers and authentication schemes using different method providers. All ciphers, message authentication codes (MACs) and method providers can be disabled during compilation to reduce the binary size.
See Benchmarks for an overview of the performance of the different methods.
Recommended methods
The method salsa2012+umac
is recommended for authenticated encyption. null+salsa2012+umac
is the
recommended method for authenticated-only operation.
Salsa20/12 is a stream cipher with very high speed and a very comfortable security margin. It has been chosed for the software profile in the eSTREAM project in 2008.
UMAC is an extremely fast message authentication code which is provably secure and optimized for software implementations.
List of methods
Encrypted methods
Method |
Method provider |
Cipher |
MAC |
Notes |
---|---|---|---|---|
|
generic-gmac |
aes128-ctr |
ghash |
|
|
generic-gmac |
salsa20 |
ghash |
|
|
generic-gmac |
salsa2012 |
ghash |
|
|
generic-umac |
aes128-ctr |
uhash |
|
|
generic-umac |
salsa20 |
uhash |
|
|
generic-umac |
salsa2012 |
uhash |
|
|
generic-poly1305 |
aes128-ctr |
none 1 |
|
|
generic-poly1305 |
salsa20 |
none 1 |
|
|
generic-poly1305 |
salsa2012 |
none 1 |
This list is not exhaustive. It is possible to combine different ciphers for data and authentication tag encryption using the composed-gmac and composed-umac method providers; these methods aren’t listed here as this is not very useful.
Authenticated-only methods
Method |
Method provider |
Cipher |
MAC |
Notes |
---|---|---|---|---|
|
composed-gmac |
aes128-ctr |
ghash |
|
|
composed-gmac |
salsa20 |
ghash |
|
|
composed-gmac |
salsa2012 |
ghash |
|
|
composed-umac |
aes128-ctr |
uhash |
|
|
composed-umac |
salsa20 |
uhash |
|
|
composed-umac |
salsa2012 |
uhash |
Methods without security
Method |
Method provider |
Cipher |
MAC |
Notes |
---|---|---|---|---|
|
null-l2tp |
none |
none |
|
|
null |
none |
none |
- 1(1,2,3)
The MAC is integrated in the method provider.
- 2(1,2,3,4,5)
AES is very slow without OpenSSL support. OpenSSL’s AES implementation may be suspect to cache timing side channels when no hardware support like AES-NI is available.
- 3(1,2,3)
Poly1305 is very slow on embedded systems.
- 4(1,2,3,4,5,6)
The cipher is used to encrypt the authentication tag only, the actual data is transmitted unencrypted.
- 5(1,2)
Only authentication of peers’ IP addresses, but no encryption or authentication of any data is provided.