public byte[] TestPRF (HandshakeHashType algorithm, byte[] secret, string seed, byte[] data, int length) { var prf = new PseudoRandomFunctionTls12 (algorithm); var result = prf.PRF (SecureBuffer.CreateCopy (secret), seed, SecureBuffer.CreateCopy (data), length); return result.StealBuffer (); }
public byte[] TestPRF(HandshakeHashType algorithm, byte[] secret, string seed, byte[] data, int length) { var prf = new PseudoRandomFunctionTls12(algorithm); var result = prf.PRF(SecureBuffer.CreateCopy(secret), seed, SecureBuffer.CreateCopy(data), length); return(result.StealBuffer()); }