forked from sergeych/crypto2
keys refactoring: removed separate UniversalKey, it is now a direct base of any real keys instead of deleted KeyInstance
This commit is contained in:
1 parent
5c97e857fc
commit
46a8b5bc06
12 files changed
+103
-184
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package net.sergeych.tools
|
||||
|
||||
import net.sergeych.bipack.BipackDecoder
|
||||
import net.sergeych.bipack.BipackEncoder
|
||||
|
||||
|
||||
inline fun <reified T>bipack(value: T): UByteArray = BipackEncoder.encode(value).toUByteArray()
|
||||
|
||||
inline fun <reified T>biunpack(value: UByteArray): T = BipackDecoder.decode(value.toByteArray())
|
||||
|
||||
Reference in new issue
Block a user