diff mbox series

doc: adding -p option to openssl enc to return 3 lines (salt, key, iv)

Message ID 20240801171228.7527-1-jan.vermaete@gmail.com
State Rejected
Delegated to: Stefano Babic
Headers show
Series doc: adding -p option to openssl enc to return 3 lines (salt, key, iv) | expand

Commit Message

Jan Vermaete Aug. 1, 2024, 5:12 p.m. UTC
I assume the documetation about the 2nd and 3rd line is written for the
openss enc command with the option -p.

from `openssl enc -h`:
    -p                  Print the iv/key

example:
  openssl enc -aes-256-cbc -in /tmp/test -out /tmp/test.enc -K `openssl rand -hex 32` -iv `openssl rand -hex 16` -p
  salt=C169F1C114560000
  key=66EBC15025E9B4D0D455A8805E2B51EF4A155B216729AF986305AC7E76B65C4F
  iv =EB79A2D4BB540033E91960DAAA445BC3

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
---
 doc/source/encrypted_images.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/doc/source/encrypted_images.rst b/doc/source/encrypted_images.rst
index c70ed784..f70a6f28 100644
--- a/doc/source/encrypted_images.rst
+++ b/doc/source/encrypted_images.rst
@@ -28,7 +28,7 @@  Then, encrypt an image using this information via
 
 ::
 
-        openssl enc -aes-256-cbc -in <INFILE> -out <OUTFILE> -K <KEY> -iv <IV>
+        openssl enc -aes-256-cbc -in <INFILE> -out <OUTFILE> -K <KEY> -iv <IV> -p
 
 where ``<INFILE>`` is the unencrypted source image file and ``<OUTFILE>`` is the
 encrypted output image file to be referenced in ``sw-description``.