How to use Encryption in ImageTool v2.3.2

I’ve tried encrypting images using ImageTool RDP Encrypt feature. I succesfully encrypted these images:

  • km0_boot_all.bin
  • km4_boot_all.bin
  • km0_km4_image2.bin

but after flashing those images, I won’t boot anymore. Serial Monitor throws error:

[MODULE_BOOT-LEVEL_ERROR] : IMG2 Invalid

Here is what I have tried:

  1. Flashing the unencrypted images: works
  2. Erasing before flashing encrypted images : [MODULE_BOOT-LEVEL_ERROR] : IMG2 Invalid
  3. Flashing encrypted boot images with unencrypted image2: no output
  4. Flashing unencrypted boot images with encrypted image2: no output

The official documentation only describes the feature without providing details on how to use it.

Please tell me what should I do.
Thanks.