]> git.ipfire.org Git - thirdparty/openssl.git/commit
dgst and mac apps: Added new ways for obtaining a MAC key
authorIgor Ustinov <igus68@gmail.com>
Sat, 2 Aug 2025 16:53:13 +0000 (19:53 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 9 Sep 2025 07:58:10 +0000 (09:58 +0200)
commitbd91eb6658b176fd35b4a7df6caab98dc21ef5f3
tree4d7fcc9926f04e67ca0474d0b5f7ab9dbd8c0f3e
parentcb7da43fe80ca586b6133317dadca59f1e2f395f
dgst and mac apps: Added new ways for obtaining a MAC key

Resolves #24584

It is now possible to obtain a MAC key from an environment variable,
a file or read it from the standard input.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28160)
apps/dgst.c
apps/include/apps.h
apps/lib/apps.c
apps/mac.c
doc/man1/openssl-dgst.pod.in
doc/man1/openssl-mac.pod.in
test/recipes/20-test_dgst.t
test/recipes/20-test_dgst_data/keyfile.bin [new file with mode: 0644]
test/recipes/20-test_dgst_data/keyfile.txt [new file with mode: 0644]
test/recipes/20-test_mac.t
test/recipes/20-test_mac_data/keyfile.dat [new file with mode: 0644]