This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-artifact.git

commit 2ef05e6dfb81e1e4d9df881f14f064963303beba
Author: Philip Burkhardt <philip.burkha...@juul.com>
AuthorDate: Wed May 3 13:26:57 2023 -0700

    Comment update
---
 image/create.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/image/create.go b/image/create.go
index cdc199e..5ec2a57 100644
--- a/image/create.go
+++ b/image/create.go
@@ -554,8 +554,9 @@ func (ic *ImageCreator) Create() (Image, error) {
        var err error
        if ic.PlainSecret != nil {
             if img.HasEncryptionPayload() {
-                // For an encrypted image that will be HW decrypted while 
running,
-                // the hash must be calculated on the encrptyed image body.
+                // If the image has an encryption payload, it is an encrypted 
image 
+                // that will be HW decrypted while running and the hash must 
be 
+                // calculated on the encrypted image body.
                 encBody, err := sec.EncryptAES(ic.Body, ic.PlainSecret, 
ic.Nonce)
                 if err != nil {
                     return img, err

Reply via email to