Diagnosing Golang error wrapping C crypto code