(ringpath string)
| 359 | } |
| 360 | |
| 361 | func loadKeyRing(ringpath string) (openpgp.EntityList, error) { |
| 362 | f, err := os.Open(ringpath) |
| 363 | if err != nil { |
| 364 | return nil, err |
| 365 | } |
| 366 | defer f.Close() |
| 367 | return openpgp.ReadKeyRing(f) |
| 368 | } |
| 369 | |
| 370 | // DigestFile calculates a SHA256 hash (like Docker) for a given file. |
| 371 | // |
searching dependent graphs…