]> git.ipfire.org Git - thirdparty/openssl.git/commit
ENCODER & DECODER: Make a tighter coupling between en/decoders and keymgmt
authorRichard Levitte <levitte@openssl.org>
Mon, 28 Jun 2021 03:37:22 +0000 (05:37 +0200)
committerPauli <pauli@openssl.org>
Tue, 29 Jun 2021 07:03:45 +0000 (17:03 +1000)
commitf616ad4b022b8afa8416a7d9e475d02c49164192
tree0e8f56826974a6ef0b02164de30dc60d8a42e249
parent16561896ae5d3babc4662cca9a2c75cb6297ae17
ENCODER & DECODER: Make a tighter coupling between en/decoders and keymgmt

If there are keymgmts and en/decoders from the same provider, try to
combine them first.

This avoids unnecessary export/import dances, and also tries to avoid
issues where the keymgmt doesn't fully support exporting and importing,
which we can assume will be the case for HSM protected keys.

Fixes #15932

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15933)
crypto/encode_decode/decoder_pkey.c
crypto/encode_decode/encoder_pkey.c
crypto/evp/keymgmt_meth.c
include/crypto/evp.h