CryptoKit¶
Provides implementation of CryptographyProvider via CryptoKit
For supported targets and algorithms, please consult Supported primitives section
Limitations¶
- KeyFormat: doesn’t support
JWK
key format yet - AES.GCM supports only a default tag size of 96 bits
Example¶
val provider = CryptographyProvider.CryptoKit // or CryptographyProvider.Default
// get some algorithm
provider.get(SHA512)
Using in your projects¶
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-provider-cryptokit:0.5.0")
}