/* THIS SOFTWARE IS PROVIDED BY Google Inc. ` */
static int trim_to_p256_bytes(unsigned char dst[P256_NBYTES], unsigned char *src, int src_len)
/* THIS SOFTWARE IS PROVIDED BY Google Inc. ` */
static int trim_to_p256_bytes(unsigned char dst[P256_NBYTES], unsigned char *src, int src_len)
{
    int dst_offset;
    while (*src == '\0' && src_len > 0) {
        src++;
        src_len--;
    }
    if (src_len > P256_NBYTES || src_len < 1) {
        return 0;
    }
    dst_offset = P256_NBYTES - src_len;
    memset(dst, 0, dst_offset);
    memcpy(dst + dst_offset, src, src_len);
    return 1;
}