Low-memory garbage collector

This commit is contained in:
Jakub Lehotsky 2018-11-22 10:53:14 +01:00
parent 686d4f1b7d
commit d7f0550a4b
4 changed files with 125 additions and 27 deletions

View file

@ -241,7 +241,7 @@ func (kr *KeyRing) EncryptSymmetric(textToEncrypt string, canonicalizeText bool)
}
encryptedWriter.Close()
if outSplit, err = SeparateKeyAndData(kr, buffer); err != nil {
if outSplit, err = SeparateKeyAndData(kr, buffer, len(textToEncrypt), -1); err != nil {
return
}