- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for MarshalText (0.07 seconds)
-
internal/kms/context.go
// provided when decrypting an encrypted DEK. type Context map[string]string // MarshalText returns a canonical text representation of // the Context. // MarshalText sorts the context keys and writes the sorted // key-value pairs as canonical JSON object. The sort order // is based on the un-escaped keys. It never returns an error. func (c Context) MarshalText() ([]byte, error) { if len(c) == 0 { return []byte{'{', '}'}, nil }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 6K bytes - Click Count (0) -
api/go1.18.txt
pkg net/netip, method (Addr) IsValid() bool pkg net/netip, method (Addr) Less(Addr) bool pkg net/netip, method (Addr) MarshalBinary() ([]uint8, error) pkg net/netip, method (Addr) MarshalText() ([]uint8, error) pkg net/netip, method (Addr) Next() Addr pkg net/netip, method (Addr) Prefix(int) (Prefix, error) pkg net/netip, method (Addr) Prev() Addr pkg net/netip, method (Addr) String() string
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 17 20:31:46 GMT 2023 - 13K bytes - Click Count (0) -
internal/config/storageclass/storage-class.go
if scStr == "" { return nil } s, err := parseStorageClass(scStr) if err != nil { return err } sc.Parity = s.Parity return nil } // MarshalText - marshals storage class string. func (sc *StorageClass) MarshalText() ([]byte, error) { if sc.Parity != 0 { return fmt.Appendf(nil, "%s:%d", schemePrefix, sc.Parity), nil } return []byte{}, nil }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.3K bytes - Click Count (0) -
internal/kms/conn.go
Ciphertext []byte // Ciphertext of the data encryption key } var ( _ encoding.TextMarshaler = (*DEK)(nil) _ encoding.TextUnmarshaler = (*DEK)(nil) ) // MarshalText encodes the DEK's key ID and ciphertext // as JSON. func (d DEK) MarshalText() ([]byte, error) { type JSON struct { KeyID string `json:"keyid"` Version uint32 `json:"version,omitempty"` Ciphertext []byte `json:"ciphertext"` }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Aug 18 06:43:03 GMT 2024 - 5K bytes - Click Count (0) -
api/go1.21.txt
pkg log/slog, method (Level) MarshalText() ([]uint8, error) #56345 pkg log/slog, method (Level) String() string #56345 pkg log/slog, method (*Level) UnmarshalJSON([]uint8) error #56345 pkg log/slog, method (*Level) UnmarshalText([]uint8) error #56345 pkg log/slog, method (*LevelVar) Level() Level #56345 pkg log/slog, method (*LevelVar) MarshalText() ([]uint8, error) #56345
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Aug 07 09:39:17 GMT 2023 - 25.6K bytes - Click Count (0) -
api/go1.23.txt
pkg crypto/x509, method (*OID) UnmarshalText([]uint8) error #66249 pkg crypto/x509, method (OID) MarshalBinary() ([]uint8, error) #66249 pkg crypto/x509, method (OID) MarshalText() ([]uint8, error) #66249 pkg debug/elf, const PT_OPENBSD_NOBTCFI = 1705237480 #66054 pkg debug/elf, const PT_OPENBSD_NOBTCFI ProgType #66054 pkg debug/elf, const STT_GNU_IFUNC = 10 #66836
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Jun 25 17:08:08 GMT 2024 - 10.1K bytes - Click Count (0) -
api/go1.6.txt
pkg image/color, type NYCbCrA struct pkg image/color, type NYCbCrA struct, A uint8 pkg image/color, type NYCbCrA struct, embedded YCbCr pkg image/color, var NYCbCrAModel Model pkg math/big, method (*Float) MarshalText() ([]uint8, error) pkg math/big, method (*Float) UnmarshalText([]uint8) error pkg math/big, method (*Int) Append([]uint8, int) []uint8 pkg math/big, method (*Int) Text(int) string
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Jan 13 23:40:13 GMT 2016 - 12.9K bytes - Click Count (0) -
internal/kms/kes.go
// The same context must be provided when the generated // key should be decrypted. func (c *kesConn) GenerateKey(ctx context.Context, req *GenerateKeyRequest) (DEK, error) { aad, err := req.AssociatedData.MarshalText() if err != nil { return DEK{}, err } name := req.Name if name == "" { name = c.defaultKeyID } dek, err := c.client.GenerateKey(ctx, name, aad) if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Aug 18 06:43:03 GMT 2024 - 7.3K bytes - Click Count (0) -
internal/kms/secret-key.go
// with KES and MinKMS. func (s secretKey) GenerateKey(_ context.Context, req *GenerateKeyRequest) (DEK, error) { if req.Name != s.keyID { return DEK{}, ErrKeyNotFound } associatedData, err := req.AssociatedData.MarshalText() if err != nil { return DEK{}, err } const randSize = 28 random, err := sioutil.Random(randSize) if err != nil { return DEK{}, err } iv, nonce := random[:16], random[16:]
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Apr 21 16:23:51 GMT 2025 - 8.4K bytes - Click Count (0) -
internal/kms/dek_test.go
}, }, } func TestEncodeDecodeDEK(t *testing.T) { 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) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 07 23:55:37 GMT 2024 - 2.6K bytes - Click Count (0)