ROCCA-S: an efficient AES-based encryption scheme

July 24, 2025 ยท View on GitHub

This is an implementation of ROCCA-S: an efficient AES-based encryption scheme for beyond 5G, a fast authenticated encryption scheme optimized for platforms with AES-NI or ARM crypto extensions.

ROCCA-S has a 256 bit key size, a 128 bit nonce, processes 256 bit message blocks and outputs a 256 bit authentication tag.

Performance

ROCCA-S demonstrates high encryption performance. However, it's important to note that ROCCA-S is designed with asymmetric performance characteristics - decryption is expected to be slower than encryption.

Benchmark Results

Running on modern hardware with AES acceleration (Apple Silicon M4):

Message SizeEncryption SpeedDecryption SpeedAsymmetry Factor
64 bytes4.67 Gbps5.45 Gbps0.86x
256 bytes23.91 Gbps24.01 Gbps1.00x
1 KB70.34 Gbps60.62 Gbps1.16x
4 KB140.54 Gbps89.47 Gbps1.57x
16 KB169.52 Gbps107.31 Gbps1.58x
64 KB189.78 Gbps111.82 Gbps1.70x

As shown in the results, the performance asymmetry becomes more pronounced with larger message sizes, with decryption being up to 1.7x slower than encryption for 64 KB messages.

If your application requires consistent performance for both encryption and decryption operations, consider using another symmetric AEAD scheme.