On Fri, 31 Mar 2023 02:25:04 GMT, Weijun Wang <wei...@openjdk.org> wrote:
> The KEM API and DHKEM impl. Note that this PR uses new methods in > https://github.com/openjdk/jdk/pull/13250. src/java.base/share/classes/javax/crypto/KEMSpi.java line 107: > 105: * @see KEM.Encapsulator > 106: */ > 107: interface EncapsulatorSpi { Is it really necessary to define a EncapsulatorSpi? It looks like an internal implementation for KEMSpi service, rather than a public individual interface that EncapsulatorSpi.getInstance() could be used. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13256#discussion_r1164195329