diff --git a/romulus_m.go b/romulus_m.go index e86bbfe..936e632 100644 --- a/romulus_m.go +++ b/romulus_m.go @@ -54,7 +54,7 @@ func Decrypt(key []byte, ciphertext []byte, additionalData []byte) ([]byte, bool return nil, false, errors.New("Failed to decrypt") } - return plaintext, true, nil + return plaintext[:plaintextLen], true, nil } func genNonce() []byte {