]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add generic secret skeymgmt provider, skey abstraction and default skeymgmt
authorSimo Sorce <simo@redhat.com>
Tue, 28 Jan 2025 16:19:28 +0000 (11:19 -0500)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 15 Feb 2025 17:51:30 +0000 (18:51 +0100)
commit5c16da0c1832af8a9d72080d9ec4855d91cc846b
treed0ba4c763cb055dfe037406cac796f0d8dbe3479
parentb9d919f697270ea38818239b18eb71eb6b5e4d8c
Add generic secret skeymgmt provider, skey abstraction and default skeymgmt

This commits adds an actual skey wrapper structure and skeymgmt
implementation for the default provider

This allows to use fallbacks for any SKEY operation,
and to use it for keys that do not have a specific purpose and
cipher-suite associated to it.

Add a test with a key type that does not have skey support (DES),
to show that the fallback works.

Add raw skey test

Signed-off-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26753)
13 files changed:
include/crypto/types.h
include/internal/skey.h [new file with mode: 0644]
providers/defltprov.c
providers/implementations/build.info
providers/implementations/ciphers/ciphercommon.c
providers/implementations/include/prov/ciphercommon.h
providers/implementations/include/prov/implementations.h
providers/implementations/include/prov/names.h
providers/implementations/skeymgmt/aes_skmgmt.c [new file with mode: 0644]
providers/implementations/skeymgmt/build.info [new file with mode: 0644]
providers/implementations/skeymgmt/generic.c [new file with mode: 0644]
providers/implementations/skeymgmt/skeymgmt_lcl.h [new file with mode: 0644]
test/evp_skey_test.c