Files
scadaproj/components/ui-theme/validation/secrets-ui/compatibility/legacy/LegacyProvider.cs
T
2026-11-13 18:57:36 -05:00

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;
}