Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 26) sorted by relevance

12

/mbedtls-3.5.0/library/
Dlms.c99 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 …]
Dlmots.c112 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 …]
Dasn1parse.c391 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, &params->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(&params, 0, sizeof(mbedtls_asn1_buf)); in mbedtls_asn1_get_alg_null()
446 if ((ret = mbedtls_asn1_get_alg(p, end, alg, &params)) != 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()
Dpkparse.c168 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, &params->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 …]
Dpkcs12.c54 static int pkcs12_parse_pbe_params(mbedtls_asn1_buf *params, in pkcs12_parse_pbe_params() argument
58 unsigned char **p = &params->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()
Dpkcs5.c57 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()
Dx509.c121 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()
Dlmots.h179 int mbedtls_lmots_calculate_public_key_candidate(const mbedtls_lmots_parameters_t *params,
Dssl_tls12_client.c2293 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/
Dtest_suite_pkcs5.data113 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 …]
Dtest_suite_pkcs5.function33 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(&params, MBEDTLS_PKCS5_DECRYPT,
Dhost_test.function151 * \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 …]
Dtest_suite_asn1parse.data541 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
Dmain_test.function151 * \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);
Dtest_suite_asn1parse.function653 mbedtls_asn1_buf params = { -1, 0, NULL };
658 &oid, &params),
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);
Dtest_suite_asn1write.function290 mbedtls_asn1_buf params = { 0, 0, NULL };
323 &alg, &params), 0);
326 TEST_EQUAL(params.tag, expected_params_tag);
327 TEST_EQUAL(params.len, expected_params_len);
Dtest_suite_dhm.function120 * Set params
Dtest_suite_x509parse.function1433 void x509_parse_rsassa_pss_params(data_t *params, int params_tag,
1442 buf.p = params->x;
1443 buf.len = params->len;
Dtest_suite_ecdh.function301 /* client read server params */
Dtest_suite_x509parse.data1240 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/
Dcrypto_knowledge.py82 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/
Dlms.h134 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);
Dx509.h421 mbedtls_x509_buf *alg, mbedtls_x509_buf *params);
423 int mbedtls_x509_get_rsassa_pss_params(const mbedtls_x509_buf *params,
Dasn1.h573 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params);
/mbedtls-3.5.0/tests/scripts/
Dgenerate_psa_tests.py185 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)]

12