openssl/providers/implementations
Richard Levitte 14c8a3d118 CORE: Define provider-native abstract objects
This is placed as CORE because the core of libcrypto is the authority
for what is possible to do and what's required to make these abstract
objects work.

In essence, an abstract object is an OSSL_PARAM array with well
defined parameter keys and values:

-   an object type, which is a number indicating what kind of
    libcrypto structure the object in question can be used with.  The
    currently possible numbers are defined in <openssl/core_object.h>.
-   an object data type, which is a string that indicates more closely
    what the contents of the object are.
-   the object data, an octet string.  The exact encoding used depends
    on the context in which it's used.  For example, the decoder
    sub-system accepts any encoding, as long as there is a decoder
    implementation that takes that as input.  If central code is to
    handle the data directly, DER encoding is assumed. (*)
-   an object reference, also an octet string.  This octet string is
    not the object contents, just a mere reference to a provider-native
    object. (**)
-   an object description, which is a human readable text string that
    can be displayed if some software desires to do so.

The intent is that certain provider-native operations (called X
here) are able to return any sort of object that belong with other
operations, or an object that has no provider support otherwise.

(*) A future extension might be to be able to specify encoding.

(**) The possible mechanisms for dealing with object references are:

-   An object loading function in the target operation.  The exact
    target operation is determined by the object type (for example,
    OSSL_OBJECT_PKEY implies that the target operation is a KEYMGMT)
    and the implementation to be fetched by its object data type (for
    an OSSL_OBJECT_PKEY, that's the KEYMGMT keytype to be fetched).
    This loading function is only useful for this if the implementations
    that are involved (X and KEYMGMT, for example) are from the same
    provider.

-   An object exporter function in the operation X implementation.
    That exporter function can be used to export the object data in
    OSSL_PARAM form that can be imported by a target operation's
    import function.  This can be used when it's not possible to fetch
    the target operation implementation from the same provider.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12512)
2020-08-24 10:02:25 +02:00
..
asymciphers provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
ciphers Fix stitched ciphersuites in TLS1.0 2020-08-20 17:02:34 +01:00
digests provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
encode_decode CORE: Define provider-native abstract objects 2020-08-24 10:02:25 +02:00
exchange provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
include/prov Rename OSSL_SERIALIZER / OSSL_DESERIALIZER to OSSL_ENCODE / OSSL_DECODE 2020-08-21 09:23:58 +02:00
kdfs Fix coverity CID #1465794 - Uninitialized pointer read in x942_encode_otherinfo() 2020-08-24 11:19:28 +10:00
keymgmt Add Explicit EC parameter support to providers. 2020-08-22 14:55:41 +10:00
macs provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
rands provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
signature Fix coverity CID #1458641 - Dereference before NULL check when setting ctx->flag_allow_md in rsa.c 2020-08-24 11:19:28 +10:00
build.info Rename OSSL_SERIALIZER / OSSL_DESERIALIZER to OSSL_ENCODE / OSSL_DECODE 2020-08-21 09:23:58 +02:00