Skip to content

Commit

Permalink
Add support for file signing suite in manager
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Aug 12, 2022
1 parent 3e3a8c2 commit 12f5da3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/cfg-envelope.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func newEnvelope(name string) (*jess.Envelope, error) {
"Encrypt for someone and sign",
"Encrypt for someone but don't sign",
"Sign a file (wrapped)",
"Sign a file (separate sig)",
},
}
err := survey.AskOne(prompt, &preset, nil)
Expand All @@ -54,8 +55,11 @@ func newEnvelope(name string) (*jess.Envelope, error) {
case "Encrypt for someone but don't sign":
envelope.SuiteID = jess.SuiteRcptOnly
err = selectSignets(envelope, "recipient")
case "Sign a file":
envelope.SuiteID = jess.SuiteSignFileV1
case "Sign a file (wrapped)":
envelope.SuiteID = jess.SuiteSign
err = selectSignets(envelope, "sender")
case "Sign a file (separate sig)":
envelope.SuiteID = jess.SuiteSignFile
err = selectSignets(envelope, "sender")
}
if err != nil {
Expand Down

0 comments on commit 12f5da3

Please sign in to comment.