Bouncy Castle Cryptography Library 1.87

org.bouncycastle.operator
Class DefaultKemEncapsulationLengthProvider

java.lang.Object
  extended byorg.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
DefaultKemEncapsulationLengthProvider()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKemEncapsulationLengthProvider

public DefaultKemEncapsulationLengthProvider()
Method Detail

getEncapsulationLength

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

Specified by:
getEncapsulationLength in interface KemEncapsulationLengthProvider
Parameters:
kemAlgorithm - the algorithm identifier of the KEM of interest.
Returns:
the encapsulation length in bytes.

Bouncy Castle Cryptography Library 1.87