Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
test: verify the signing method
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Bushko <kostiantyn.bushko@yahoo.com>
  • Loading branch information
Kostiantyn Bushko committed Apr 27, 2020
1 parent b7cb71a commit 595a6ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libaktualizr/crypto/keymanager_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ TEST(KeyManager, SignTuf) {
EXPECT_EQ(signed_json["signatures"][0]["keyid"].asString(),
"6a809c62b4f6c2ae11abfb260a6a9a57d205fc2887ab9c83bd6be0790293e187");
EXPECT_NE(signed_json["signatures"][0]["sig"].asString().size(), 0);
EXPECT_EQ(signed_json["signatures"][0]["method"].asString(), "rsassa-pss");
}

/* Sign TUF metadata with ED25519. */
Expand All @@ -58,6 +59,7 @@ TEST(KeyManager, SignED25519Tuf) {
EXPECT_EQ(signed_json["signatures"][0]["keyid"].asString(),
"a6d0f6b52ae833175dd7724899507709231723037845715c7677670e0195f850");
EXPECT_NE(signed_json["signatures"][0]["sig"].asString().size(), 0);
EXPECT_EQ(signed_json["signatures"][0]["method"].asString(), "ed25519");
}

TEST(KeyManager, InitFileEmpty) {
Expand Down

0 comments on commit 595a6ac

Please sign in to comment.