https://github.com/jedisct1/rust-rocca-s
ROCCA-S cipher implementation for Rust.
https://github.com/jedisct1/rust-rocca-s
cipher rocca rocca-s
Last synced: about 1 year ago
JSON representation
ROCCA-S cipher implementation for Rust.
- Host: GitHub
- URL: https://github.com/jedisct1/rust-rocca-s
- Owner: jedisct1
- Created: 2021-10-21T18:23:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T14:22:46.000Z (over 1 year ago)
- Last Synced: 2025-04-13T14:51:03.411Z (about 1 year ago)
- Topics: cipher, rocca, rocca-s
- Language: Rust
- Homepage:
- Size: 29.3 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ROCCA-S for Rust
This is a Rust implementation of the [ROCCA-S: an efficient AES-based encryption scheme for beyond 5G](https://www.ietf.org/archive/id/draft-nakano-rocca-s-03.html) authenticated cipher, ported from
[the Zig implementation](https://github.com/jedisct1/zig-rocca).
ROCCA-S is has a 256 bit key size, a 128 bit nonce, processes 256 bit message blocks and outputs a 256 bit authentication tag.
# Cargo flags
- `std`: allow dynamic allocations
`std` is the default.
**IMPORTANT:** In order to get decent code on x86 and x86_64 CPUs, you should set
additional `rustc` flags prior to compiling that crate or a project using it:
```sh
export RUSTFLAGS="-Ctarget-feature=+aes,+sse4.1"
```