Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for hmac (0.03 sec)

  1. cmd/streaming-signature-v4.go

    	streamingContentSHA256        = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
    	streamingContentSHA256Trailer = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD-TRAILER"
    	signV4ChunkedAlgorithm        = "AWS4-HMAC-SHA256-PAYLOAD"
    	signV4ChunkedAlgorithmTrailer = "AWS4-HMAC-SHA256-TRAILER"
    	streamingContentEncoding      = "aws-chunked"
    	awsTrailerHeader              = "X-Amz-Trailer"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. docs/ftp/README.md

    aes128-cbc
    3des-cbc
    ```
    
    `--sftp=mac-algos=...` specifies a default set of MAC algorithms in preference order.
    This is based on RFC 4253, section 6.4, but with hmac-md5 variants removed because they have 
    reached the end of their useful life.
    
    Valid values: 
    
    ```
    hmac******@****.***
    hmac******@****.***
    hmac-sha2-256
    hmac-sha2-512
    hmac-sha1
    hmac-sha1-96
    ```
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 06:41:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. cmd/signature-v4.go

    	"github.com/minio/minio/internal/auth"
    	"github.com/minio/minio/internal/hash/sha256"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    // AWS Signature Version '4' constants.
    const (
    	signV4Algorithm = "AWS4-HMAC-SHA256"
    	iso8601Format   = "20060102T150405Z"
    	yyyymmdd        = "20060102"
    )
    
    type serviceType string
    
    const (
    	serviceS3  serviceType = "s3"
    	serviceSTS serviceType = "sts"
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. internal/kms/secret-key.go

    	iv, nonce := random[:16], random[16:]
    
    	var aead cipher.AEAD
    	switch keyType {
    	case kms.AES256:
    		mac := hmac.New(sha256.New, s.key)
    		mac.Write(iv)
    		sealingKey := mac.Sum(nil)
    
    		block, err := aes.NewCipher(sealingKey)
    		if err != nil {
    			return nil, err
    		}
    		aead, err = cipher.NewGCM(block)
    		if err != nil {
    			return nil, err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. cmd/sftp-server.go

    // supportedMACs specifies a default set of MAC algorithms in preference order.
    // This is based on RFC 4253, section 6.4, but with hmac-md5 variants removed
    // because they have reached the end of their useful life.
    // https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.22.0:ssh/common.go;l=85
    var supportedMACs = []string{
    	"hmac******@****.***", "hmac******@****.***", "hmac-sha2-256", "hmac-sha2-512", "hmac-sha1", "hmac-sha1-96",
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. internal/jwt/parser.go

    import (
    	"bytes"
    	"crypto"
    	"crypto/hmac"
    	"encoding/base64"
    	"errors"
    	"fmt"
    	"hash"
    	"sync"
    	"time"
    
    	"github.com/buger/jsonparser"
    	"github.com/dustin/go-humanize"
    	jwtgo "github.com/golang-jwt/jwt/v4"
    	jsoniter "github.com/json-iterator/go"
    )
    
    // SigningMethodHMAC - Implements the HMAC-SHA family of signing methods signing methods
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. cmd/post-policy_test.go

    	contentLengthCondStr := `["content-length-range", 1024, 1048576]`
    	// Add the algorithm condition, only accept AWS SignV4 Sha256.
    	algorithmConditionStr := `["eq", "$x-amz-algorithm", "AWS4-HMAC-SHA256"]`
    	// Add the date condition, only accept the current date.
    	dateConditionStr := fmt.Sprintf(`["eq", "$x-amz-date", "%s"]`, t.Format(iso8601DateFormat))
    	// Add the credential string, only accept the credential passed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock_test.go

    		expected        map[string]string
    	}{
    		{
    			metadata: map[string]string{
    				"Authorization":        "AWS4-HMAC-SHA256 <cred_string>",
    				"X-Amz-Content-Sha256": "",
    				"Content-Encoding":     "",
    			},
    			expected: map[string]string{
    				"Authorization":        "AWS4-HMAC-SHA256 <cred_string>",
    				"X-Amz-Content-Sha256": "",
    				"Content-Encoding":     "",
    			},
    		},
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. docs/logging/README.md

      "requestPath": "/testbucket/hosts",
      "requestHost": "localhost:9000",
      "requestHeader": {
        "Accept-Encoding": "zstd,gzip",
        "Authorization": "AWS4-HMAC-SHA256 Credential=minioadmin/20240509/us-east-1/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-decoded-content-length,Signature=d4d6862e6cc61011a61fa801da71048ece4f32a0562cad6bb88bdda50d7fcb95",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 17:15:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. cmd/signature-v4-utils.go

    	}
    
    	if _, ok := claims[policy.SessionPolicyName]; ok {
    		owner = false
    	}
    
    	return cred, owner, ErrNone
    }
    
    // sumHMAC calculate hmac between two input byte array.
    func sumHMAC(key []byte, data []byte) []byte {
    	hash := hmac.New(sha256.New, key)
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // extractSignedHeaders extract signed headers from Authorization header
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top