FAQ
I created a patch that creates exact the same bitstring as OpenSSL, let me
know you have any comments or suggestions.

https://codereview.appspot.com/168990043

Thanks,

Paul
On Monday, 3 November 2014 20:58:17 UTC+1, agl wrote:

On Mon, Nov 3, 2014 at 11:51 AM, Paul van Brouwershaven
<pa...@vanbrouwershaven.com <javascript:>> wrote:
I don't know how to determine the bit length of the byte array "a"? Maybe
"math/big could help as that library provides some functionality to
determine the bit length but the BitString is a "flag type".
You would probably want a function to find the length the dumb way:
just iterating over the bits. (That stackexchange post is sufficiently
convincing to want to change this behaviour in Go.)


Cheers

AGL
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 11 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 31, '14 at 3:49p
activeNov 5, '14 at 10:32a
posts11
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase