setEncryptedSuffix set suffix, or an empty string
(suffix string)
| 204 | |
| 205 | // setEncryptedSuffix set suffix, or an empty string |
| 206 | func (c *Cipher) setEncryptedSuffix(suffix string) { |
| 207 | if strings.EqualFold(suffix, "none") { |
| 208 | c.encryptedSuffix = "" |
| 209 | return |
| 210 | } |
| 211 | if !strings.HasPrefix(suffix, ".") { |
| 212 | fs.Errorf(nil, "crypt: bad suffix: %v", ErrorSuffixMissingDot) |
| 213 | suffix = "." + suffix |
| 214 | } |
| 215 | c.encryptedSuffix = suffix |
| 216 | } |
| 217 | |
| 218 | // Call to set bad block pass through |
| 219 | func (c *Cipher) setPassBadBlocks(passBadBlocks bool) { |