We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently within s2n, we have the following API to convert a hex-encoded string to bytes:
int s2n_hex_string_to_bytes(const uint8_t *str, struct s2n_blob *blob);
https://github.com/aws/s2n-tls/blob/main/utils/s2n_blob.h#L47
However this API relies on internal s2n_blob structure and cannot be used within bin/s2nd.c and bin/s2nc.c.
Add s2n APIs to convert hex string to bytes without using internal blob structure.
S2N_API int s2n_hex_str_to_bytes_length(const char *str, uint32_t *bytes_len); S2N_API int s2n_hex_str_to_bytes(const char *str, uint8_t *bytes, uint32_t *bytes_len);
The text was updated successfully, but these errors were encountered:
Duplicate of #2759
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Problem:
Currently within s2n, we have the following API to convert a hex-encoded string to bytes:
https://github.com/aws/s2n-tls/blob/main/utils/s2n_blob.h#L47
However this API relies on internal s2n_blob structure and cannot be used within bin/s2nd.c and bin/s2nc.c.
Solution:
Add s2n APIs to convert hex string to bytes without using internal blob structure.
The text was updated successfully, but these errors were encountered: