(path string, expected [sha256.Size]byte)
| 1558 | } |
| 1559 | |
| 1560 | func pathMatchesSHA256(path string, expected [sha256.Size]byte) bool { |
| 1561 | if !regularRuntimeFile(path) { |
| 1562 | return false |
| 1563 | } |
| 1564 | actual, err := fileSHA256(path) |
| 1565 | return err == nil && actual == expected |
| 1566 | } |
| 1567 | |
| 1568 | func runtimeSetLockToken() (string, error) { |
| 1569 | raw := make([]byte, runtimeSetLockTokenSize) |
no test coverage detected