Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseCiphertext (0.13 sec)

  1. internal/kms/kms.go

    }
    
    func (c *kmsConn) Decrypt(ctx context.Context, req *DecryptRequest) ([]byte, error) {
    	aad, err := req.AssociatedData.MarshalText()
    	if err != nil {
    		return nil, err
    	}
    
    	ciphertext, _ := parseCiphertext(req.Ciphertext)
    	resp, err := c.client.Decrypt(ctx, c.enclave, &kms.DecryptRequest{
    		Name:           req.Name,
    		Ciphertext:     ciphertext,
    		AssociatedData: aad,
    	})
    	if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Apr 24 15:33:57 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top