日時: | 2022-03-28 |
---|---|
作: | voluntas |
バージョン: | 2022.5 |
URL: | https://voluntas.github.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Zig 作者のコードを参考にした | |
//! https://gist.github.com/andrewrk/34c21bdc1600b0884a3ab9fa9aa485b8 | |
//! https://gist.github.com/karlseguin/53bb8ebf945b20aa0b7472d9d30de801 | |
//! 非同期版 tcp echo server | |
const std = @import("std"); | |
const net = std.net; | |
const os = std.os; | |
const mem = std.mem; | |
const log = std.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(benchmark). | |
-export([main/0]). | |
%% 1100 バイト中 1000 バイトを暗号化する | |
%% AES-128-CTR + HMAC-SHA1 はお尻に 10 バイトつけるので 1110 バイトになる | |
%% AES-128-GCM はお尻に 16 バイトつけるので 1116 バイトになる | |
%% TODO: IV は固定ではなく SeqNum にすべき |
日時 | 2024-11-12 |
---|---|
バージョン | 2024.5 |
作 | 時雨堂 |
URL | https://sora-cloud.shiguredo.jp/ |
日時: | 2021-01-29 |
---|---|
作: | @voluntas |
バージョン: | 2021.2 |
url: | https://voluntas.github.io/ |
更新: | 2023-12-08 |
---|---|
作者: | @voluntas |
バージョン: | 2023.2 |
URL: | https://voluntas.github.io/ |
タイポなどは Twitter の @voluntas までお願いします。
$ openssl speed -evp aes-128-gcm
Doing aes-128-gcm for 3s on 16 size blocks: 31121413 aes-128-gcm's in 3.00s
Doing aes-128-gcm for 3s on 64 size blocks: 8021030 aes-128-gcm's in 3.00s
Doing aes-128-gcm for 3s on 256 size blocks: 1963731 aes-128-gcm's in 3.00s
Doing aes-128-gcm for 3s on 1024 size blocks: 489641 aes-128-gcm's in 3.00s
Doing aes-128-gcm for 3s on 8192 size blocks: 61085 aes-128-gcm's in 3.00s
LibreSSL 2.8.3
Sora Labo の使い方は把握している前提の資料です
- Sora Labo を利用します
- macOS 10.15 であること
- Safari Techonlogy Preview (Safari TP) 105 以降であること