Class HkdfStreamingPrf

  • All Implemented Interfaces:
    StreamingPrf

    @Immutable
    public class HkdfStreamingPrf
    extends java.lang.Object
    implements StreamingPrf
    An implementation of the HKDF pseudorandom function, as given by RFC 5869.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream computePrf​(byte[] input)
      Returns an InputStream which is indistinguishable from a stream returning random bytes in the above sense.
      static StreamingPrf create​(HkdfPrfKey key)  
      • Methods inherited from class java.lang.Object

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

      • HkdfStreamingPrf

        public HkdfStreamingPrf​(Enums.HashType hashType,
                                byte[] ikm,
                                byte[] salt)
    • Method Detail

      • create

        public static StreamingPrf create​(HkdfPrfKey key)
                                   throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • computePrf

        public java.io.InputStream computePrf​(byte[] input)
        Description copied from interface: StreamingPrf
        Returns an InputStream which is indistinguishable from a stream returning random bytes in the above sense.
        Specified by:
        computePrf in interface StreamingPrf