Class EciesHkdfRecipientKem


  • public final class EciesHkdfRecipientKem
    extends java.lang.Object
    HKDF-based KEM (key encapsulation mechanism) for ECIES recipient.
    Since:
    1.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      EciesHkdfRecipientKem​(java.security.interfaces.ECPrivateKey recipientPrivateKey)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] generateKey​(byte[] kemBytes, java.lang.String hmacAlgo, byte[] hkdfSalt, byte[] hkdfInfo, int keySizeInBytes, EllipticCurves.PointFormatType pointFormat)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EciesHkdfRecipientKem

        public EciesHkdfRecipientKem​(java.security.interfaces.ECPrivateKey recipientPrivateKey)
    • Method Detail

      • generateKey

        public byte[] generateKey​(byte[] kemBytes,
                                  java.lang.String hmacAlgo,
                                  byte[] hkdfSalt,
                                  byte[] hkdfInfo,
                                  int keySizeInBytes,
                                  EllipticCurves.PointFormatType pointFormat)
                           throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException