Files
mbedtls/include/mbedtls
Hanno Becker a5cedbcd3f Introduce MD handle type
As has been previously done for ciphersuites, this commit introduces
a zero-cost abstraction layer around the type

  mbedtls_md_info const *

whose valid values represent implementations of message digest algorithms.

Access to a particular digest implementation can be requested by name or
digest ID through the API mbedtls_md_info_from_xxx(), which either returns
a valid implementation or NULL, representing failure.

This commit replaces such uses of `mbedtls_md_info const *` by an abstract
type `mbedtls_md_handle_t` whose valid values represent digest implementations,
and which has a designated invalid value MBEDTLS_MD_INVALID_HANDLE.

The purpose of this abstraction layer is to pave the way for builds which
support precisely one digest algorithm. In this case, mbedtls_md_handle_t
can be implemented as a two-valued type, with one value representing the
invalid handle, and the unique valid value representing the unique enabled
digest.
2019-09-09 09:45:57 +01:00
..
2019-09-04 16:19:49 +01:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-07-01 10:22:53 +03:00
2019-09-06 07:58:36 +03:00
2018-12-16 12:02:50 +02:00
2019-09-09 09:45:57 +01:00
2019-02-21 16:58:20 +01:00
2019-09-09 09:45:57 +01:00
2019-09-09 09:45:57 +01:00
2019-09-09 09:45:57 +01:00
2018-12-16 12:02:50 +02:00
2019-04-24 10:51:54 +02:00
2018-12-16 12:02:50 +02:00
2018-12-28 11:11:10 +08:00
2019-09-06 07:58:36 +03:00
2019-06-11 17:27:32 +01:00
2019-06-18 11:05:44 +01:00