Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Decrypt (0.35 sec)

  1. docs/debugging/inspect/decrypt-v1.go

    Klaus Post <******@****.***> 1712870567 -0700
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. docs/debugging/inspect/decrypt-v2.go

    Klaus Post <******@****.***> 1712870567 -0700
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. cmd/encryption-v1.go

    	if err != nil {
    		return encryptedETag
    	}
    	return hex.EncodeToString(etagBytes)
    }
    
    // GetDecryptedRange - To decrypt the range (off, length) of the
    // decrypted object stream, we need to read the range (encOff,
    // encLength) of the encrypted object stream to decrypt it, and
    // compute skipLen, the number of bytes to skip in the beginning of
    // the encrypted range.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    			if err != nil {
    				return nil, 0, 0, err
    			}
    			decrypt := func(b []byte) ([]byte, error) {
    				return b, nil
    			}
    			if isEncrypted {
    				decrypt = oi.compressionIndexDecrypt
    			}
    			// In case of range based queries on multiparts, the offset and length are reduced.
    			off, decOff, firstPart, decryptSkip, seqNum = getCompressedOffsets(oi, off, decrypt)
    			decLength = length
    			length = oi.Size - off
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. internal/crypto/key.go

    	mac.Write([]byte("SSE-etag"))
    	if _, err := sio.Encrypt(&buffer, bytes.NewReader(etag), sio.Config{Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()}); err != nil {
    		logger.CriticalIf(context.Background(), errors.New("Unable to encrypt ETag using object key"))
    	}
    	return buffer.Bytes()
    }
    
    // UnsealETag unseals the etag using the provided object key.
    // It does not try to decrypt the ETag if len(etag) == 16
    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)
  6. internal/config/certs.go

    import (
    	"bytes"
    	"crypto/tls"
    	"crypto/x509"
    	"encoding/pem"
    	"errors"
    	"os"
    
    	"github.com/minio/pkg/v2/env"
    )
    
    // EnvCertPassword is the environment variable which contains the password used
    // to decrypt the TLS private key. It must be set if the TLS private key is
    // password protected.
    const EnvCertPassword = "MINIO_CERT_PASSWD"
    
    // ParsePublicCertFile - parses public cert into its *x509.Certificate equivalent.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  7. internal/kms/kms.go

    	Verify(cxt context.Context) []VerifyResult
    }
    
    // VerifyResult describes the verification result details a KMS endpoint
    type VerifyResult struct {
    	Endpoint string
    	Decrypt  string
    	Encrypt  string
    	Version  string
    	Status   string
    }
    
    // Status describes the current state of a KMS.
    type Status struct {
    	Name      string   // The name of the KMS
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. internal/kms/kes.go

    		if err != nil {
    			result.Encrypt = fmt.Sprintf("Encryption failed: %v", err)
    		} else {
    			result.Encrypt = "success"
    		}
    		// 3. Verify that we can indeed decrypt the (encrypted) key
    		decryptedKey, err := client.Decrypt(ctx, env.Get(EnvKESKeyName, ""), key.Ciphertext, kmsCtx)
    		switch {
    		case err != nil:
    			result.Decrypt = fmt.Sprintf("Decryption failed: %v", err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. docs/debugging/inspect/main.go

    		}
    	}
    
    	// Open the input and create the output file
    	input, err := os.Open(inputFileName)
    	fatalErr(err)
    	defer input.Close()
    	output, err := os.Create(outputFileName)
    	fatalErr(err)
    
    	// Decrypt the inspect data
    	msg := fmt.Sprintf("output written to %s", outputFileName)
    
    	switch {
    	case *keyHex != "":
    		err = extractInspectV1(*keyHex, input, output, msg)
    	case len(privateKey) != 0:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. internal/kms/single-key.go

    // Parse parses s as single-key KMS. The given string
    // is expected to have the following format:
    //
    //	<key-id>:<base64-key>
    //
    // The returned KMS implementation uses the parsed
    // key ID and key to derive new DEKs and decrypt ciphertext.
    func Parse(s string) (KMS, error) {
    	v := strings.SplitN(s, ":", 2)
    	if len(v) != 2 {
    		return nil, errors.New("kms: invalid master key format")
    	}
    
    	keyID, b64Key := v[0], v[1]
    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