Searched refs:alg (Results 1 – 7 of 7) sorted by relevance
/mcuboot-2.7.6/boot/bootutil/src/ |
D | image_ed25519.c | 33 mbedtls_asn1_buf alg; in bootutil_import_key() local 42 if (mbedtls_asn1_get_alg(cp, end, &alg, ¶m)) { in bootutil_import_key() 46 if (alg.len != sizeof(ed25519_pubkey_oid) - 1 || in bootutil_import_key() 47 memcmp(alg.p, ed25519_pubkey_oid, sizeof(ed25519_pubkey_oid) - 1)) { in bootutil_import_key()
|
D | image_ec256.c | 59 mbedtls_asn1_buf alg; in bootutil_parse_eckey() local 68 if (mbedtls_asn1_get_alg(p, end, &alg, ¶m)) { in bootutil_parse_eckey() 71 if (alg.len != sizeof(ec_pubkey_oid) - 1 || in bootutil_parse_eckey() 72 memcmp(alg.p, ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_parse_eckey() 105 mbedtls_asn1_buf alg; in bootutil_import_key() local 115 if (mbedtls_asn1_get_alg(cp, end, &alg, ¶m)) { in bootutil_import_key() 119 if (alg.len != sizeof(ec_pubkey_oid) - 1 || in bootutil_import_key() 120 memcmp(alg.p, ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_import_key()
|
D | image_ec.c | 52 mbedtls_asn1_buf alg; in bootutil_parse_eckey() local 61 if (mbedtls_asn1_get_alg(p, end, &alg, ¶m)) { in bootutil_parse_eckey() 64 if (alg.len != sizeof(ec_pubkey_oid) - 1 || in bootutil_parse_eckey() 65 memcmp(alg.p, ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_parse_eckey()
|
D | encrypted.c | 172 mbedtls_asn1_buf alg; in parse_ec256_enckey() local 189 if ((rc = mbedtls_asn1_get_alg(p, end, &alg, ¶m)) != 0) { in parse_ec256_enckey() 193 if (alg.len != sizeof(ec_pubkey_oid) - 1 || in parse_ec256_enckey() 194 memcmp(alg.p, ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in parse_ec256_enckey() 249 mbedtls_asn1_buf alg; in parse_x25519_enckey() local 266 if (mbedtls_asn1_get_alg(p, end, &alg, ¶m) != 0) { in parse_x25519_enckey() 270 if (alg.len != sizeof(ec_pubkey_oid) - 1 || in parse_x25519_enckey() 271 memcmp(alg.p, ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in parse_x25519_enckey()
|
/mcuboot-2.7.6/ext/mbedtls-asn1/src/ |
D | asn1parse.c | 289 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ) in mbedtls_asn1_get_alg() argument 301 alg->tag = **p; in mbedtls_asn1_get_alg() 304 if( ( ret = mbedtls_asn1_get_tag( p, end, &alg->len, MBEDTLS_ASN1_OID ) ) != 0 ) in mbedtls_asn1_get_alg() 307 alg->p = *p; in mbedtls_asn1_get_alg() 308 *p += alg->len; in mbedtls_asn1_get_alg() 333 mbedtls_asn1_buf *alg ) in mbedtls_asn1_get_alg_null() argument 340 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, ¶ms ) ) != 0 ) in mbedtls_asn1_get_alg_null()
|
/mcuboot-2.7.6/ext/mbedtls-asn1/include/mbedtls/ |
D | asn1.h | 308 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 324 mbedtls_asn1_buf *alg );
|
/mcuboot-2.7.6/sim/src/ |
D | tlv.rs | 562 let alg = if self.kinds.contains(&TlvKinds::ENCEC256) { in make_tlv() localVariable 567 let pk = match agreement::EphemeralPrivateKey::generate(alg, &rng) { in make_tlv()
|