9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * This file and its contents are supplied under the terms of the
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * Common Development and Distribution License ("CDDL"), version 1.0.
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * You may only use this file in accordance with the terms of version
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * 1.0 of the CDDL.
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * A full copy of the text of the CDDL should have accompanied this
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * source. A copy of the CDDL is also available via the Internet at
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * Copyright (c) 2015, Joyent, Inc.
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * This test is designed to fill a buffer with arc4random_buf and ensure that we
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * rekey ourselves multiple times during this test. We have a 4 Mb buffer and
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * currently we rekey ourselves every ~1.53 Mb. A wrapper script should call
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi * this with an appropriate bit of D to verify the rekey.