MCPcopy Create free account
hub / github.com/containerd/imgcrypt / DecryptImage

Function DecryptImage

images/encryption/encryption.go:471–473  ·  view source on GitHub ↗

DecryptImage decrypts an image; it accepts either an OCI descriptor representing a manifest list or a single manifest

(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter)

Source from the content-addressed store, hash-verified

469
470// DecryptImage decrypts an image; it accepts either an OCI descriptor representing a manifest list or a single manifest
471func DecryptImage(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter) (ocispec.Descriptor, bool, error) {
472 return cryptImage(ctx, cs, desc, cc, lf, cryptoOpDecrypt)
473}
474
475// GetImageEncryptConverter returns a converter function for image encryption
476func GetImageEncryptConverter(cc *encconfig.CryptoConfig, lf LayerFilter) converter.ConvertFunc {

Callers 1

GetImageDecryptConverterFunction · 0.85

Calls 1

cryptImageFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…