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.47k stars 165 forks source link

Add support for AES CTR mode in _CryptoExtras #220

Closed Lukasa closed 8 months ago

Lukasa commented 8 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.