forked from toolshed/abra
chore: go mod vendor / tidy
This commit is contained in:
14
vendor/github.com/pjbgf/sha1cd/ubc/ubc_amd64.go
generated
vendored
Normal file
14
vendor/github.com/pjbgf/sha1cd/ubc/ubc_amd64.go
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
//go:build !noasm && gc && amd64
|
||||
// +build !noasm,gc,amd64
|
||||
|
||||
package ubc
|
||||
|
||||
func CalculateDvMaskAMD64(W [80]uint32) uint32
|
||||
|
||||
// Check takes as input an expanded message block and verifies the unavoidable bitconditions
|
||||
// for all listed DVs. It returns a dvmask where each bit belonging to a DV is set if all
|
||||
// unavoidable bitconditions for that DV have been met.
|
||||
// Thus, one needs to do the recompression check for each DV that has its bit set.
|
||||
func CalculateDvMask(W [80]uint32) uint32 {
|
||||
return CalculateDvMaskAMD64(W)
|
||||
}
|
1898
vendor/github.com/pjbgf/sha1cd/ubc/ubc_amd64.s
generated
vendored
Normal file
1898
vendor/github.com/pjbgf/sha1cd/ubc/ubc_amd64.s
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -25,7 +25,7 @@ type DvInfo struct {
|
||||
// for all listed DVs. It returns a dvmask where each bit belonging to a DV is set if all
|
||||
// unavoidable bitconditions for that DV have been met.
|
||||
// Thus, one needs to do the recompression check for each DV that has its bit set.
|
||||
func CalculateDvMask(W [80]uint32) uint32 {
|
||||
func CalculateDvMaskGeneric(W [80]uint32) uint32 {
|
||||
mask := uint32(0xFFFFFFFF)
|
||||
mask &= (((((W[44] ^ W[45]) >> 29) & 1) - 1) | ^(DV_I_48_0_bit | DV_I_51_0_bit | DV_I_52_0_bit | DV_II_45_0_bit | DV_II_46_0_bit | DV_II_50_0_bit | DV_II_51_0_bit))
|
||||
mask &= (((((W[49] ^ W[50]) >> 29) & 1) - 1) | ^(DV_I_46_0_bit | DV_II_45_0_bit | DV_II_50_0_bit | DV_II_51_0_bit | DV_II_55_0_bit | DV_II_56_0_bit))
|
12
vendor/github.com/pjbgf/sha1cd/ubc/ubc_noasm.go
generated
vendored
Normal file
12
vendor/github.com/pjbgf/sha1cd/ubc/ubc_noasm.go
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
//go:build !amd64 || noasm || !gc
|
||||
// +build !amd64 noasm !gc
|
||||
|
||||
package ubc
|
||||
|
||||
// Check takes as input an expanded message block and verifies the unavoidable bitconditions
|
||||
// for all listed DVs. It returns a dvmask where each bit belonging to a DV is set if all
|
||||
// unavoidable bitconditions for that DV have been met.
|
||||
// Thus, one needs to do the recompression check for each DV that has its bit set.
|
||||
func CalculateDvMask(W [80]uint32) uint32 {
|
||||
return CalculateDvMaskGeneric(W)
|
||||
}
|
Reference in New Issue
Block a user