add newlines to base64 content

OpenSSL wants a newline in the base64 content to decode it, so add
ones to make it happy.

BUG=chromium:381200
TEST=`FEATURES=test emerge-x86-alex chromeos-cryptohome` passes w/openssl-1.0.1g
TEST=`FEATURES=test emerge-x86-alex chromeos-cryptohome` passes w/openssl-1.0.1h

Change-Id: Idf28fefcdc912926fd988f582baaf5c00c54b424
Reviewed-on: https://chromium-review.googlesource.com/202701
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/homedirs_unittest.cc b/homedirs_unittest.cc
index 7f5dff1..a4403ce 100644
--- a/homedirs_unittest.cc
+++ b/homedirs_unittest.cc
@@ -1055,11 +1055,12 @@
   // The salted password passed in from Chrome.
   const char kPassword[] = "OSL3HZZSfK+mDQTYUh3lXhgAzJNWhYz52ax0Bleny7Q=";
   // A no-op encryption key.
-  const char kB64CipherKey[] = "QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=";
+  const char kB64CipherKey[] = "QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=\n";
   // The signing key pre-installed.
-  const char kB64SigningKey[] = "p5TR/34XX0R7IMuffH14BiL1vcdSD8EajPzdIg09z9M=";
+  const char kB64SigningKey[] =
+    "p5TR/34XX0R7IMuffH14BiL1vcdSD8EajPzdIg09z9M=\n";
   // The HMAC-256 signature over kPassword using kSigningKey.
-  const char kB64Signature[] = "KOPQmmJcMr9iMkr36N1cX+G9gDdBBu7zutAxNayPMN4=";
+  const char kB64Signature[] = "KOPQmmJcMr9iMkr36N1cX+G9gDdBBu7zutAxNayPMN4=\n";
 
   // No need to do PasswordToPasskey as that is the
   // external callers job.