forked from toolshed/abra
chore: go mod vendor / tidy
This commit is contained in:
3
vendor/github.com/pjbgf/sha1cd/Dockerfile.arm
generated
vendored
3
vendor/github.com/pjbgf/sha1cd/Dockerfile.arm
generated
vendored
@ -1,4 +1,4 @@
|
||||
FROM golang:1.20@sha256:2edf6aab2d57644f3fe7407132a0d1770846867465a39c2083770cf62734b05d
|
||||
FROM golang:1.23@sha256:a7f2fc9834049c1f5df787690026a53738e55fc097cd8a4a93faa3e06c67ee32
|
||||
|
||||
ENV GOOS=linux
|
||||
ENV GOARCH=arm
|
||||
@ -10,7 +10,6 @@ ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
|
||||
RUN dpkg --add-architecture armhf \
|
||||
&& apt update \
|
||||
&& apt install -y --no-install-recommends \
|
||||
upx \
|
||||
gcc-arm-linux-gnueabihf \
|
||||
libc6-dev-armhf-cross \
|
||||
pkg-config \
|
||||
|
2
vendor/github.com/pjbgf/sha1cd/Dockerfile.arm64
generated
vendored
2
vendor/github.com/pjbgf/sha1cd/Dockerfile.arm64
generated
vendored
@ -1,4 +1,4 @@
|
||||
FROM golang:1.20@sha256:2edf6aab2d57644f3fe7407132a0d1770846867465a39c2083770cf62734b05d
|
||||
FROM golang:1.23@sha256:a7f2fc9834049c1f5df787690026a53738e55fc097cd8a4a93faa3e06c67ee32
|
||||
|
||||
ENV GOOS=linux
|
||||
ENV GOARCH=arm64
|
||||
|
2
vendor/github.com/pjbgf/sha1cd/LICENSE
generated
vendored
2
vendor/github.com/pjbgf/sha1cd/LICENSE
generated
vendored
@ -186,7 +186,7 @@
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
Copyright 2023 pjbgf
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
3
vendor/github.com/pjbgf/sha1cd/Makefile
generated
vendored
3
vendor/github.com/pjbgf/sha1cd/Makefile
generated
vendored
@ -35,6 +35,9 @@ generate:
|
||||
go run sha1cdblock_amd64_asm.go -out sha1cdblock_amd64.s
|
||||
sed -i 's;&\samd64;&\n// +build !noasm,gc,amd64;g' sha1cdblock_amd64.s
|
||||
|
||||
cd ubc && go run ubc_amd64_asm.go -out ubc_amd64.s
|
||||
sed -i 's;&\samd64;&\n// +build !noasm,gc,amd64;g' ubc/ubc_amd64.s
|
||||
|
||||
verify: generate
|
||||
git diff --exit-code
|
||||
go vet ./...
|
||||
|
1
vendor/github.com/pjbgf/sha1cd/sha1cd.go
generated
vendored
1
vendor/github.com/pjbgf/sha1cd/sha1cd.go
generated
vendored
@ -17,6 +17,7 @@ import (
|
||||
"errors"
|
||||
"hash"
|
||||
|
||||
_ "github.com/mmcloughlin/avo/build"
|
||||
shared "github.com/pjbgf/sha1cd/internal"
|
||||
)
|
||||
|
||||
|
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