Class DefaultKemEncapsulationLengthProvider
java.lang.Object
org.bouncycastle.operator.DefaultKemEncapsulationLengthProvider
- All Implemented Interfaces:
KemEncapsulationLengthProvider
public class DefaultKemEncapsulationLengthProvider
extends Object
implements KemEncapsulationLengthProvider
Look up provider for encapsulation lengths produced be KEM algorithms
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultKemEncapsulationLengthProvider
public DefaultKemEncapsulationLengthProvider()
-
-
Method Details
-
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.
-