Package org.bouncycastle.operator
Interface KemEncapsulationLengthProvider
-
- All Known Implementing Classes:
DefaultKemEncapsulationLengthProvider
public interface KemEncapsulationLengthProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetEncapsulationLength(org.bouncycastle.asn1.x509.AlgorithmIdentifier kemAlgorithm)Return the length, in bytes, of the encapsulation produced by the passed in KEM algorithm.
-
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException- if the KEM algorithm is not recognised.
-
-