forked from dotnet/SqlClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Feature | AE with enclaves - multi-platform and .NET Standard…
… 2.1 support (dotnet#676)" This reverts commit 30ebb76.
- Loading branch information
1 parent
cbc86a2
commit f1e9516
Showing
36 changed files
with
221 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
55 changes: 55 additions & 0 deletions
55
...nt/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.NetCoreApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Linq; | ||
|
||
namespace Microsoft.Data.SqlClient | ||
{ | ||
internal class EnclavePublicKey | ||
{ | ||
public byte[] PublicKey { get; set; } | ||
|
||
public EnclavePublicKey(byte[] payload) | ||
{ | ||
PublicKey = payload; | ||
} | ||
} | ||
|
||
internal class EnclaveDiffieHellmanInfo | ||
{ | ||
public int Size { get; private set; } | ||
|
||
public byte[] PublicKey { get; private set; } | ||
|
||
public byte[] PublicKeySignature { get; private set; } | ||
|
||
public EnclaveDiffieHellmanInfo(byte[] payload) | ||
{ | ||
Size = payload.Length; | ||
|
||
int offset = 0; | ||
int publicKeySize = BitConverter.ToInt32(payload, offset); | ||
offset += sizeof(int); | ||
|
||
int publicKeySignatureSize = BitConverter.ToInt32(payload, offset); | ||
offset += sizeof(int); | ||
|
||
PublicKey = payload.Skip(offset).Take(publicKeySize).ToArray(); | ||
offset += publicKeySize; | ||
|
||
PublicKeySignature = payload.Skip(offset).Take(publicKeySignatureSize).ToArray(); | ||
offset += publicKeySignatureSize; | ||
} | ||
} | ||
|
||
internal enum EnclaveType | ||
{ | ||
None = 0, | ||
|
||
Vbs = 1, | ||
|
||
Sgx = 2 | ||
} | ||
} |
153 changes: 0 additions & 153 deletions
153
...ata.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.