Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getSigningKey (0.19 sec)

  1. cmd/signature-v4.go

    	canonicalRequestBytes := sha256.Sum256([]byte(canonicalRequest))
    	stringToSign += hex.EncodeToString(canonicalRequestBytes[:])
    	return stringToSign
    }
    
    // getSigningKey hmac seed to calculate final signature.
    func getSigningKey(secretKey string, t time.Time, region string, stype serviceType) []byte {
    	date := sumHMAC([]byte("AWS4"+secretKey), []byte(t.Format(yyyymmdd)))
    	regionBytes := sumHMAC(date, []byte(region))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SpnegoContext.java

            return null;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getSigningKey()
         */
        @Override
        public byte[] getSigningKey () throws CIFSException {
            return this.mechContext.getSigningKey();
        }
    
    
        /**
         * Initialize the GSSContext to provide SPNEGO feature.
         * 
         * @param inputBuf
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Jan 04 04:18:31 GMT 2021
    - 14.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/Kerb5Context.java

         */
        @Override
        public String getNetbiosName () {
            return null;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getSigningKey()
         */
        @Override
        public byte[] getSigningKey () throws SmbException {
            /*
             * The kerberos session key is not accessible via the JGSS API. IBM and
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Aug 02 08:22:42 GMT 2018
    - 13.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbSession.java

                                } else {
                                    byte[] signingKey = auth.getSigningKey(transport.server.encryptionKey);
                                    request.digest = new SigningDigest(signingKey, false);
                                }
                            }
        
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  5. cmd/streaming-signature-v4.go

    		cr.seedDate.Format(iso8601Format) + "\n" +
    		getScope(cr.seedDate, cr.region) + "\n" +
    		cr.seedSignature + "\n" +
    		emptySHA256 + "\n" +
    		hashedChunk
    
    	// Get hmac signing key.
    	signingKey := getSigningKey(cr.cred.SecretKey, cr.seedDate, cr.region, serviceS3)
    
    	// Calculate signature.
    	newSignature := getSignature(signingKey, stringToSign)
    
    	return newSignature
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmContext.java

        }
    
    
        /**
         * @return the server's challenge
         */
        public byte[] getServerChallenge () {
            return this.serverChallenge;
        }
    
    
        @Override
        public byte[] getSigningKey () {
            return this.masterKey;
        }
    
    
        @Override
        public String getNetbiosName () {
            return this.netbiosName;
        }
    
    
        /**
         * @param targetName
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  7. cmd/signature-v4_test.go

    					fmt.Sprintf(credentialTemplate, accessKey, now.Format(yyyymmdd), globalMinioDefaultRegion),
    				},
    				"X-Amz-Date": []string{now.Format(iso8601Format)},
    				"X-Amz-Signature": []string{
    					getSignature(getSigningKey(globalActiveCred.SecretKey, now,
    						globalMinioDefaultRegion, serviceS3), "policy"),
    				},
    				"Policy": []string{"policy"},
    			},
    			expected: ErrNone,
    		},
    	}
    
    	// Run each test case individually.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            }
        }
    
    
        /**
         * @param tc
         * @param chlng
         * @return the signing key
         * @throws SmbException
         * @throws GeneralSecurityException
         */
        public byte[] getSigningKey ( CIFSContext tc, byte[] chlng ) throws SmbException, GeneralSecurityException {
            switch ( tc.getConfig().getLanManCompatibility() ) {
            case 0:
            case 1:
            case 2:
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 18.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                */
                return new byte[0];
            default:
                return getNTLMResponse( password, challenge );
            }
        }
    
        public byte[] getSigningKey(byte[] challenge) throws SmbException
        {
            switch (LM_COMPATIBILITY) {
                case 0:
                case 1:
                case 2:
                    byte[] signingKey = new byte[40];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  10. cmd/post-policy_test.go

    }
    
    // postPresignSignatureV4 - presigned signature for PostPolicy requests.
    func postPresignSignatureV4(policyBase64 string, t time.Time, secretAccessKey, location string) string {
    	// Get signining key.
    	signingkey := getSigningKey(secretAccessKey, t, location, "s3")
    	// Calculate signature.
    	signature := getSignature(signingkey, policyBase64)
    	return signature
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top