Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for sha1 (0.21 sec)

  1. cmd/sftp-server.go

    // https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.22.0:ssh/common.go;l=85
    var supportedMACs = []string{
    	"hmac-sha2******@****.***", "hmac-sha2******@****.***", "hmac-sha2-256", "hmac-sha2-512", "hmac-sha1", "hmac-sha1-96",
    }
    
    func (s *sftpLogger) Error(tag xsftp.LogType, err error) {
    	switch tag {
    	case xsftp.AcceptNetworkError:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. internal/hash/checksum.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package hash
    
    import (
    	"bytes"
    	"context"
    	"crypto/sha1"
    	"encoding/base64"
    	"encoding/binary"
    	"fmt"
    	"hash"
    	"hash/crc32"
    	"net/http"
    	"strings"
    
    	"github.com/minio/minio/internal/hash/sha256"
    	xhttp "github.com/minio/minio/internal/http"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    package cmd
    
    import (
    	"archive/zip"
    	"bufio"
    	"bytes"
    	"context"
    	"crypto/ecdsa"
    	"crypto/hmac"
    	crand "crypto/rand"
    	"crypto/rsa"
    	"crypto/sha1"
    	"crypto/tls"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/base64"
    	"encoding/hex"
    	"encoding/pem"
    	"encoding/xml"
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"math/big"
    	"math/rand"
    	"net"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    			OA.Checksum.ChecksumCRC32C = strings.Split(chkSums["CRC32C"], "-")[0]
    		case chkSums["SHA256"] != "":
    			OA.Checksum = new(objectAttributesChecksum)
    			OA.Checksum.ChecksumSHA1 = strings.Split(chkSums["SHA1"], "-")[0]
    		case chkSums["SHA1"] != "":
    			OA.Checksum = new(objectAttributesChecksum)
    			OA.Checksum.ChecksumSHA256 = strings.Split(chkSums["SHA256"], "-")[0]
    		}
    
    	}
    
    	if _, ok := opts.ObjectAttributes[xhttp.ETag]; ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  5. internal/config/identity/plugin/config.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package plugin
    
    import (
    	"bytes"
    	"context"
    	"crypto/sha1"
    	"encoding/base64"
    	"encoding/json"
    	"fmt"
    	"io"
    	"net/http"
    	"net/url"
    	"regexp"
    	"sync"
    	"time"
    
    	"github.com/minio/minio/internal/arn"
    	"github.com/minio/minio/internal/config"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
  6. cmd/erasure-multipart.go

    		Size:           partInfo.Size,
    		ActualSize:     partInfo.ActualSize,
    		ChecksumCRC32:  partInfo.Checksums["CRC32"],
    		ChecksumCRC32C: partInfo.Checksums["CRC32C"],
    		ChecksumSHA1:   partInfo.Checksums["SHA1"],
    		ChecksumSHA256: partInfo.Checksums["SHA256"],
    	}, nil
    }
    
    // GetMultipartInfo returns multipart metadata uploaded during newMultipartUpload, used
    // by callers to verify object states
    // - encrypted
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  7. internal/crypto/key.go

    		unsealConfig = sio.Config{MinVersion: sio.Version20, Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()}
    	case InsecureSealAlgorithm:
    		sha := sha256.New()
    		sha.Write(extKey)
    		sha.Write(sealedKey.IV[:])
    		unsealConfig = sio.Config{MinVersion: sio.Version10, Key: sha.Sum(nil), CipherSuites: fips.DARECiphers()}
    	}
    
    	if out, err := sio.DecryptBuffer(key[:0], sealedKey.Key[:], unsealConfig); len(out) != 32 || err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    			expectedRespStatus: http.StatusBadRequest,
    			wantAPICode:        "XAmzContentChecksumMismatch",
    		},
    		// SHA1
    		12: {
    			bucketName:         bucketName,
    			objectName:         objectName,
    			headers:            map[string]string{"x-amz-checksum-sha1": checksumData(bytesData, sha1.New())},
    			data:               bytesData,
    			dataLen:            len(bytesData),
    			accessKey:          credentials.AccessKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  9. internal/http/headers.go

    	// Content Checksums
    	AmzChecksumAlgo   = "x-amz-checksum-algorithm"
    	AmzChecksumCRC32  = "x-amz-checksum-crc32"
    	AmzChecksumCRC32C = "x-amz-checksum-crc32c"
    	AmzChecksumSHA1   = "x-amz-checksum-sha1"
    	AmzChecksumSHA256 = "x-amz-checksum-sha256"
    	AmzChecksumMode   = "x-amz-checksum-mode"
    
    	// Delete special flag to force delete a bucket or a prefix
    	MinIOForceDelete = "x-minio-force-delete"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  10. internal/kms/single-key.go

    type secretKey struct {
    	keyID string
    	key   []byte
    }
    
    var _ KMS = secretKey{} // compiler check
    
    const ( // algorithms used to derive and encrypt DEKs
    	algorithmAESGCM           = "AES-256-GCM-HMAC-SHA-256"
    	algorithmChaCha20Poly1305 = "ChaCha20Poly1305"
    )
    
    func (kms secretKey) Stat(context.Context) (Status, error) {
    	return Status{
    		Name:       "SecretKey",
    		DefaultKey: kms.keyID,
    	}, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top