33 references to KeySizeInBytes
aspire (5)
NuGet\BundleNuGetService.cs (3)
92
= static () => RandomNumberGenerator.GetBytes(NuGetSourceIdentity.
KeySizeInBytes
);
218
if (sourceIdentityKey.Length != NuGetSourceIdentity.
KeySizeInBytes
)
221
$"The NuGet source identity key must be {NuGetSourceIdentity.
KeySizeInBytes
} bytes.");
Packaging\NuGetSourceIdentity.cs (2)
17
if (key.Length !=
KeySizeInBytes
)
19
throw new ArgumentException($"The NuGet source identity key must be {
KeySizeInBytes
} bytes.", nameof(key));
Aspire.Cli.Tests (28)
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (6)
703
var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]).Sources;
1240
var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]).Sources;
1864
directory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]).DisabledPackageSourceKeys);
2008
directory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
2062
appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
2134
appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\BundleNuGetServiceTests.cs (5)
83
var previewSettings = client.GetSettings(preview.EffectiveWorkingDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
96
var persisted = client.GetSettings(app.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
256
var key = new byte[NuGetSourceIdentity.
KeySizeInBytes
];
317
var previewSnapshot = client.GetSettings(preview.EffectiveWorkingDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
320
var persistedSnapshot = client.GetSettings(appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\NuGetClientTests.cs (6)
418
var snapshot = client.GetSettings(workspace.WorkspaceRoot.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
1603
Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.
KeySizeInBytes
).ToArray());
1639
new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
1669
Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.
KeySizeInBytes
).ToArray());
1686
var sourceIdentityKey = Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.
KeySizeInBytes
).ToArray();
1757
var settings = client.GetSettings(overlayDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\NuGetConfigurationTests.cs (1)
650
=> new([], "ambient", [], [], mappings, [], [], new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\NuGetTestHelperTests.cs (2)
19
var snapshot = client.GetSettings(workspace.Path, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
65
var snapshot = client.GetSettings(appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
Packaging\PackageSourceIdentityTests.cs (6)
28
workspace.Path, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
53
workspace.Path, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
75
workspace.Path, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
93
workspace.Path, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
125
new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
150
new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
Projects\PrebuiltAppHostServerTests.cs (1)
32
private static readonly byte[] s_sourceIdentityKey = new byte[NuGetSourceIdentity.
KeySizeInBytes
];
TestServices\NuGetTestHelper.cs (1)
93
var settings = new NuGetSettingsInfo([], "standalone", [], [], [], [], [], new byte[NuGetSourceIdentity.
KeySizeInBytes
]);