|
24 | 24 | Decrypts the specified encrypted value of a column encryption key. The encrypted value is expected to be encrypted using the column master key with the specified key path and using the specified algorithm. |
25 | 25 | </summary> |
26 | 26 | <returns> |
27 | | - Returns <see cref="T:System.Byte" />. The decrypted column encryption key. |
| 27 | + Returns <see cref="T:System.Byte" /> array representing the decrypted column encryption key. |
28 | 28 | </returns> |
29 | 29 | </DecryptColumnEncryptionKey> |
| 30 | + <DecryptColumnEncryptionKeyAsync> |
| 31 | + <param name="masterKeyPath"> |
| 32 | + The master key path. |
| 33 | + </param> |
| 34 | + <param name="encryptionAlgorithm"> |
| 35 | + The encryption algorithm. |
| 36 | + </param> |
| 37 | + <param name="encryptedColumnEncryptionKey"> |
| 38 | + The encrypted column encryption key. |
| 39 | + </param> |
| 40 | + <summary> |
| 41 | + Decrypts the specified encrypted value of a column encryption key asynchronously. The encrypted value is expected to be encrypted using the column master key with the specified key path and using the specified algorithm. |
| 42 | + </summary> |
| 43 | + <returns> |
| 44 | + Returns a task that returns <see cref="T:System.Byte" /> array representing the decrypted column encryption key on completion. |
| 45 | + </returns> |
| 46 | + </DecryptColumnEncryptionKeyAsync> |
30 | 47 | <EncryptColumnEncryptionKey> |
31 | 48 | <param name="masterKeyPath"> |
32 | 49 | The master key path. |
|
41 | 58 | Encrypts a column encryption key using the column master key with the specified key path and using the specified algorithm. |
42 | 59 | </summary> |
43 | 60 | <returns> |
44 | | - Returns <see cref="T:System.Byte" />. The encrypted column encryption key. |
| 61 | + Returns <see cref="T:System.Byte" /> array representing the encrypted column encryption key. |
45 | 62 | </returns> |
46 | 63 | </EncryptColumnEncryptionKey> |
| 64 | + <EncryptColumnEncryptionKeyAsync> |
| 65 | + <param name="masterKeyPath"> |
| 66 | + The master key path. |
| 67 | + </param> |
| 68 | + <param name="encryptionAlgorithm"> |
| 69 | + The encryption algorithm. |
| 70 | + </param> |
| 71 | + <param name="columnEncryptionKey"> |
| 72 | + The plaintext column encryption key. |
| 73 | + </param> |
| 74 | + <summary> |
| 75 | + Encrypts a column encryption key asynchronously using the column master key with the specified key path and using the specified algorithm. |
| 76 | + </summary> |
| 77 | + <returns> |
| 78 | + Returns a task that returns <see cref="T:System.Byte" /> array representing the encrypted column encryption key on completion. |
| 79 | + </returns> |
| 80 | + </EncryptColumnEncryptionKeyAsync> |
47 | 81 | <SignColumnMasterKeyMetadata> |
48 | 82 | <param name="masterKeyPath"> |
49 | 83 | The column master key path. |
|
55 | 89 | When implemented in a derived class, digitally signs the column master key metadata with the column master key referenced by the <paramref name="masterKeyPath" /> parameter. The input values used to generate the signature should be the specified values of the <paramref name="masterKeyPath" /> and <paramref name="allowEnclaveComputations" /> parameters. |
56 | 90 | </summary> |
57 | 91 | <returns> |
58 | | - The signature of the column master key metadata. |
| 92 | + Returns the signature of the column master key metadata. |
59 | 93 | </returns> |
60 | 94 | <remarks> |
61 | 95 | <para> |
|
69 | 103 | In all cases. |
70 | 104 | </exception> |
71 | 105 | </SignColumnMasterKeyMetadata> |
| 106 | + <SignColumnMasterKeyMetadataAsync> |
| 107 | + <param name="masterKeyPath"> |
| 108 | + The column master key path. |
| 109 | + </param> |
| 110 | + <param name="allowEnclaveComputations"> |
| 111 | + <see langword="true" /> to indicate that the column master key supports enclave computations; otherwise, <see langword="false" />. |
| 112 | + </param> |
| 113 | + <summary> |
| 114 | + When implemented in a derived class, asynchronously digitally signs the column master key metadata with the column master key referenced by the <paramref name="masterKeyPath" /> parameter. The input values used to generate the signature should be the specified values of the <paramref name="masterKeyPath" /> and <paramref name="allowEnclaveComputations" /> parameters. |
| 115 | + </summary> |
| 116 | + <returns> |
| 117 | + Returns a task that returns the signature of the column master key metadata on completion. |
| 118 | + </returns> |
| 119 | + <remarks> |
| 120 | + <para> |
| 121 | + To ensure that the <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> method doesn't break applications that rely on an old API, it throws a <see cref="T:System.NotImplementedException" /> exception by default. |
| 122 | + </para> |
| 123 | + <para> |
| 124 | + The <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> method will be used by client tools that generate Column Master Keys (CMK) for customers. <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> must be implemented by the corresponding key store providers that wish to use enclaves with <see href="https://learn.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see>. |
| 125 | + </para> |
| 126 | + </remarks> |
| 127 | + <exception cref="T:System.NotImplementedException"> |
| 128 | + In all cases. |
| 129 | + </exception> |
| 130 | + </SignColumnMasterKeyMetadataAsync> |
72 | 131 | <VerifyColumnMasterKeyMetadata> |
73 | 132 | <param name="masterKeyPath"> |
74 | 133 | The column master key path. |
|
86 | 145 | When implemented in a derived class, the method is expected to return true if the specified signature is valid, or false if the specified signature is not valid. The default implementation throws `NotImplementedException`. |
87 | 146 | </returns> |
88 | 147 | </VerifyColumnMasterKeyMetadata> |
| 148 | + <VerifyColumnMasterKeyMetadataAsync> |
| 149 | + <param name="masterKeyPath"> |
| 150 | + The column master key path. |
| 151 | + </param> |
| 152 | + <param name="allowEnclaveComputations"> |
| 153 | + Indicates whether the column master key supports enclave computations. |
| 154 | + </param> |
| 155 | + <param name="signature"> |
| 156 | + The signature of the column master key metadata. |
| 157 | + </param> |
| 158 | + <summary> |
| 159 | + When implemented in a derived class, this method is expected to verify the specified signature is valid for the column master key with the specified key path and the specified enclave behavior asynchronously. The default implementation throws `NotImplementedException`. |
| 160 | + </summary> |
| 161 | + <returns> |
| 162 | + When implemented in a derived class, the method is expected to return true if the specified signature is valid, or false if the specified signature is not valid. The default implementation throws `NotImplementedException`. |
| 163 | + </returns> |
| 164 | + </VerifyColumnMasterKeyMetadataAsync> |
89 | 165 | <ColumnEncryptionKeyCacheTtl> |
90 | 166 | <summary> |
91 | 167 | Gets or sets the lifespan of the decrypted column encryption key in the cache. Once the timespan has elapsed, the decrypted column encryption key is discarded and must be revalidated. |
|
0 commit comments