Interface KemEncapsulationLengthProvider
- All Known Implementing Classes:
DefaultKemEncapsulationLengthProvider
public interface KemEncapsulationLengthProvider
-
Method Summary
Modifier and TypeMethodDescriptionintgetEncapsulationLength(org.bouncycastle.asn1.x509.AlgorithmIdentifier kemAlgorithm) Return the length, in bytes, of the encapsulation produced by the passed in KEM algorithm.
-
Method Details
-
getEncapsulationLength
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:
IllegalArgumentException- if the KEM algorithm is not recognised.
-