6 references to AsStandaloneArray
Microsoft.AspNetCore.DataProtection (2)
Managed\ManagedAuthenticatedEncryptor.cs (2)
633
rgbKey: new ArraySegment<byte>(tempKeys, 0, _symmetricAlgorithmSubkeyLengthInBytes).
AsStandaloneArray
(),
645
using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys, _symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes).
AsStandaloneArray
()))
Microsoft.AspNetCore.DataProtection.Tests (4)
SecretTests.cs (3)
38
Assert.Equal(new byte[] { 0x20, 0x30, 0x40 }, outputSegment.
AsStandaloneArray
());
65
Assert.Equal(new byte[] { 0x20, 0x30, 0x40 }, outputSegment.
AsStandaloneArray
());
147
Assert.Equal(new byte[] { 0x20, 0x30, 0x40 }, outputSegment.
AsStandaloneArray
());
SP800_108\SP800_108Tests.cs (1)
198
Assert.Equal(expectedDerivedSubkeyAsBase64, Convert.ToBase64String(derivedSubkeySegment.
AsStandaloneArray
()));