Issue:
Found a bug when importing a private EC key on Apple. We intended to zero-out the public key data, but accidentally left it filled with uninitialized data. Apple ignored the public key data anyway, so it doesn't really matter, but this cleans things up.
Description of Changes:
Replace all uses of memset() in aws-c-cal with aws_byte_buf_write_u8_n() helper function. Only 1 memset() call had the bug, but clean them all up anyway.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue: Found a bug when importing a private EC key on Apple. We intended to zero-out the public key data, but accidentally left it filled with uninitialized data. Apple ignored the public key data anyway, so it doesn't really matter, but this cleans things up.
Description of Changes: Replace all uses of memset() in aws-c-cal with aws_byte_buf_write_u8_n() helper function. Only 1 memset() call had the bug, but clean them all up anyway.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.