-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(KClass): support KClass interface
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
tink/src/iosMain/kotlin/io/github/ryunen344/tink/util/KClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.github.ryunen344.tink.util | ||
|
||
import io.github.ryunen344.tink.aead.Aead | ||
import io.github.ryunen344.tink.daead.DeterministicAead | ||
import io.github.ryunen344.tink.hybrid.HybridDecrypt | ||
import io.github.ryunen344.tink.hybrid.HybridEncrypt | ||
import io.github.ryunen344.tink.mac.Mac | ||
import io.github.ryunen344.tink.signature.PublicKeySign | ||
import io.github.ryunen344.tink.signature.PublicKeyVerify | ||
import kotlin.reflect.KClass | ||
|
||
val Aead.kclass: KClass<Aead> | ||
get() = Aead::class | ||
|
||
val DeterministicAead.kclass: KClass<DeterministicAead> | ||
get() = DeterministicAead::class | ||
|
||
val HybridDecrypt.kclass: KClass<HybridDecrypt> | ||
get() = HybridDecrypt::class | ||
|
||
val HybridEncrypt.kclass: KClass<HybridEncrypt> | ||
get() = HybridEncrypt::class | ||
|
||
val Mac.kclass: KClass<Mac> | ||
get() = Mac::class | ||
|
||
val PublicKeySign.kclass: KClass<PublicKeySign> | ||
get() = PublicKeySign::class | ||
|
||
val PublicKeyVerify.kclass: KClass<PublicKeyVerify> | ||
get() = PublicKeyVerify::class |