Package org.bouncycastle.operator
Class DefaultKemEncapsulationLengthProvider
- java.lang.Object
-
- org.bouncycastle.operator.DefaultKemEncapsulationLengthProvider
-
- All Implemented Interfaces:
KemEncapsulationLengthProvider
public class DefaultKemEncapsulationLengthProvider extends java.lang.Object implements KemEncapsulationLengthProvider
Look up provider for encapsulation lengths produced be KEM algorithms
-
-
Constructor Summary
Constructors Constructor Description DefaultKemEncapsulationLengthProvider()
-
Method Summary
All Methods Instance Methods Concrete 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
public int getEncapsulationLength(org.bouncycastle.asn1.x509.AlgorithmIdentifier kemAlgorithm)
Description copied from interface:KemEncapsulationLengthProviderReturn the length, in bytes, of the encapsulation produced by the passed in KEM algorithm.- Specified by:
getEncapsulationLengthin interfaceKemEncapsulationLengthProvider- Parameters:
kemAlgorithm- the algorithm identifier of the KEM of interest.- Returns:
- the encapsulation length in bytes.
-
-