()
| 57 | } |
| 58 | |
| 59 | func (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. |
no outgoing calls
no test coverage detected