Class HkdfStreamingPrf
- java.lang.Object
-
- com.google.crypto.tink.subtle.prf.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.
-
-
Constructor Summary
Constructors Constructor Description HkdfStreamingPrf(Enums.HashType hashType, byte[] ikm, byte[] salt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamcomputePrf(byte[] input)Returns anInputStreamwhich is indistinguishable from a stream returning random bytes in the above sense.static StreamingPrfcreate(HkdfPrfKey key)
-
-
-
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:StreamingPrfReturns anInputStreamwhich is indistinguishable from a stream returning random bytes in the above sense.- Specified by:
computePrfin interfaceStreamingPrf
-
-