Home / Function/ testPrfSha256() — netty Function Reference

testPrfSha256() — netty Function Reference

Architecture documentation for the testPrfSha256() function in PseudoRandomFunctionTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5f37353d_efb3_d806_5eb1_61134f72ead1["testPrfSha256()"]
  b7a5d004_3a06_e52d_f8df_574dc84500a1["PseudoRandomFunctionTest"]
  5f37353d_efb3_d806_5eb1_61134f72ead1 -->|defined in| b7a5d004_3a06_e52d_f8df_574dc84500a1
  style 5f37353d_efb3_d806_5eb1_61134f72ead1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java lines 30–51

    @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);
    }

Domain

Subdomains

Frequently Asked Questions

What does testPrfSha256() do?
testPrfSha256() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java.
Where is testPrfSha256() defined?
testPrfSha256() is defined in handler/src/test/java/io/netty/handler/ssl/PseudoRandomFunctionTest.java at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free