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