IBBEDel07EncapsulationPairGenerator keyEncapsulationPairGenerator = new IBBEDel07EncapsulationPairGenerator();
keyEncapsulationPairGenerator.init(new IBBEDel07CiphertextGenerationParameters(
publicKey, ids));
return keyEncapsulationPairGenerator.generateEncryptionPair();
}
<BUG>public byte[] decapsulation(CipherParameters publicKey, CipherParameters secretKey, String[] ids, CipherParameters ciphertext) throws InvalidCipherTextException {
if (!(publicKey instanceof IBBEDel07PublicKeySerParameter)){</BUG>
throw new IllegalArgumentException
("Invalid CipherParameter Instance of " + SCHEME_NAME  + ", find "
+ publicKey.getClass().getName() + ", require "

IBBEDel07EncapsulationPairGenerator keyEncapsulationPairGenerator = new IBBEDel07EncapsulationPairGenerator();
keyEncapsulationPairGenerator.init(new IBBEDel07CiphertextGenerationParameters(
publicKey, ids));
return keyEncapsulationPairGenerator.generateEncryptionPair();
}
public byte[] decapsulation(AsymmetricKeySerParameter publicKey, AsymmetricKeySerParameter secretKey,
String[] ids, PairingCipherSerParameter ciphertext) throws InvalidCipherTextException {
if (!(publicKey instanceof IBBEDel07PublicKeySerParameter)){
throw new IllegalArgumentException
("Invalid CipherParameter Instance of " + SCHEME_NAME  + ", find "
+ publicKey.getClass().getName() + ", require "
