install go2rtc on bob

This commit is contained in:
2026-04-04 19:36:14 +02:00
parent f0b56e63d1
commit ccf88187b8
537 changed files with 69213 additions and 0 deletions
@@ -0,0 +1,17 @@
package hkdf
import (
"crypto/sha512"
"io"
"golang.org/x/crypto/hkdf"
)
func Sha512(key []byte, salt, info string) ([]byte, error) {
r := hkdf.New(sha512.New, key, []byte(salt), []byte(info))
buf := make([]byte, 32)
_, err := io.ReadFull(r, buf)
return buf, err
}