feat: combine tuf code

This commit is contained in:
mrjoelkamp
2024-04-15 15:20:56 -05:00
parent 95295bc736
commit c1035c951e
56 changed files with 2660 additions and 0 deletions

13
internal/util/crypto.go Normal file
View File

@@ -0,0 +1,13 @@
package util
import (
"crypto/sha256"
"encoding/hex"
)
func HexHashBytes(input []byte) string {
s256 := sha256.New()
s256.Write(input)
hashSum := s256.Sum(nil)
return hex.EncodeToString(hashSum)
}