Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for signatureV2 (0.2 sec)

  1. cmd/signature-v2.go

    	signature := calculateSignatureV2(stringToSign, cred.SecretKey)
    	return signature
    }
    
    // compareSignatureV2 returns true if and only if both signatures
    // are equal. The signatures are expected to be base64 encoded strings
    // according to the AWS S3 signature V2 spec.
    func compareSignatureV2(sig1, sig2 string) bool {
    	// Decode signature string to binary byte-sequence representation is required
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. cmd/signature-v2_test.go

    		{
    			queryParams: map[string]string{
    				"Expires":        "60",
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": accessKey,
    			},
    			expected: ErrExpiredPresignRequest,
    		},
    		// (4) Should error when the signature does not match.
    		{
    			queryParams: map[string]string{
    				"Expires":        fmt.Sprintf("%d", now.Unix()+60),
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": accessKey,
    			},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. cmd/streaming-signature-v4_test.go

    	}
    	// List of readers used.
    	readers := []io.Reader{
    		// Test - 1
    		bytes.NewReader([]byte("1000;chunk-signature=111123333333333333334444211\r\n")),
    		// Test - 2
    		bytes.NewReader([]byte("1000;")),
    		// Test - 3
    		bytes.NewReader(fmt.Appendf(nil, "%4097d", 1)),
    		// Test - 4
    		bytes.NewReader([]byte("1000;chunk-signature=111123333333333333334444211\r\n")),
    	}
    	testCases := []testCase{
    		// Test - 1 - small bufio reader.
    		{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            }
            final byte[] signature = digest();
            for (int i = 0; i < 8; i++) {
                if (signature[i] != data[offset + SmbConstants.SIGNATURE_OFFSET + i]) {
                    if (log.isDebugEnabled()) {
                        log.debug("signature verification failure"); //$NON-NLS-1$
                        log.debug("Expect: " + Hexdump.toHexString(signature, 0, 8));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            }
    
            @Test
            @DisplayName("Should correctly verify signatures - regression test for inverted logic bug")
            void testVerifySignatureLogicRegression() throws Exception {
                // This test ensures the signature verification logic is not inverted
                // Previously there was a bug where verify returned true for invalid signatures
    
                // Set signed flag
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            assertTrue(result); // Signature mismatch expected
        }
    
        @Test
        @DisplayName("Test verify method with invalid signature")
        void testVerifyWithInvalidSignature() {
            SMB1SigningDigest digest = new SMB1SigningDigest(testMacSigningKey);
            byte[] data = new byte[100];
    
            // Set invalid signature
            for (int i = 0; i < 8; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

         */
        @Override
        public boolean verifySignature(final byte[] buffer, final int i, final int size) {
            // observed too that signatures on error responses are sometimes wrong??
            // Looks like the failure case also is just reflecting back the signature we sent
    
            // with SMB3's negotiation validation it's no longer possible to ignore this (on the validation response)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        SmbResourceLocator other;
    
        @Mock
        DfsReferralData referral;
    
        // Reflection-based API checks ensure the interface contract is as expected
        @Test
        @DisplayName("Type hierarchy and method signatures are correct")
        void typeAndSignatures() throws Exception {
            Class<?> clazz = SmbResourceLocatorInternal.class;
    
            // Assert it's an interface and extends the right superinterface
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        int FLAGS2_NONE = 0x0000;
        /** Long filenames supported flag */
        int FLAGS2_LONG_FILENAMES = 0x0001;
        /** Extended attributes supported flag */
        int FLAGS2_EXTENDED_ATTRIBUTES = 0x0002;
        /** Security signatures supported flag */
        int FLAGS2_SECURITY_SIGNATURES = 0x0004;
        /** Extended security negotiation flag */
        int FLAGS2_EXTENDED_SECURITY_NEGOTIATION = 0x0800;
        /** Resolve paths in DFS flag */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

        }
    
        /**
         * Gets the signature or authentication tag for the encrypted message
         *
         * @return the signature/authentication tag
         */
        public byte[] getSignature() {
            return this.signature;
        }
    
        /**
         * Sets the signature or authentication tag for the encrypted message
         *
         * @param signature
         *            the signature/authentication tag to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top