11 lines
490 B
C#
11 lines
490 B
C#
using ZB.MOM.WW.Secrets.Abstractions;
|
|
namespace SecretsCompatibility;
|
|
// Synthetic fixed material only. Compile this against the actual published 0.6.2 contract;
|
|
// do not rebuild it against 0.6.6 before testing default-interface binary dispatch.
|
|
public sealed class LegacyProvider(string id, byte fill) : IMasterKeyProvider
|
|
{
|
|
private readonly byte[] _key = Enumerable.Repeat(fill, 32).ToArray();
|
|
public string KekId => id;
|
|
public ReadOnlyMemory<byte> GetMasterKey() => _key;
|
|
}
|