/mbedtls-3.5.0/library/ |
D | lms.c | 99 static int create_merkle_leaf_value(const mbedtls_lms_parameters_t *params, in create_merkle_leaf_value() argument 115 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value() 133 MBEDTLS_LMOTS_N_HASH_LEN(params->otstype)); in create_merkle_leaf_value() 138 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_leaf_value() 172 static int create_merkle_internal_value(const mbedtls_lms_parameters_t *params, in create_merkle_internal_value() argument 189 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_internal_value() 207 MBEDTLS_LMS_M_NODE_BYTES(params->type)); in create_merkle_internal_value() 213 MBEDTLS_LMS_M_NODE_BYTES(params->type)); in create_merkle_internal_value() 218 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_internal_value() 251 ctx->params.type = type; in mbedtls_lms_import_public_key() [all …]
|
D | lmots.c | 112 static unsigned short lmots_checksum_calculate(const mbedtls_lmots_parameters_t *params, in lmots_checksum_calculate() argument 118 for (idx = 0; idx < MBEDTLS_LMOTS_N_HASH_LEN(params->type); idx++) { in lmots_checksum_calculate() 148 static int create_digit_array_with_checksum(const mbedtls_lmots_parameters_t *params, in create_digit_array_with_checksum() argument 164 status = psa_hash_update(&op, params->I_key_identifier, in create_digit_array_with_checksum() 170 status = psa_hash_update(&op, params->q_leaf_identifier, in create_digit_array_with_checksum() 182 MBEDTLS_LMOTS_C_RANDOM_VALUE_LEN(params->type)); in create_digit_array_with_checksum() 193 MBEDTLS_LMOTS_N_HASH_LEN(params->type), in create_digit_array_with_checksum() 199 checksum = lmots_checksum_calculate(params, out); in create_digit_array_with_checksum() 201 out + MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in create_digit_array_with_checksum() 238 static int hash_digit_array(const mbedtls_lmots_parameters_t *params, in hash_digit_array() argument [all …]
|
D | asn1parse.c | 391 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params) in mbedtls_asn1_get_alg() argument 416 mbedtls_platform_zeroize(params, sizeof(mbedtls_asn1_buf)); in mbedtls_asn1_get_alg() 420 params->tag = **p; in mbedtls_asn1_get_alg() 423 if ((ret = mbedtls_asn1_get_len(p, end, ¶ms->len)) != 0) { in mbedtls_asn1_get_alg() 427 params->p = *p; in mbedtls_asn1_get_alg() 428 *p += params->len; in mbedtls_asn1_get_alg() 442 mbedtls_asn1_buf params; in mbedtls_asn1_get_alg_null() local 444 memset(¶ms, 0, sizeof(mbedtls_asn1_buf)); in mbedtls_asn1_get_alg_null() 446 if ((ret = mbedtls_asn1_get_alg(p, end, alg, ¶ms)) != 0) { in mbedtls_asn1_get_alg_null() 450 if ((params.tag != MBEDTLS_ASN1_NULL && params.tag != 0) || params.len != 0) { in mbedtls_asn1_get_alg_null()
|
D | pkparse.c | 168 mbedtls_asn1_buf *params) in pk_get_ecparams() argument 178 params->tag = **p; in pk_get_ecparams() 179 if (params->tag != MBEDTLS_ASN1_OID in pk_get_ecparams() 181 && params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE) in pk_get_ecparams() 188 if ((ret = mbedtls_asn1_get_tag(p, end, ¶ms->len, params->tag)) != 0) { in pk_get_ecparams() 192 params->p = *p; in pk_get_ecparams() 193 *p += params->len; in pk_get_ecparams() 223 static int pk_group_from_specified(const mbedtls_asn1_buf *params, mbedtls_ecp_group *grp) in pk_group_from_specified() argument 226 unsigned char *p = params->p; in pk_group_from_specified() 227 const unsigned char * const end = params->p + params->len; in pk_group_from_specified() [all …]
|
D | pkcs12.c | 54 static int pkcs12_parse_pbe_params(mbedtls_asn1_buf *params, in pkcs12_parse_pbe_params() argument 58 unsigned char **p = ¶ms->p; in pkcs12_parse_pbe_params() 59 const unsigned char *end = params->p + params->len; in pkcs12_parse_pbe_params() 68 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in pkcs12_parse_pbe_params()
|
D | pkcs5.c | 57 static int pkcs5_parse_pbkdf2_params(const mbedtls_asn1_buf *params, in pkcs5_parse_pbkdf2_params() argument 63 unsigned char *p = params->p; in pkcs5_parse_pbkdf2_params() 64 const unsigned char *end = params->p + params->len; in pkcs5_parse_pbkdf2_params() 66 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in pkcs5_parse_pbkdf2_params()
|
D | x509.c | 121 mbedtls_x509_buf *alg, mbedtls_x509_buf *params) in mbedtls_x509_get_alg() argument 125 if ((ret = mbedtls_asn1_get_alg(p, end, alg, params)) != 0) { in mbedtls_x509_get_alg() 249 int mbedtls_x509_get_rsassa_pss_params(const mbedtls_x509_buf *params, in mbedtls_x509_get_rsassa_pss_params() argument 265 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in mbedtls_x509_get_rsassa_pss_params() 270 p = (unsigned char *) params->p; in mbedtls_x509_get_rsassa_pss_params() 271 end = p + params->len; in mbedtls_x509_get_rsassa_pss_params()
|
D | lmots.h | 179 int mbedtls_lmots_calculate_public_key_candidate(const mbedtls_lmots_parameters_t *params,
|
D | ssl_tls12_client.c | 2293 unsigned char *params = ssl->in_msg + mbedtls_ssl_hs_hdr_len(ssl); in ssl_parse_server_key_exchange() local 2294 size_t params_len = p - params; in ssl_parse_server_key_exchange() 2371 params, params_len, in ssl_parse_server_key_exchange()
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_pkcs5.data | 113 PBES2 Decrypt (bad params tag) 129 PBES2 Decrypt (bad PBKDF2 params: not a sequence) 133 PBES2 Decrypt (bad PBKDF2 params: overlong) 137 PBES2 Decrypt (bad PBKDF2 params salt: not an octet string) 141 PBES2 Decrypt (bad PBKDF2 params salt: overlong) 145 PBES2 Decrypt (bad PBKDF2 params iter: not an int) 149 PBES2 Decrypt (bad PBKDF2 params iter: overlong) 153 PBES2 Decrypt (OK, PBKDF2 params explicit keylen) 157 PBES2 Decrypt (bad PBKDF2 params explicit keylen: overlong) 161 PBES2 Decrypt (OK, PBKDF2 params explicit prf_alg) [all …]
|
D | test_suite_pkcs5.function | 33 mbedtls_asn1_buf params; 38 params.tag = params_tag; 39 params.p = params_hex->x; 40 params.len = params_hex->len; 44 my_ret = mbedtls_pkcs5_pbes2(¶ms, MBEDTLS_PKCS5_DECRYPT,
|
D | host_test.function | 151 * \param params Out params found 152 * \param params_len Out params array len 156 static int parse_arguments(char *buf, size_t len, char **params, 163 params[cnt++] = cur; 175 params[cnt++] = cur; 185 p = params[i]; 186 q = params[i]; 221 * \param params Out array of found parameters. 226 static int convert_params(size_t cnt, char **params, int32_t *int_params_store) 228 char **cur = params; [all …]
|
D | test_suite_asn1parse.data | 541 AlgorithmIdentifier, no params 544 AlgorithmIdentifier, no params, trailing garbage 547 AlgorithmIdentifier, null params 550 AlgorithmIdentifier, null params, trailing garbage 553 AlgorithmIdentifier, OCTET STRING params 568 AlgorithmIdentifier, truncated in params after tag 571 AlgorithmIdentifier, truncated in params after length 574 AlgorithmIdentifier, truncated inside params content
|
D | main_test.function | 151 * \param params The array of parameters to pass to the test function. 158 int dispatch_test(size_t func_idx, void **params) 170 fp(params);
|
D | test_suite_asn1parse.function | 653 mbedtls_asn1_buf params = { -1, 0, NULL }; 658 &oid, ¶ms), 664 TEST_EQUAL(params.tag, params_tag); 666 TEST_EQUAL(params.p - input->x, params_offset); 668 TEST_ASSERT(params.p == NULL); 670 TEST_EQUAL(params.len, (size_t) params_length);
|
D | test_suite_asn1write.function | 290 mbedtls_asn1_buf params = { 0, 0, NULL }; 323 &alg, ¶ms), 0); 326 TEST_EQUAL(params.tag, expected_params_tag); 327 TEST_EQUAL(params.len, expected_params_len);
|
D | test_suite_dhm.function | 120 * Set params
|
D | test_suite_x509parse.function | 1433 void x509_parse_rsassa_pss_params(data_t *params, int params_tag, 1442 buf.p = params->x; 1443 buf.len = params->len;
|
D | test_suite_ecdh.function | 301 /* client read server params */
|
D | test_suite_x509parse.data | 1240 X509 CRT ASN1 (TBS, inv AlgID, params present but empty) 1244 X509 CRT ASN1 (TBS, inv AlgID, bad RSASSA-PSS params) 2690 X509 RSASSA-PSS parameters ASN1 (MGAlg.params wrong tag) 2693 X509 RSASSA-PSS parameters ASN1 (MGAlg.params wrong len #1a) 2696 X509 RSASSA-PSS parameters ASN1 (MGAlg.params wrong len #1b) 2699 X509 RSASSA-PSS parameters ASN1 (MGAlg.params.alg not an OID) 2702 X509 RSASSA-PSS parameters ASN1 (MGAlg.params.alg unknown OID) 2705 X509 RSASSA-PSS parameters ASN1 (MGAlg.params.params NULL) 2709 X509 RSASSA-PSS parameters ASN1 (MGAlg.params.params wrong tag) 2713 X509 RSASSA-PSS parameters ASN1 (MGAlg.params wrong len #1c) [all …]
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | crypto_knowledge.py | 82 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None: 99 if params is None: 104 params = m.group(2).split(',') 105 self.params = (None if params is None else 106 [param.strip() for param in params]) 115 if self.params is not None: 116 self.expression += '(' + ', '.join(self.params) + ')' 176 assert self.params is not None 177 return self.ECC_KEY_SIZES[self.params[0]] 252 assert self.params is not None [all …]
|
/mbedtls-3.5.0/include/mbedtls/ |
D | lms.h | 134 mbedtls_lmots_parameters_t MBEDTLS_PRIVATE(params); 159 mbedtls_lmots_parameters_t MBEDTLS_PRIVATE(params); 203 mbedtls_lms_parameters_t MBEDTLS_PRIVATE(params); 229 mbedtls_lms_parameters_t MBEDTLS_PRIVATE(params);
|
D | x509.h | 421 mbedtls_x509_buf *alg, mbedtls_x509_buf *params); 423 int mbedtls_x509_get_rsassa_pss_params(const mbedtls_x509_buf *params,
|
D | asn1.h | 573 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params);
|
/mbedtls-3.5.0/tests/scripts/ |
D | generate_psa_tests.py | 185 if kt.params is not None: 188 for i, sym in enumerate(kt.params)] 274 if kt.params is not None: 276 for i, sym in enumerate(kt.params)]
|