Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash/crc32: unexpected output (?) #36097

Closed
Anveena opened this issue Dec 12, 2019 · 2 comments
Closed

hash/crc32: unexpected output (?) #36097

Anveena opened this issue Dec 12, 2019 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@Anveena
Copy link

Anveena commented Dec 12, 2019

What version of Go are you using (go version)?

go1.13.4

$ go version

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

data := []byte{0x00,0xB0,0x0D,0x00,0x01,0xC1,0x00,0x00,0x00,0x01,0xF0,0x00,}
tb := crc32.MakeTable(0x04C11DB7)
    rs := crc32.Update(0xFFFFFFFF, tb,data)
    println(rs)

//some crc hash algorithms DO NOT need reverse bit but some DO
//but "hash/crc32" in current go source version DOES NOT support both.
//https://crccalc.com/?crc=00B00D0001C100000001F000&method=crc32&datatype=hex&outtype=hex
//it's the right value.

What did you expect to see?

What did you see instead?

@ALTree
Copy link
Member

ALTree commented Dec 12, 2019

@Anveena It's not clear what kind of issue you are reporting here. Please provide a complete, runnable program, and explain in more details what you are doing and why the output you get is different from the one you expect.

@ALTree ALTree added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 12, 2019
@ALTree ALTree changed the title hash/crc32 hash/crc32: unexpected output (?) Dec 12, 2019
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jan 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants