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

feat: high speed hash? #75

Merged
merged 11 commits into from
Jul 17, 2019
Merged

feat: high speed hash? #75

merged 11 commits into from
Jul 17, 2019

Conversation

tsuyoshicho
Copy link
Owner

@tsuyoshicho
Copy link
Owner Author

SipHash作りたい

@tsuyoshicho tsuyoshicho mentioned this pull request Jun 18, 2019
16 tasks
@tsuyoshicho
Copy link
Owner Author

@tsuyoshicho
Copy link
Owner Author

@tsuyoshicho tsuyoshicho self-assigned this Jun 24, 2019
@tsuyoshicho tsuyoshicho force-pushed the feature/siphash branch 2 times, most recently from 59fc177 to 6958263 Compare June 26, 2019 04:59
@tsuyoshicho
Copy link
Owner Author

test code

let s:SipHash = g:V.import('Hash.SipHash')

let result =  [ 0x31, 0x0e, 0x0e, 0xdd, 0x47, 0xdb, 0x6f, 0x72 ]

let key = range(0,15)
let inputdata = [0]

call s:SipHash.setkey(key)

let outputdata = s:SipHash.digest_raw([])

echomsg 'output:' . string(outputdata)
echomsg 'result:' . string(result)


let result = [ 0xfd, 0x67, 0xdc, 0x93, 0xc5, 0x39, 0xf8, 0x74 ]

let key = range(0,15)
let inputdata = [0, 1]

call s:SipHash.setkey(key)

let outputdata = s:SipHash.digest_raw(inputdata[0: 0 + 1 -1])

echomsg 'output:' . string(outputdata)
echomsg 'result:' . string(result)

@tsuyoshicho
Copy link
Owner Author

When with num64 , Number is signed.
Insufficient accuracy (v[0] + v[1] is overflow)

@tsuyoshicho tsuyoshicho force-pushed the feature/siphash branch 3 times, most recently from b69c462 to 3047b06 Compare July 3, 2019 06:19
@tsuyoshicho tsuyoshicho merged commit 193f902 into master Jul 17, 2019
@tsuyoshicho tsuyoshicho deleted the feature/siphash branch July 17, 2019 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant