Class DefaultKemEncapsulationLengthProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.