Default Crypto Service
Default implementation of a crypto service for iOS.
The primary goal is to provide a minimal implementation so that unit tests in the commonTest module run successfully.
Beware: It does not implement encryption, decryption, key agreement and message digest correctly.
Properties
certificate
Link copied to clipboard
May be used in at.asitplus.wallet.lib.cbor.CoseService to transport the signing key for a COSE structure. a null value signifies that raw public keys are used and no certificate is present
May be used in at.asitplus.wallet.lib.cbor.CoseService to transport the signing key for a COSE structure. a null value signifies that raw public keys are used and no certificate is present
cose Algorithm
Link copied to clipboard
identifier
Link copied to clipboard
jws Algorithm
Link copied to clipboard
Functions
decrypt
Link copied to clipboard
encrypt
Link copied to clipboard
abstract fun encrypt(key: ByteArray, iv: ByteArray, aad: ByteArray, input: ByteArray, algorithm: JweEncryption): KmmResult<AuthenticatedCiphertext>
open override fun encrypt(key: ByteArray, iv: ByteArray, aad: ByteArray, input: ByteArray, algorithm: JweEncryption): KmmResult<AuthenticatedCiphertext>
generate Ephemeral Key Pair
Link copied to clipboard
message Digest
Link copied to clipboard
perform Key Agreement
Link copied to clipboard
abstract fun performKeyAgreement(ephemeralKey: JsonWebKey, algorithm: JweAlgorithm): KmmResult<ByteArray>
abstract fun performKeyAgreement(ephemeralKey: EphemeralKeyHolder, recipientKey: JsonWebKey, algorithm: JweAlgorithm): KmmResult<ByteArray>
open override fun performKeyAgreement(ephemeralKey: JsonWebKey, algorithm: JweAlgorithm): KmmResult<ByteArray>
open override fun performKeyAgreement(ephemeralKey: EphemeralKeyHolder, recipientKey: JsonWebKey, algorithm: JweAlgorithm): KmmResult<ByteArray>
open override fun performKeyAgreement(ephemeralKey: JsonWebKey, algorithm: JweAlgorithm): KmmResult<ByteArray>
open override fun performKeyAgreement(ephemeralKey: EphemeralKeyHolder, recipientKey: JsonWebKey, algorithm: JweAlgorithm): KmmResult<ByteArray>
to Public Key
Link copied to clipboard