Home / Class/ PseudoRandomFunctionTest Class — netty Architecture

PseudoRandomFunctionTest Class — netty Architecture

Architecture documentation for the PseudoRandomFunctionTest class in PseudoRandomFunctionTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b7a5d004_3a06_e52d_f8df_574dc84500a1["PseudoRandomFunctionTest"]
  c4124a72_1bc2_4660_836a_88073622dfdf["PseudoRandomFunctionTest.java"]
  b7a5d004_3a06_e52d_f8df_574dc84500a1 -->|defined in| c4124a72_1bc2_4660_836a_88073622dfdf
  5f37353d_efb3_d806_5eb1_61134f72ead1["testPrfSha256()"]
  b7a5d004_3a06_e52d_f8df_574dc84500a1 -->|method| 5f37353d_efb3_d806_5eb1_61134f72ead1

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java lines 28–52

public class PseudoRandomFunctionTest {

    @Test
    public void testPrfSha256() {
        byte[] secret = Hex.decode("9b be 43 6b a9 40 f0 17 b1 76 52 84 9a 71 db 35");
        byte[] seed = Hex.decode("a0 ba 9f 93 6c da 31 18 27 a6 f7 96 ff d5 19 8c");
        byte[] label = "test label".getBytes(CharsetUtil.US_ASCII);
        byte[] expected = Hex.decode(
                 "e3 f2 29 ba 72 7b e1 7b" +
                 "8d 12 26 20 55 7c d4 53" +
                 "c2 aa b2 1d 07 c3 d4 95" +
                 "32 9b 52 d4 e6 1e db 5a" +
                 "6b 30 17 91 e9 0d 35 c9" +
                 "c9 a4 6b 4e 14 ba f9 af" +
                 "0f a0 22 f7 07 7d ef 17" +
                 "ab fd 37 97 c0 56 4b ab" +
                 "4f bc 91 66 6e 9d ef 9b" +
                 "97 fc e3 4f 79 67 89 ba" +
                 "a4 80 82 d1 22 ee 42 c5" +
                 "a7 2e 5a 51 10 ff f7 01" +
                 "87 34 7b 66");
        byte[] actual = PseudoRandomFunction.hash(secret, label, seed, expected.length, "HmacSha256");
        assertArrayEquals(expected, actual);
    }
}

Frequently Asked Questions

What is the PseudoRandomFunctionTest class?
PseudoRandomFunctionTest is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java.
Where is PseudoRandomFunctionTest defined?
PseudoRandomFunctionTest is defined in handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java at line 28.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free