cryptography-provider-apple
Provides implementation of CryptographyProvider via CommonCrypto
For supported targets and algorithms, please consult Supported primitives section
Limitations
KeyFormat: doesn't support
JWK
key format yetEC.PrivateKey:
DER
,PEM
,DER.SEC1
,PEM.SEC1
: to decode,publicKey
field should be present inEcPrivateKey
structure specified in RFC5915. Not all implementations in the wild include this field, as it's optional.RAW
: encoding is supported, but decoding is not supported
Example
val provider = CryptographyProvider.Apple // or CryptographyProvider.Default
// get some algorithm
provider.get(SHA512)
Content copied to clipboard
Using in your projects
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-provider-apple:0.4.0")
}
Content copied to clipboard
Packages
Link copied to clipboard
Provides implementation of CryptographyProvider via CommonCrypto