Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 6 of 6) sorted by relevance

/mcuboot-3.6.0/boot/bootutil/src/
Dimage_ed25519.c35 mbedtls_asn1_buf alg; in bootutil_import_key() local
44 if (mbedtls_asn1_get_alg(cp, end, &alg, &param)) { in bootutil_import_key()
48 if (alg.MBEDTLS_CONTEXT_MEMBER(len) != sizeof(ed25519_pubkey_oid) - 1 || in bootutil_import_key()
49 memcmp(alg.MBEDTLS_CONTEXT_MEMBER(p), ed25519_pubkey_oid, sizeof(ed25519_pubkey_oid) - 1)) { in bootutil_import_key()
Dencrypted.c108 mbedtls_asn1_buf alg; in parse_ec256_enckey() local
125 if ((rc = mbedtls_asn1_get_alg(p, end, &alg, &param)) != 0) { in parse_ec256_enckey()
129 if (alg.MBEDTLS_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in parse_ec256_enckey()
130 memcmp(alg.MBEDTLS_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in parse_ec256_enckey()
185 mbedtls_asn1_buf alg; in parse_x25519_enckey() local
202 if (mbedtls_asn1_get_alg(p, end, &alg, &param) != 0) { in parse_x25519_enckey()
206 if (alg.MBEDTLS_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in parse_x25519_enckey()
207 memcmp(alg.MBEDTLS_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in parse_x25519_enckey()
/mcuboot-3.6.0/ext/mbedtls-asn1/src/
Dasn1parse.c381 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ) in mbedtls_asn1_get_alg() argument
393 alg->tag = **p; in mbedtls_asn1_get_alg()
396 if( ( ret = mbedtls_asn1_get_tag( p, end, &alg->len, MBEDTLS_ASN1_OID ) ) != 0 ) in mbedtls_asn1_get_alg()
399 alg->p = *p; in mbedtls_asn1_get_alg()
400 *p += alg->len; in mbedtls_asn1_get_alg()
425 mbedtls_asn1_buf *alg ) in mbedtls_asn1_get_alg_null() argument
432 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, &params ) ) != 0 ) in mbedtls_asn1_get_alg_null()
/mcuboot-3.6.0/boot/bootutil/include/bootutil/crypto/
Decdsa.h91 mbedtls_asn1_buf alg; in bootutil_import_key() local
101 if (mbedtls_asn1_get_alg(cp, end, &alg, &param)) { in bootutil_import_key()
105 if (alg.MBEDTLS_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in bootutil_import_key()
106 memcmp(alg.MBEDTLS_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_import_key()
484 mbedtls_asn1_buf alg; in bootutil_parse_eckey() local
493 if (mbedtls_asn1_get_alg(p, end, &alg, &param)) { in bootutil_parse_eckey()
496 if (alg.MBEDTLS_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in bootutil_parse_eckey()
497 memcmp(alg.MBEDTLS_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_parse_eckey()
/mcuboot-3.6.0/ext/mbedtls-asn1/include/mbedtls/
Dasn1.h547 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params );
566 mbedtls_asn1_buf *alg );
/mcuboot-3.6.0/sim/src/
Dtlv.rs689 let alg = if self.kinds.contains(&TlvKinds::ENCEC256) { in make_tlv() localVariable
694 let pk = match agreement::EphemeralPrivateKey::generate(alg, &rng) { in make_tlv()