Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for DECRYPTION (0.17 sec)

  1. docs/debugging/inspect/main.go

    			privateKey = b
    			fmt.Println("Using private key from", *privKeyPath)
    		}
    
    		// Prompt for decryption key if no --key or --private-key are provided
    		if len(privateKey) == 0 {
    			reader := bufio.NewReader(os.Stdin)
    			fmt.Print("Enter Decryption Key: ")
    
    			text, _ := reader.ReadString('\n')
    			// convert CRLF to LF
    			*keyHex = strings.ReplaceAll(text, "\n", "")
    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)
  2. cmd/encryption-v1.go

    				}
    			}
    			objects = objects[N:]
    			continue
    		}
    
    		// There is at least one SSE-S3 single-part object.
    		// For all SSE-S3 single-part objects we have to
    		// fetch their decryption keys. We do this using
    		// a Bulk-Decryption API call, if available.
    		keys, err := crypto.S3.UnsealObjectKeys(ctx, k, metadata, buckets, names)
    		if err != nil {
    			return err
    		}
    
    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)
  3. internal/kms/kes.go

    		decryptedKey, err := client.Decrypt(ctx, env.Get(EnvKESKeyName, ""), key.Ciphertext, kmsCtx)
    		switch {
    		case err != nil:
    			result.Decrypt = fmt.Sprintf("Decryption failed: %v", err)
    		case subtle.ConstantTimeCompare(key.Plaintext, decryptedKey) != 1:
    			result.Decrypt = "Decryption failed: decrypted key does not match generated key"
    		default:
    			result.Decrypt = "success"
    		}
    		results = append(results, result)
    	}
    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)
  4. cmd/object-api-utils.go

    	return &HTTPRangeSpec{Start: start, End: end}
    }
    
    // Returns the compressed offset which should be skipped.
    // If encrypted offsets are adjusted for encrypted block headers/trailers.
    // Since de-compression is after decryption encryption overhead is only added to compressedOffset.
    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/etag/etag.go

    //     before calling Format.
    //     S3 clients expect that the ETag of an SSE-S3 encrypted
    //     single-part object is equal to the object's content MD5.
    //     Formatting the SSE-S3 ETag before decryption will result
    //     in a random-looking ETag which an S3 client will not accept.
    //
    // Hence, a caller has to check:
    //
    //	if method == SSE-S3 {
    //	   ETag, err := Decrypt(key, ETag)
    //	   if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    		}
    		// Set this for multipart only operations, we need to differentiate during
    		// decryption if the file was actually multipart or not.
    		encMetadata[ReservedMetadataPrefix+"Encrypted-Multipart"] = ""
    	}
    
    	// Extract metadata that needs to be saved.
    	metadata, err := extractMetadataFromReq(ctx, r)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    	decryptedKey, err := GlobalKMS.DecryptKey(key.KeyID, key.Ciphertext, kmsContext)
    	switch {
    	case err != nil:
    		kmsStat.Decrypt = fmt.Sprintf("Decryption failed: %v", err)
    	case subtle.ConstantTimeCompare(key.Plaintext, decryptedKey) != 1:
    		kmsStat.Decrypt = "Decryption failed: decrypted key does not match generated key"
    	default:
    		kmsStat.Decrypt = "success"
    	}
    	return kmsStat
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top