- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UnmarshalText (0.18 sec)
-
internal/kms/dek_test.go
for i, test := range dekEncodeDecodeTests { text, err := test.Key.MarshalText() if err != nil { t.Fatalf("Test %d: failed to marshal DEK: %v", i, err) } var key DEK if err = key.UnmarshalText(text); err != nil { t.Fatalf("Test %d: failed to unmarshal DEK: %v", i, err) } if key.Plaintext != nil { t.Fatalf("Test %d: unmarshaled DEK contains non-nil plaintext", i) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 2.2K bytes - Viewed (0) -
internal/kms/kms.go
} return json.Marshal(JSON{ KeyID: d.KeyID, Ciphertext: d.Ciphertext, }) } // UnmarshalText tries to decode text as JSON representation // of a DEK and sets DEK's key ID and ciphertext to the // decoded values. // // It sets DEK's plaintext to nil. func (d *DEK) UnmarshalText(text []byte) error { type JSON struct { KeyID string `json:"keyid"` Ciphertext []byte `json:"ciphertext"`
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)