Skip to content

Commit c90a3d4

Browse files
authored
Merge pull request #3134 from stefanberger/encryption_code_plus_ctr.pr
Add image encryption support and ctr support
2 parents 1ff1f87 + dde436e commit c90a3d4

105 files changed

Lines changed: 26968 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/ctr/commands/commands.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,22 @@ var (
127127
Usage: "memory limit (in bytes) for the container",
128128
},
129129
}
130+
// ImageDecryptionFlags are cli flags needed when decrypting an image
131+
ImageDecryptionFlags = []cli.Flag{
132+
cli.StringFlag{
133+
Name: "gpg-homedir",
134+
Usage: "The GPG homedir to use; by default gpg uses ~/.gnupg",
135+
}, cli.StringFlag{
136+
Name: "gpg-version",
137+
Usage: "The GPG version (\"v1\" or \"v2\"), default will make an educated guess",
138+
}, cli.StringSliceFlag{
139+
Name: "key",
140+
Usage: "A secret key's filename and an optional password separated by colon; this option may be provided multiple times",
141+
}, cli.StringSliceFlag{
142+
Name: "dec-recipient",
143+
Usage: "Recipient of the image; used only for PKCS7 and must be an x509 certificate",
144+
},
145+
}
130146
)
131147

132148
// ObjectWithLabelArgs returns the first arg and a LabelArgs object

0 commit comments

Comments
 (0)