From 9f017c0f9ee878139d9f0d316283ba2fd5c9340e Mon Sep 17 00:00:00 2001 From: Daniel <dhaavi@users.noreply.github.com> Date: Mon, 11 Jul 2022 16:59:25 +0200 Subject: [PATCH] Add suite for file signing --- suites.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/suites.go b/suites.go index 2fc682d..bfaaf30 100644 --- a/suites.go +++ b/suites.go @@ -39,6 +39,15 @@ var ( SecurityLevel: 128, Status: SuiteStatusRecommended, }) + // SuiteSignFileV1 is a cipher suite for signing files (no encryption). + // SHA2_256 is chosen for better compatibility with other tool sets and workflows. + SuiteSignFileV1 = registerSuite(&Suite{ + ID: "signfile_v1", + Tools: []string{"Ed25519(SHA2-256)"}, + Provides: newEmptyRequirements().Add(Integrity).Add(SenderAuthentication), + SecurityLevel: 128, + Status: SuiteStatusRecommended, + }) // SuiteCompleteV1 is a cipher suite for both encrypting for someone and signing. SuiteCompleteV1 = registerSuite(&Suite{ ID: "v1", @@ -66,6 +75,8 @@ var ( SuiteRcptOnly = SuiteRcptOnlyV1 // SuiteSign is a a cipher suite for signing (no encryption). SuiteSign = SuiteSignV1 + // SuiteSignFile is a a cipher suite for signing files (no encryption). + SuiteSignFile = SuiteSignFileV1 // SuiteComplete is a a cipher suite for both encrypting for someone and signing. SuiteComplete = SuiteCompleteV1 // SuiteWire is a a cipher suite for network communication, including authentication of the server, but not the client.