@@ -40,10 +40,10 @@ public abstract partial class MLKem : IDisposable
4040 public static bool IsSupported => MLKemImplementation . IsSupported ;
4141
4242 /// <summary>
43- /// Gets the algorithm of the current instance .
43+ /// Gets the specific ML-KEM algorithm for this key .
4444 /// </summary>
4545 /// <value>
46- /// A value representing the ML-KEM algorithm.
46+ /// The specific ML-KEM algorithm for this key .
4747 /// </value>
4848 public MLKemAlgorithm Algorithm { get ; }
4949
@@ -183,6 +183,14 @@ public void Encapsulate(out byte[] ciphertext, out byte[] sharedSecret)
183183 /// <param name="sharedSecret">
184184 /// The buffer to receive the shared secret.
185185 /// </param>
186+ /// <remarks>
187+ /// Decapsulation can only decapsulate a shared secret created with the the decapsulation key's
188+ /// corresponding encapsulation key. If a different key is used, ML-KEM performs implicit rejection.
189+ /// Implicit rejection means an error will not be returned. Instead, the shared secret will be a
190+ /// deterministic but incorrect result.
191+ /// Detecting incorrect key use is a concern for consumers of the ML-KEM algorithm.
192+ /// For more information, see FIPS 203, Section 6.3.
193+ /// </remarks>
186194 /// <exception cref="CryptographicException">
187195 /// An error occurred during decapsulation.
188196 /// </exception>
@@ -219,6 +227,14 @@ public void Decapsulate(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret)
219227 /// <returns>
220228 /// The shared secret.
221229 /// </returns>
230+ /// <remarks>
231+ /// Decapsulation can only decapsulate a shared secret created with the the decapsulation key's
232+ /// corresponding encapsulation key. If a different key is used, ML-KEM performs implicit rejection.
233+ /// Implicit rejection means an error will not be returned. Instead, the shared secret will be a
234+ /// deterministic but incorrect result.
235+ /// Detecting incorrect key use is a concern for consumers of the ML-KEM algorithm.
236+ /// For more information, see FIPS 203, Section 6.3.
237+ /// </remarks>
222238 /// <exception cref="CryptographicException">
223239 /// An error occurred during decapsulation.
224240 /// </exception>
0 commit comments