StaticRetriever returns pre-supplied key bytes (from a Dump) instead of platform retrieval, ignoring Hints. An empty key returns (nil, nil) — the "tier not applicable" signal NewMasterKeys expects.
| 3 | // StaticRetriever returns pre-supplied key bytes (from a Dump) instead of platform retrieval, ignoring |
| 4 | // Hints. An empty key returns (nil, nil) — the "tier not applicable" signal NewMasterKeys expects. |
| 5 | type StaticRetriever struct { |
| 6 | key []byte |
| 7 | } |
| 8 | |
| 9 | // NewStaticRetriever wraps key bytes; a nil/empty key yields a retriever that reports the tier unavailable. |
| 10 | func NewStaticRetriever(key []byte) *StaticRetriever { |
nothing calls this directly
no outgoing calls
no test coverage detected