Searched refs:alg (Results 1 – 6 of 6) sorted by relevance
/mcuboot-3.6.0/boot/bootutil/src/ |
D | image_ed25519.c | 35 mbedtls_asn1_buf alg; in bootutil_import_key() local 44 if (mbedtls_asn1_get_alg(cp, end, &alg, ¶m)) { 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()
|
D | encrypted.c | 108 mbedtls_asn1_buf alg; in parse_ec256_enckey() local 125 if ((rc = mbedtls_asn1_get_alg(p, end, &alg, ¶m)) != 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, ¶m) != 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/ |
D | asn1parse.c | 381 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, ¶ms ) ) != 0 ) in mbedtls_asn1_get_alg_null()
|
/mcuboot-3.6.0/boot/bootutil/include/bootutil/crypto/ |
D | ecdsa.h | 91 mbedtls_asn1_buf alg; in bootutil_import_key() local 101 if (mbedtls_asn1_get_alg(cp, end, &alg, ¶m)) { 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, ¶m)) { 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/ |
D | asn1.h | 547 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 566 mbedtls_asn1_buf *alg );
|
/mcuboot-3.6.0/sim/src/ |
D | tlv.rs | 689 let alg = if self.kinds.contains(&TlvKinds::ENCEC256) { in make_tlv() localVariable 694 let pk = match agreement::EphemeralPrivateKey::generate(alg, &rng) { in make_tlv()
|