Home
last modified time | relevance | path

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

/mcuboot-latest/boot/bootutil/src/
Dimage_ed25519.c40 mbedtls_asn1_buf alg; in bootutil_import_key() local
49 if (mbedtls_asn1_get_alg(cp, end, &alg, &param)) { in bootutil_import_key()
53 if (alg.ASN1_CONTEXT_MEMBER(len) != sizeof(ed25519_pubkey_oid) - 1 || in bootutil_import_key()
54 memcmp(alg.ASN1_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.ASN1_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in parse_ec256_enckey()
130 memcmp(alg.ASN1_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.ASN1_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in parse_x25519_enckey()
207 memcmp(alg.ASN1_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in parse_x25519_enckey()
/mcuboot-latest/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-latest/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.ASN1_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in bootutil_import_key()
106 memcmp(alg.ASN1_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_import_key()
503 mbedtls_asn1_buf alg; in bootutil_parse_eckey() local
512 if (mbedtls_asn1_get_alg(p, end, &alg, &param)) { in bootutil_parse_eckey()
515 if (alg.ASN1_CONTEXT_MEMBER(len) != sizeof(ec_pubkey_oid) - 1 || in bootutil_parse_eckey()
516 memcmp(alg.ASN1_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_parse_eckey()
/mcuboot-latest/ext/mbedtls-asn1/include/mbedtls/
Dasn1.h547 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params );
566 mbedtls_asn1_buf *alg );
/mcuboot-latest/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()
/mcuboot-latest/scripts/imgtool/
Dimage.py236 sha = TLV_SHA_TO_SHA_AND_ALG[tlv_type].alg()