Home | History | Annotate | Download | only in libkern

Lines Matching defs:IN

10  * Redistribution and use in source and binary forms, with or without
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * sponge duplex, following the design described and analyzed in
37 * Assche, `Sponge-Based Pseudo-Random Number Generators', in
46 * Encryption and Other Applications', in Ali Miri and Serge
47 * Vaudenay, eds., Selected Areas in Cryptography—SAC 2011,
59 * expand with a stream cipher. In effect, every output draws
64 * integer i in [0, RATE-1] indicating where to write the next byte in
91 #define secret /* must not use in variable-time operations; should zero */
102 * state in P. Resets P->i to 0 to indicate that the input buffer
112 * permutation, and then switch back. This way we can data in
130 * needed. Corresponds to P.feed in the paper.
169 * entropy pool P. Roughly corresponds to P.feed in the paper,
172 * Return true if the sample was consumed in its entirety, or true
207 /* Return true if all done, false if truncated and in need of stir. */
235 * Corresponds to iterating P.fetch/P.forget in the paper.
236 * (Feeding the output back in -- as P.forget does -- is the same
611 enum { IN, OUT, STOP } t;
618 {IN, {1, 0xff}},
623 {IN, {RATE-3, [RATE-2] = 1}},
625 {IN, {0x80|((RATE-4)&0x7f), (RATE-4)>>7, [RATE-2] = 1}},
627 {IN, {0xff}},
632 {IN, {RATE-2}},
634 {IN, {127, [128] = RATE-2 - 127 - 1}},
636 {IN, {1, 0xff}},
641 {IN, {RATE-2}},
643 {IN, {127, [128] = RATE-2 - 127 - 1}},
645 {IN, {1, 0xff}},
649 {IN, {1, 0xff}},
656 {IN, {RATE-3, [RATE-2] = 0 /* truncated length */}},
658 {IN, {0x80|((RATE-4)&0x7f), (RATE-4)>>7,
665 {IN, {RATE-2}},
667 {IN, {127, [128] = RATE-2 - 127 - 1}},
673 {IN, {RATE-2}},
675 {IN, {127, [128] = RATE-2 - 127 - 1}},
677 {IN, {1, 0xff}},
684 {IN, {1, 0xff}},
689 {IN, {RATE-2}},
691 {IN, {127, [128] = RATE-2 - 127 - 1}},
702 {IN, {1, 0xff}},