apple / swift-crypto

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
https://apple.github.io/swift-crypto
Apache License 2.0
1.43k stars 151 forks source link

Add support for AES CTR mode in _CryptoExtras #220

Closed Lukasa closed 4 months ago

Lukasa commented 4 months ago

Add support for AES Counter mode

Motivation:

AES in counter mode is not an uncommon primitive to see. While this isn't as good as an AEAD construction, there are some cases in which it is necessary to use this mode.

Modifications:

Result:

Counter mode support is available.