mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 04:44:14 +01:00
Favor stdint.h types in example code
This commit is contained in:
parent
d16bdac9b5
commit
f82088a5f4
@ -649,7 +649,7 @@
|
|||||||
* size_t key_bits = psa_get_key_bits(&attributes);
|
* size_t key_bits = psa_get_key_bits(&attributes);
|
||||||
* size_t buffer_size = PSA_KEY_EXPORT_MAX_SIZE(key_type, key_bits);
|
* size_t buffer_size = PSA_KEY_EXPORT_MAX_SIZE(key_type, key_bits);
|
||||||
* psa_reset_key_attributes(&attributes);
|
* psa_reset_key_attributes(&attributes);
|
||||||
* unsigned char *buffer = malloc(buffer_size);
|
* uint8_t *buffer = malloc(buffer_size);
|
||||||
* if (buffer == NULL) handle_error(...);
|
* if (buffer == NULL) handle_error(...);
|
||||||
* size_t buffer_length;
|
* size_t buffer_length;
|
||||||
* status = psa_export_key(key, buffer, buffer_size, &buffer_length);
|
* status = psa_export_key(key, buffer, buffer_size, &buffer_length);
|
||||||
@ -669,7 +669,7 @@
|
|||||||
* size_t key_bits = psa_get_key_bits(&attributes);
|
* size_t key_bits = psa_get_key_bits(&attributes);
|
||||||
* size_t buffer_size = PSA_KEY_EXPORT_MAX_SIZE(public_key_type, key_bits);
|
* size_t buffer_size = PSA_KEY_EXPORT_MAX_SIZE(public_key_type, key_bits);
|
||||||
* psa_reset_key_attributes(&attributes);
|
* psa_reset_key_attributes(&attributes);
|
||||||
* unsigned char *buffer = malloc(buffer_size);
|
* uint8_t *buffer = malloc(buffer_size);
|
||||||
* if (buffer == NULL) handle_error(...);
|
* if (buffer == NULL) handle_error(...);
|
||||||
* size_t buffer_length;
|
* size_t buffer_length;
|
||||||
* status = psa_export_public_key(key, buffer, buffer_size, &buffer_length);
|
* status = psa_export_public_key(key, buffer, buffer_size, &buffer_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user