Lines Matching full:raw
371 * \brief Convert a single raw coordinate to DER ASN.1 format. The output der
374 * \param raw_buf Buffer containing the raw coordinate to be
385 * \return MBEDTLS_ERR_ASN1_INVALID_DATA if the input raw
388 * \warning Raw and der buffer must not be overlapping.
410 /* Copy the raw coordinate to the end of der_buf. */ in convert_raw_to_der_single_int()
433 int mbedtls_ecdsa_raw_to_der(size_t bits, const unsigned char *raw, size_t raw_len, in mbedtls_ecdsa_raw_to_der() argument
453 /* Since raw and der buffers might overlap, dump r and s before starting in mbedtls_ecdsa_raw_to_der()
455 memcpy(r, raw, coordinate_len); in mbedtls_ecdsa_raw_to_der()
456 memcpy(s, raw + coordinate_len, coordinate_len); in mbedtls_ecdsa_raw_to_der()
488 * \brief Convert a single integer from ASN.1 DER format to raw.
493 * \param raw Output buffer that will be filled with the
497 * \param coordinate_size Size (in bytes) of a single coordinate in raw
505 * is null (i.e. all zeros) or if the output raw buffer
506 * is too small to contain the converted raw value.
508 * \warning Der and raw buffers must not be overlapping.
511 unsigned char *raw, size_t coordinate_size) in convert_der_to_raw_single_int() argument
548 /* raw buffer was already zeroed by the calling function so zero-padding in convert_der_to_raw_single_int()
550 memcpy(raw + padding_len, p, unpadded_len); in convert_der_to_raw_single_int()
557 unsigned char *raw, size_t raw_size, size_t *raw_len) in mbedtls_ecdsa_der_to_raw() argument
568 /* The output raw buffer should be at least twice the size of a raw in mbedtls_ecdsa_der_to_raw()
608 memcpy(raw, raw_tmp, 2 * coordinate_size); in mbedtls_ecdsa_der_to_raw()