# DAT - Distributed Access Token
## Document
### [DAT Run Online](https://dat.saro.me)
### [What is DAT](https://dat.saro.me/--/intro)
### [Rust Example](https://dat.saro.me/--/libs/cargo-dat)
## support signature algorithm
| P256 | secp256r1 |
| P384 | secp384r1 |
| P521 | secp521r1 |
## support crypto algorithm
| AES128GCMN | aes-128-gcm n(nonce + body) |
| AES256GCMN | aes-256-cbc n(nonce + body) |
# Performance
- random plain and secure test
- mac mini m4 2024 basic (10 core)
- release compile
- [bench_test.rs](tests/bench_test.rs)
```
Testing started at 3:17 AM ...
Finished `release` profile [optimized] target(s) in 0.04s
Running tests/bench_test.rs (target/release/deps/bench_test-6cac38915632bad6)
performance test (plain, secure)
plain: 6e5VO0NNhA5ZEngRZGNMvX032YoLZyYAqlMAnB6DFjf2rHBWQZvDuEx1OVio3adkyIzYsPVkcmUeJPcZs2WXyxSDGWnz26Y3hpR5
secure: GNeDpj4d0fDKapZ9yZIV6qiFcl5Mkd7fRXxZM6Fm5hM0P39DYy6Qk5jqSJptBQrItkVxyOmAFmdJtXGaq7PmyN8bq9Oq0Ex3UDWI
Multi-Thread
P256 AES128GCMN Issue * 10000 : 24ms
P256 AES128GCMN Parse * 10000 : 51ms
P256 AES256GCMN Issue * 10000 : 22ms
P256 AES256GCMN Parse * 10000 : 48ms
P384 AES128GCMN Issue * 10000 : 79ms
P384 AES128GCMN Parse * 10000 : 194ms
P384 AES256GCMN Issue * 10000 : 80ms
P384 AES256GCMN Parse * 10000 : 183ms
P521 AES128GCMN Issue * 10000 : 155ms
P521 AES128GCMN Parse * 10000 : 303ms
P521 AES256GCMN Issue * 10000 : 152ms
P521 AES256GCMN Parse * 10000 : 302ms
Single-Thread
P256 AES128GCMN Issue * 10000 : 129ms
P256 AES128GCMN Parse * 10000 : 295ms
P256 AES256GCMN Issue * 10000 : 127ms
P256 AES256GCMN Parse * 10000 : 284ms
P384 AES128GCMN Issue * 10000 : 473ms
P384 AES128GCMN Parse * 10000 : 1066ms
P384 AES256GCMN Issue * 10000 : 472ms
P384 AES256GCMN Parse * 10000 : 1064ms
P521 AES128GCMN Issue * 10000 : 830ms
P521 AES128GCMN Parse * 10000 : 1669ms
P521 AES256GCMN Issue * 10000 : 829ms
P521 AES256GCMN Parse * 10000 : 1652ms
```