frostfs-mfa/mfa/box.go

16 lines
333 B
Go
Raw Permalink Normal View History

package mfa
import (
"google.golang.org/protobuf/proto"
)
// Marshal returns the wire-format of MFABox.
func (x *MFABox) Marshal() ([]byte, error) {
return proto.Marshal(x)
}
// Unmarshal parses the wire-format message and put data into MFABox.
func (x *MFABox) Unmarshal(data []byte) error {
return proto.Unmarshal(data, x)
}