Home
last modified time | relevance | path

Searched refs:md (Results 1 – 25 of 43) sorted by relevance

12

/mbedtls-latest/docs/proposed/
DMakefile6 psa-conditional-inclusion-c.md \
7 psa-driver-developer-guide.md \
8 psa-driver-integration-guide.md \
9 psa-driver-interface.md \
12 html: $(all_markdown:.md=.html)
13 pdf: $(all_markdown:.md=.pdf)
17 .SUFFIXES: .md .html .pdf
19 .md.html:
21 .md.pdf:
Dpsa-driver-wrappers-codegen-migration-guide.md5 …r multiple minor revs of version 1.0, after which this will be merged into psa-driver-interface.md.
7 …TLS, see our [PSA Cryptoprocessor driver development examples](../psa-driver-example-and-guide.md).
37 Please refer to psa-driver-interface.md for information on how a driver schema can be written.
/mbedtls-latest/library/
Dhkdf.c16 int mbedtls_hkdf(const mbedtls_md_info_t *md, const unsigned char *salt, in mbedtls_hkdf() argument
24 ret = mbedtls_hkdf_extract(md, salt, salt_len, ikm, ikm_len, prk); in mbedtls_hkdf()
27 ret = mbedtls_hkdf_expand(md, prk, mbedtls_md_get_size(md), in mbedtls_hkdf()
36 int mbedtls_hkdf_extract(const mbedtls_md_info_t *md, in mbedtls_hkdf_extract() argument
50 hash_len = mbedtls_md_get_size(md); in mbedtls_hkdf_extract()
60 return mbedtls_md_hmac(md, salt, salt_len, ikm, ikm_len, prk); in mbedtls_hkdf_extract()
63 int mbedtls_hkdf_expand(const mbedtls_md_info_t *md, const unsigned char *prk, in mbedtls_hkdf_expand() argument
80 hash_len = mbedtls_md_get_size(md); in mbedtls_hkdf_expand()
107 if ((ret = mbedtls_md_setup(&ctx, md, 1)) != 0) { in mbedtls_hkdf_expand()
Dssl_tls.c1207 const int *md; in ssl_handshake_init() local
1216 for (md = sig_hashes; *md != MBEDTLS_MD_NONE; md++) { in ssl_handshake_init()
1217 if (mbedtls_ssl_hash_from_md_alg(*md) == MBEDTLS_SSL_HASH_NONE) { in ssl_handshake_init()
1243 for (md = sig_hashes; *md != MBEDTLS_MD_NONE; md++) { in ssl_handshake_init()
1244 unsigned char hash = mbedtls_ssl_hash_from_md_alg(*md); in ssl_handshake_init()
6183 unsigned char mbedtls_ssl_hash_from_md_alg(int md) in mbedtls_ssl_hash_from_md_alg() argument
6185 switch (md) { in mbedtls_ssl_hash_from_md_alg()
6379 const mbedtls_md_type_t md, in mbedtls_ssl_get_handshake_transcript() argument
6390 switch (md) { in mbedtls_ssl_get_handshake_transcript()
6503 const mbedtls_md_type_t md, in mbedtls_ssl_get_handshake_transcript() argument
[all …]
Dssl_misc.h1570 unsigned char mbedtls_ssl_hash_from_md_alg(int md);
1574 int mbedtls_ssl_set_calc_verify_md(mbedtls_ssl_context *ssl, int md);
2285 const mbedtls_md_type_t md,
/mbedtls-latest/tests/suites/
Dtest_suite_hkdf.function20 const mbedtls_md_info_t *md = mbedtls_md_info_from_type(md_alg);
21 TEST_ASSERT(md != NULL);
25 ret = mbedtls_hkdf(md, salt->x, salt->len, ikm->x, ikm->len,
49 const mbedtls_md_info_t *md = mbedtls_md_info_from_type(md_alg);
50 TEST_ASSERT(md != NULL);
52 output_prk_len = mbedtls_md_get_size(md);
55 ret = mbedtls_hkdf_extract(md, salt->x, salt->len,
79 const mbedtls_md_info_t *md = mbedtls_md_info_from_type(md_alg);
80 TEST_ASSERT(md != NULL);
84 TEST_ASSERT(prk->len == mbedtls_md_get_size(md));
[all …]
Dtest_suite_pkcs12.function73 void pkcs12_pbe_encrypt(int params_tag, int cipher, int md, data_t *params_hex, data_t *pw,
80 mbedtls_md_type_t md_alg = (mbedtls_md_type_t) md;
128 void pkcs12_pbe_decrypt(int params_tag, int cipher, int md, data_t *params_hex, data_t *pw,
135 mbedtls_md_type_t md_alg = (mbedtls_md_type_t) md;
Dtest_suite_md.function2 #include "mbedtls/md.h"
8 #define MD_PSA(md, psa) \
9 TEST_EQUAL(mbedtls_md_psa_alg_from_type(md), psa); \
10 TEST_EQUAL(mbedtls_md_type_from_psa_alg(psa), md);
152 TEST_ASSERT(mbedtls_md_info_from_string("no such md") == NULL);
Dtest_suite_constant_time_hmac.function4 #include <mbedtls/md.h>
/mbedtls-latest/docs/architecture/
DMakefile5 all_markdown = $(wildcard *.md */*.md)
7 html: $(all_markdown:.md=.html)
8 pdf: $(all_markdown:.md=.pdf)
12 .SUFFIXES: .md .html .pdf
14 .md.html:
16 .md.pdf:
Dalternative-implementations.md28md), the [Mbed TLS PSA driver developer guide](docs/proposed/psa-driver-developer-guide.md) and th…
/mbedtls-latest/
DBUGS.md10 [maintained branch](BRANCHES.md): `main`, `development`,
16 [`SECURITY.md`](SECURITY.md). If not, …
20 how to do something with Mbed TLS, please see [`SUPPORT.md`](SUPPORT.md) for available documentatio…
DREADME.md30 For other sources of documentation, see the [SUPPORT](SUPPORT.md) document.
237 …ded example programs for a lot of different features and uses in [`programs/`](programs/README.md).
253 …frastructure repository](https://github.com/Mbed-TLS/mbedtls-test/blob/main/README.md#quick-start).
298 …yptography for most operations regardless of this option. See `docs/use-psa-crypto.md` for details.
304 Please see the [PSA driver example and guide](docs/psa-driver-example-and-guide.md) for information…
314 …icense and Copyright' section in the contributing guidelines](CONTRIBUTING.md#License-and-Copyrigh…
326 … from the community. Please see the [contributing guidelines](CONTRIBUTING.md) for details on how …
331 …ed-tls-security@lists.trustedfirmware.org>. For more information, see [`SECURITY.md`](SECURITY.md).
333 * Please see [`SUPPORT.md`](SUPPORT.md) for other channels for discussion and support about Mbed TL…
DSECURITY.md18 Only the maintained branches, as listed in [`BRANCHES.md`](BRANCHES.md),
134 Guide](docs/architecture/alternative-implementations.md) for more information.
143 Policy](https://github.com/hacl-star/hacl-star/blob/main/SECURITY.md).)
DCONTRIBUTING.md33 …lopment branch and in LTS (Long Term Support) branches, as described in [BRANCHES.md](BRANCHES.md).
54 of BRANCHES.md](BRANCHES.md#current-branches).
82 1. A [ChangeLog](https://github.com/Mbed-TLS/mbedtls/blob/development/ChangeLog.d/00README.md) entr…
DSUPPORT.md7 README](README.md#documentation);
/mbedtls-latest/include/mbedtls/
Dhkdf.h56 int mbedtls_hkdf(const mbedtls_md_info_t *md, const unsigned char *salt,
85 int mbedtls_hkdf_extract(const mbedtls_md_info_t *md,
116 int mbedtls_hkdf_expand(const mbedtls_md_info_t *md, const unsigned char *prk,
/mbedtls-latest/docs/architecture/psa-migration/
Dmd-cipher-dispatch.md60 …ncies, for example the duplication between the implementations of HMAC in `md.c` and in `psa_crypt…
118 * ECDSA (HMAC\_DRBG; `md.h` exposed through API)
119 * ECJPAKE (hashes via MD-light; `md.h` exposed through API)
121 * HKDF (HMAC via `md.h`; `md.h` exposed through API)
122 * HMAC\_DRBG (hashes and HMAC via `md.h`; `md.h` exposed through API)
124 * PKCS5 (HMAC via `md.h`; `md.h` exposed through API)
126 * RSA (hash via MD-light for PSS and OAEP; `md.h` exposed through API)
246 …Pass `MBEDTLS_MD_SHA256` and `md` will dispatch to the legacy code, pass a new constant `MBEDTLS_M…
284 …ors available to legacy callers that call any legacy hash interface, e.g. `md.h` or `shaX.h`. Ther…
310 The existing interface in `md.h` is close to what we want, but not perfect. What's wrong with it?
[all …]
Dstrategy.md18 implemented, see `docs/use-psa-crypto.md`, where new APIs are about (G2), and
149 `USE_PSA_CRYPTO` is enabled; see `md-cipher-dispatch.md` in the same directory
175 then dispatch to PSA, see `md-cipher-dispatch.md`.
226 `md-cipher-dispatch.md`.
280 docs/use-psa-crypto.md).
295 - for hashes and ciphers, see `md-cipher-dispatch.md` in the same directory;
Dpsa-legacy-bridges.md10 …e companion document [“Transitioning to the PSA API”](../../psa-transition.md) for a user focus on…
69 …s. Our focus is on applications that use high-level legacy crypto modules (md, cipher, pk) and nee…
73 The document [“Transitioning to the PSA API”](../../psa-transition.md) enumerates the public header…
217 …lg_from_type` and `mbedtls_md_type_from_psa_alg` from `library/md_psa.h` to `include/mbedtls/md.h`.
322 …PSA_CRYPTO` is enabled. This is nice-to-have, not critical. Update `use-psa-crypto.md` accordingly.
/mbedtls-latest/docs/
Dpsa-driver-example-and-guide.md5 …b.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/psa-driver-interface.md) describes how drive…
6md) Guide describes the deliverables for writing a driver that can be used with Mbed TLS, and the …
20 …b.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/psa-driver-interface.md#lifetimes-and-locati…
39 …developer-guide.md) and [integration](https://github.com/Mbed-TLS/mbedtls/blob/development/docs/pr…
149 …of `MBEDTLS_PSA_P256M_DRIVER_ENABLED` and [`driver-only-builds.md`](driver-only-builds.md) for mor…
Ddriver-only-builds.md14 guide](psa-driver-example-and-guide.md) for information on writing a
24 [the dedicated document](use-psa-crypto.md) for details.)
29 TLS](proposed/psa-conditional-inclusion-c.md) for details.
233 documentation](use-psa-crypto.md).
/mbedtls-latest/programs/x509/
Dcert_write.c200 mbedtls_md_type_t md; /* Hash used for signing */ member
367 opt.md = DFL_DIGEST; in main()
446 opt.md = mbedtls_md_get_type(md_info); in main()
846 mbedtls_x509write_crt_set_md_alg(&crt, opt.md); in main()
/mbedtls-latest/.github/
Dpull_request_template.md20 …g guidelines](https://github.com/Mbed-TLS/mbedtls/blob/development/CONTRIBUTING.md), especially the
/mbedtls-latest/3rdparty/p256-m/
DREADME.md3 The files `p256-m.c`, `p256-m.h` and `README.md` have been taken from the `p256-m` repository.

12