feat: crypto aes

main
sudo pacman -Syu 2023-11-08 00:56:37 +07:00
parent 0bcf9b775e
commit 8225187e55
2 changed files with 29 additions and 0 deletions

View File

@ -141,6 +141,24 @@
<span class="pl-ent">bob </span><span class="pl-k">--&gt;&gt;</span> <span class="pl-ent">alice</span><span class="pl-k">:</span> <span class="pl-s">return ERROR</span></pre>
</div>
<p><strong>HMAC</strong> is MAC using hash</p>
<h2 id="user-content-aes">
<a class="heading-link" href="#aes"
>AES<span aria-hidden="true" class="octicon octicon-link"></span
></a>
</h2>
<p>
Currently (2023) the world using AES-128 which take a key 128 bits == 16
bytes/
</p>
<ul>
<li>Take a variable-length key</li>
<li>Take plaintext of 128 bits</li>
<li>Give ciphertext of 128 bits</li>
</ul>
<p>
AES is kind of cipher, handle fixed-size plaintext so we called
<strong>block cipher</strong>.
</p>
<div>
Feel free to ask me via

View File

@ -66,3 +66,14 @@ sequenceDiagram
```
**HMAC** is MAC using hash
## AES
Currently (2023) the world using AES-128 which take a key 128 bits == 16 bytes/
- Take a variable-length key
- Take plaintext of 128 bits
- Give ciphertext of 128 bits
AES is kind of cipher, handle fixed-size plaintext so we called **block
cipher**.