25 references to KeySizeInBytes
aspire (5)
NuGet\BundleNuGetService.cs (3)
88
= static () => RandomNumberGenerator.GetBytes(NuGetSourceIdentity.
KeySizeInBytes
);
206
if (sourceIdentityKey.Length != NuGetSourceIdentity.
KeySizeInBytes
)
209
$"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 (20)
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (4)
197
var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]).Sources;
677
var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]).Sources;
1191
appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
1261
appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\BundleNuGetServiceTests.cs (3)
75
var key = new byte[NuGetSourceIdentity.
KeySizeInBytes
];
132
var previewSnapshot = client.GetSettings(preview.EffectiveWorkingDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
135
var persistedSnapshot = client.GetSettings(appHostDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\NuGetClientTests.cs (6)
253
var snapshot = client.GetSettings(workspace.WorkspaceRoot.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
1436
Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.
KeySizeInBytes
).ToArray());
1472
new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
1502
Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.
KeySizeInBytes
).ToArray());
1519
var sourceIdentityKey = Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.
KeySizeInBytes
).ToArray();
1590
var settings = client.GetSettings(overlayDirectory.FullName, new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
NuGet\NuGetConfigurationTests.cs (1)
222
=> 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 (2)
35
new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
60
new byte[NuGetSourceIdentity.
KeySizeInBytes
]);
Projects\PrebuiltAppHostServerTests.cs (1)
32
private static readonly byte[] s_sourceIdentityKey = new byte[NuGetSourceIdentity.
KeySizeInBytes
];
TestServices\NuGetTestHelper.cs (1)
90
var settings = new NuGetSettingsInfo([], "standalone", [], [], [], [], [], new byte[NuGetSourceIdentity.
KeySizeInBytes
]);