Compare commits

..
6 changed files with 6 additions and 19 deletions

View file

@ -10,9 +10,6 @@ minify_html = false
author = "tuxmain" author = "tuxmain"
# Do not copy assets in each locale, use hard links instead
hard_link_static = true
[slugify] [slugify]
paths = "off" paths = "off"
taxonomies = "off" taxonomies = "off"

View file

@ -8,7 +8,7 @@ title = "homepage"
* Human being until proven otherwise; * Human being until proven otherwise;
* a.k.a. Pascal Engélibert; * a.k.a. Pascal Engélibert;
* Libre developer, PhD student at INSA Lyon; * Libre developper, PhD student at INSA Lyon;
* Master degree of cryptology & computer security; * Master degree of cryptology & computer security;
* Rust, C, Python, PHP, web, French, English, Spanish, Esperanto; * Rust, C, Python, PHP, web, French, English, Spanish, Esperanto;
* Prefers tabulations; * Prefers tabulations;

View file

@ -51,7 +51,7 @@ $$C = E(K, P)$$
This mode of operation is called ECB for Electronic Code Book. It has, however, fatal flaws: This mode of operation is called ECB for Electronic Code Book. It has, however, fatal flaws:
* If two blocks are identical, an adversary can spot them and learn information. * If two blocks are identical, an adversary can spot them and learn information.
* An adversary who has access to an encryption oracle (i.e. they can obtain the ciphertext from a plaintext, that could happen if you store incoming messages in the encrypted files) can try different values and decrypt other blocks by bruteforcing well-known formats. * A adversary who has access to an encryption oracle (i.e. they can obtain the ciphertext from a plaintext, that could happen if you store incoming messages in the encrypted files) can try different values and decrypt other blocks by bruteforcing well-known formats.
ECB alone is almost never a good idea. ECB alone is almost never a good idea.
@ -184,15 +184,15 @@ Here are the benchmark results (encrypting 100 times 128kB):
| XTS | unaligned u128 LE | 8 | 2499 | 2448 | | XTS | unaligned u128 LE | 8 | 2499 | 2448 |
| XTS | unaligned u128 LE | 16 | 2399 | 2445 | | XTS | unaligned u128 LE | 16 | 2399 | 2445 |
| XTS | unaligned u128 LE | 32 | 2373 | 2420 | | XTS | unaligned u128 LE | 32 | 2373 | 2420 |
| XTS | unaligned u128 LE | 64 | 2361 | **2408** | | XTS | unaligned u128 LE | 64 | 2361 | 2408 |
| XTS | aligned u128 | 8 | 2549 | 2447 | | XTS | aligned u128 | 8 | 2549 | 2447 |
| XTS | aligned u128 | 16 | 2449 | 2445 | | XTS | aligned u128 | 16 | 2449 | 2445 |
| XTS | aligned u128 | 32 | 2424 | 2420 | | XTS | aligned u128 | 32 | 2424 | 2420 |
| XTS | aligned u128 | 64 | 2412 | **2408** | | XTS | aligned u128 | 64 | 2412 | 2408 |
| XTS | [u32; 4] | 8 | 2495 | 2493 | | XTS | [u32; 4] | 8 | 2495 | 2493 |
| XTS | [u32; 4] | 16 | 2395 | 2490 | | XTS | [u32; 4] | 16 | 2395 | 2490 |
| XTS | [u32; 4] | 32 | 2370 | 2465 | | XTS | [u32; 4] | 32 | 2370 | 2465 |
| XTS | [u32; 4] | 64 | **2357** | 2453 | | XTS | [u32; 4] | 64 | 2357 | 2453 |
The fastest is XTS with one key (and salted sector number) and long sectors. The fastest is XTS with one key (and salted sector number) and long sectors.
@ -202,9 +202,7 @@ Sectors must not be too long, however, as random access to block j needs computi
Damn, I forgot to tell about erasing and programming flash memories! Damn, I forgot to tell about erasing and programming flash memories!
Flash memories work in a peculiar way: you first have to erase some part of the memory (by filling it with ones) then you can write data by replacing some ones with zeros (that's called "programming"). But that's not all. Each operation has a minimum size. You can generally (it depends on the chip) program down to 16 bytes, but you can only erase by chunks of (again, generally) 512 bytes! Flash memories work in a peculiar way: you first have to erase some part of the memory (by filling it with ones) then you can write data by replacing some zeros with ones. But that's not all. Each operation has a minimum size. You can generally (it depends on the chip) program down to 16 bytes, but you can only erase by chunks of (again, generally) 512 bytes!
Therefore, the AES 16-byte blocks minimize useless writes. That's ideal.
## The key ## The key

View file

@ -3,10 +3,6 @@ title = "Liens intéressants"
insert_anchor_links = "left" insert_anchor_links = "left"
+++ +++
![Illustration picture: aligned arch doors and bookshelves with old books in a library](illustration.webp)
_Illustration: CC By-SA 3.0 par [Linsengericht sur Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Kulissenbibliothek_Franckesche_Stiftungen_1.JPG)_
Voici plein de trucs chouette. Cherchez un mot-clé avec `CTRL+F`. Voici plein de trucs chouette. Cherchez un mot-clé avec `CTRL+F`.
Mots-clés : astronomie, BD, blog, féminisme, fun, histoire, maths, philo, physique, podcast, politique, santé, scepticisme, science, sociologie, technologie, vidéo Mots-clés : astronomie, BD, blog, féminisme, fun, histoire, maths, philo, physique, podcast, politique, santé, scepticisme, science, sociologie, technologie, vidéo

View file

@ -3,10 +3,6 @@ title = "Cool links"
insert_anchor_links = "left" insert_anchor_links = "left"
+++ +++
![Illustration : alignement d'arches entre des étagères pleines de vieux livres reliés](illustration.webp)
_Illustration: CC By-SA 3.0 par [Linsengericht sur Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Kulissenbibliothek_Franckesche_Stiftungen_1.JPG)_
Here is some cool stuff. Use search (`CTRL+F`) to filter by keyword. Here is some cool stuff. Use search (`CTRL+F`) to filter by keyword.
Existing keywords: astronomy, blog, comic strip, fun, health, history, mathematics, philosophy, physics, podcast, politics, tech, science, skepticism, video Existing keywords: astronomy, blog, comic strip, fun, health, history, mathematics, philosophy, physics, podcast, politics, tech, science, skepticism, video

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB