add control flow obf for garble
This commit is contained in:
@@ -3,6 +3,7 @@ package wire
|
||||
import "github.com/vmihailenco/msgpack/v5"
|
||||
|
||||
func DecodeEnvelope(data []byte) (map[string]interface{}, error) {
|
||||
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
|
||||
env := make(map[string]interface{})
|
||||
if err := msgpack.Unmarshal(data, &env); err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -12,6 +12,7 @@ type Writer interface {
|
||||
}
|
||||
|
||||
func WriteMsg(ctx context.Context, w Writer, v interface{}) error {
|
||||
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
|
||||
payload, err := msgpack.Marshal(v)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user