Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Outlet (0.11 sec)

  1. src/test/java/jcifs/pac/PacMacTest.java

         */
        @Test
        void testExpandNFold() {
            // Test basic functionality
            byte[] data = { 1, 2, 3 };
            int outlen = 5;
            byte[] expanded = PacMac.expandNFold(data, outlen);
            assertNotNull(expanded);
            assertEquals(outlen, expanded.length);
    
            // Test vectors from RFC 3961 Appendix A.1
            // 64-fold("012345")
            verifyNfold("012345", 8,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacMac.java

         *
         * @param data the input data to expand
         * @param outlen the desired output length in bytes
         * @return the n-folded data of the specified length
         */
        public static byte[] expandNFold(byte[] data, int outlen) {
            int lcm = lcm(outlen, data.length);
            byte[] buf = new byte[outlen];
            int carry = 0;
            for (int i = lcm - 1; i >= 0; i--) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
Back to top