Result of the KEM (Key Encapsulation Mechanism) encapsulation operation. More...
Public Methods | |
| byte[] | getSharedSecret () |
| Returns the shared secret generated during the encapsulation operation. | |
| byte[] | getCiphertext () |
| Returns the KEM (key-encapsulated material) ciphertext. | |
Result of the KEM (Key Encapsulation Mechanism) encapsulation operation.
Returned by Dinamo#kemEncaps(int, byte, String, byte[], int, int, byte[]). Contains the ciphertext that must be sent to the party that will decapsulate it, and when the operation is TacNDJavaLib#DN_KEM_OP_SHARED_SECRET, the generated shared secret.
| byte[] getSharedSecret | ( | ) |
Returns the shared secret generated during the encapsulation operation.
Not null only when the operation specified in bOp is TacNDJavaLib#DN_KEM_OP_SHARED_SECRET. For the operations TacNDJavaLib#DN_KEM_OP_DIRECT_KEY and TacNDJavaLib#DN_KEM_OP_X9_63_SHA256 , the key is created directly in the HSM, and this field will return an empty array.
| byte[] getCiphertext | ( | ) |
Returns the KEM (key-encapsulated material) ciphertext.
This value must be transmitted to the party that will perform the decapsulation using the private key corresponding to the public key used in the encapsulation.