MCPcopy Create free account
hub / github.com/WICG/webpackage / base64Encoding

Method base64Encoding

go/signedexchange/mice/mice.go:59–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (enc Encoding) base64Encoding() *base64.Encoding {
60 switch enc {
61 case Draft02Encoding:
62 return base64.RawURLEncoding
63 case Draft03Encoding:
64 return base64.StdEncoding
65 default:
66 panic("not reached")
67 }
68}
69
70// Encode encodes content of buf and writes to w. Encode returns Digest header
71// value (or MI header value in draft 02), and error if one exists.

Callers 2

FormatDigestHeaderMethod · 0.95
parseDigestHeaderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected