Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.xwing

public Class XWingKEMGenerator

extends Object
implements EncapsulatedSecretGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EncapsulatedSecretGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.AsymmetricCipherKeyPair, .EncapsulatedSecretGenerator, .SecretWithEncapsulation, org.bouncycastle.crypto.agreement.X25519Agreement, org.bouncycastle.crypto.digests.SHA3Digest, org.bouncycastle.crypto.generators.X25519KeyPairGenerator, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .X25519KeyGenerationParameters, .X25519PublicKeyParameters, org.bouncycastle.pqc.crypto.mlkem.MLKEMGenerator, org.bouncycastle.pqc.crypto.util.SecretWithEncapsulationImpl, org.bouncycastle.util.Arrays, .Strings

Field Summary

Modifier and TypeField and Description
private final SecureRandom

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SecretWithEncapsulation
generateEncapsulated(AsymmetricKeyParameter recipientKey)

Implements org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Generate secret/encapsulation based on the recipient public key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

srback to summary
private final SecureRandom sr

Constructor Detail

XWingKEMGeneratorback to summary
public XWingKEMGenerator(SecureRandom random)

Method Detail

generateEncapsulatedback to summary
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)

Implements org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Doc from org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Generate secret/encapsulation based on the recipient public key.

Returns:SecretWithEncapsulation

An SecretWithEncapsulation derived from the recipient public key.