src: Correcting coding style of security related code.
Change-Id: Iff09b16d8a86462aff0abbd202b82cebb74bc365
diff --git a/src/security/sec-tpm.cpp b/src/security/sec-tpm.cpp
index 3638ca1..d2e4af5 100644
--- a/src/security/sec-tpm.cpp
+++ b/src/security/sec-tpm.cpp
@@ -122,7 +122,8 @@
}
encryptionAlgorithm.MessageEnd();
- DEREncodeOctetString(encryptedPrivateKeyInfo, encryptedOs.buf()->buf(), encryptedOs.buf()->size());
+ DEREncodeOctetString(encryptedPrivateKeyInfo,
+ encryptedOs.buf()->buf(), encryptedOs.buf()->size());
}
encryptedPrivateKeyInfo.MessageEnd();
@@ -135,7 +136,9 @@
}
bool
-SecTpm::importPrivateKeyPkcs8IntoTpm(const Name& keyName, const uint8_t* buf, size_t size, const string& passwordStr)
+SecTpm::importPrivateKeyPkcs8IntoTpm(const Name& keyName,
+ const uint8_t* buf, size_t size,
+ const string& passwordStr)
{
using namespace CryptoPP;
@@ -149,7 +152,8 @@
try
{
- //decode some decoding processes are not necessary for now, because we assume only one encryption scheme.
+ // decode some decoding processes are not necessary for now,
+ // because we assume only one encryption scheme.
StringSource source(buf, size, true);
// EncryptedPrivateKeyInfo ::= SEQUENCE {
@@ -245,7 +249,8 @@
return false;
}
- if (!importPrivateKeyPkcs1IntoTpm(keyName, privateKeyOs.buf()->buf(), privateKeyOs.buf()->size()))
+ if (!importPrivateKeyPkcs1IntoTpm(keyName,
+ privateKeyOs.buf()->buf(), privateKeyOs.buf()->size()))
return false;
//derive public key