zhuhaow / NEKit

A toolkit for Network Extension Framework
https://zhuhaow.github.io/NEKit
BSD 3-Clause "New" or "Revised" License
2.84k stars 672 forks source link

How to support aes-256-gcm? #285

Closed giftedunicorn closed 4 years ago

itsjohnye commented 4 years ago

any hint or pathway please? @zhuhaow

zhuhaow commented 4 years ago

CommonCrypto doesn't expose the GCM related API but you can use it anyway if you want. https://opensource.apple.com/source/CommonCrypto/CommonCrypto-60074/include/CommonCryptorSPI.h

Or if you only aim iOS 13+, you can use CryptoKit.

I believe many other third party libraries also provide that.