Bouncy Castle Cryptography Library 1.87

org.bouncycastle.operator
Interface KemEncapsulationLengthProvider

All Known Implementing Classes:
DefaultKemEncapsulationLengthProvider

public interface KemEncapsulationLengthProvider


Method Summary
 int getEncapsulationLength(org.bouncycastle.asn1.x509.AlgorithmIdentifier kemAlgorithm)
          Return the length, in bytes, of the encapsulation produced by the passed in KEM algorithm.
 

Method Detail

getEncapsulationLength

public int getEncapsulationLength(org.bouncycastle.asn1.x509.AlgorithmIdentifier kemAlgorithm)
Return the length, in bytes, of the encapsulation produced by the passed in KEM algorithm.

Parameters:
kemAlgorithm - the algorithm identifier of the KEM of interest.
Returns:
the encapsulation length in bytes.
Throws:
java.lang.IllegalArgumentException - if the KEM algorithm is not recognised.

Bouncy Castle Cryptography Library 1.87