Hopefully this can be replaced with a standard library version later. BUG=571231 Change-Id: I61ae1d9d057c6d9e1b92128042109758beccc7ff Reviewed-on: https://boringssl-review.googlesource.com/6776 Reviewed-by: Adam Langley <agl@google.com>