Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for getSigningKey (0.28 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 Apr 28 19:28:10 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Jan 04 04:18:31 GMT 2021
    - 14.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

                }
    
                if ( ctx.isEstablished() ) {
                    log.debug("Context is established");
                    setNetbiosName(ctx.getNetbiosName());
                    byte[] sk = ctx.getSigningKey();
                    if ( sk != null ) {
                        // session key is truncated to 16 bytes, right padded with 0 if shorter
                        byte[] key = new byte[16];
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SSPContext.java

    
    /**
     * @author mbechler
     *
     */
    public interface SSPContext {
    
        /**
         * @return the signing key for the session
         * 
         * @throws CIFSException
         */
        byte[] getSigningKey () throws CIFSException;
    
    
        /**
         * @return whether the context is established
         */
        boolean isEstablished ();
    
    
        /**
         * @param token
         * @param off
         * @param len
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.6K bytes
    - Viewed (0)
  5. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  6. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Aug 02 08:22:42 GMT 2018
    - 13.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NtlmContext.java

            return ret;
        }
    
        public boolean isEstablished() {
            return isEstablished;
        }
        public byte[] getServerChallenge()
        {
            return serverChallenge;
        }
        public byte[] getSigningKey()
        {
            return signingKey;
        }
        public String getNetbiosName()
        {
            return netbiosName;
        }
    
        private String getNtlmsspListItem(byte[] type2token, int id0)
        {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.9K bytes
    - Viewed (0)
  8. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  9. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  10. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 18.8K bytes
    - Viewed (0)
Back to top