JDK-8302236 : Test Plan for JEP-JDK-8301034: Key Encapsulation Mechanism API
  • Type: JEP Task
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2023-02-10
  • Updated: 2023-06-02
  • Resolved: 2023-06-02
Related Reports
Blocks :  
Cloners :  
Sub Tasks
JDK-8302237 :  
JDK-8302238 :  
JDK-8302239 :  
JDK-8302240 :  
JDK-8302241 :  
JDK-8302242 :  
JDK-8302243 :  
JDK-8308711 :  
Description
## 1  **Test Methodology**

Functional Test for DHKEM is described in section 4.1 of RFC 9180: Hybrid Public Key Encryption.

## 2  **Test Inventory** *(optional)*

- Functional Test of DHKEM when a single KEM instance asked to produce keys repeatedly (Ex: > 1000 times)
- DHKEM key size as per RFC 9180 @https://www.rfc-editor.org/rfc/rfc9180#name-key-encapsulation-mechanism
- Tests to verify KEM encapsulation and decapsulation process to be thread safe as indicated in javadoc
- Interop Test when keys generated through other JDK providers, such as SunPKCS11

### **Existing Tests**
No changes required as there are no modified APIs.

### **New Tests**
New Tests will be written to satisfy the requirement described in Test Inventory.

### **Deprecated Tests**
N/A

## 3 **Test Configurations** *(optional)*

N/A