- BinaryId is now open

- Container returns data on the keys used to decrypt it
This commit is contained in:
sergeych committed 2024-08-28 09:24:33 +02:00
1 parent d0fa74e089
commit 14a63a05c2
8 files changed
+109 -17

No files matched your search

+4 -1
View File
@@ -164,7 +164,9 @@ class KeysTest {
assertContentEquals(pk1.keyBytes, pk1.id.binaryTag.take(32).toUByteArray())
assertContentEquals(pk1.keyBytes, sk1.id.binaryTag.take(32).toUByteArray())
assertEquals(pk1, pk1.id.id.asPublicKey)
}
@Test
fun asymmetricKeySerializationTest() = runTest {
initCrypto()
@@ -271,6 +273,7 @@ class KeysTest {
// not hashed!
assertContentEquals(k.verifyingKey.keyBytes, dk2.id.binaryTag.take(32).toUByteArray())
assertContentEquals(k.verifyingKey.keyBytes, dk1.id.binaryTag.take(32).toUByteArray())
// and restored from id should be the same:
assertEquals( k.verifyingKey, dk2.id.id.asVerifyingKey)
}
}