diff options
author | tye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-27 07:49:42 +0000 |
---|---|---|
committer | tye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-27 07:49:42 +0000 |
commit | 6b8ebcb8de52ae5cab543181712e53eeb94340a7 (patch) | |
tree | 7abaef27511dfea181ba5740f9200a308ce335ef /CryptoPkg/Library/BaseCryptLib/Pem | |
parent | 805c2dd1198760778d6460280f5cc5e93a04d612 (diff) | |
download | edk2-6b8ebcb8de52ae5cab543181712e53eeb94340a7.tar.gz edk2-6b8ebcb8de52ae5cab543181712e53eeb94340a7.tar.bz2 edk2-6b8ebcb8de52ae5cab543181712e53eeb94340a7.zip |
Fix some typo and coding style issues in BaseCryptLib instances.
Signed-off by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu, Siyuan <Siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13564 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLib/Pem')
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c b/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c index 2c3a97b2c0..319ad59ecc 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c +++ b/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c @@ -36,7 +36,7 @@ PasswordCallback ( {
INTN KeyLength;
- ZeroMem ((VOID *)Buf, (UINTN)Size);
+ ZeroMem ((VOID *) Buf, (UINTN) Size);
if (Key != NULL) {
//
// Duplicate key phrase directly.
@@ -93,16 +93,16 @@ RsaGetPrivateKeyFromPem ( // Add possible block-cipher descriptor for PEM data decryption.
// NOTE: Only support most popular ciphers (3DES, AES) for the encrypted PEM.
//
- EVP_add_cipher (EVP_des_ede3_cbc());
- EVP_add_cipher (EVP_aes_128_cbc());
- EVP_add_cipher (EVP_aes_192_cbc());
- EVP_add_cipher (EVP_aes_256_cbc());
+ EVP_add_cipher (EVP_des_ede3_cbc ());
+ EVP_add_cipher (EVP_aes_128_cbc ());
+ EVP_add_cipher (EVP_aes_192_cbc ());
+ EVP_add_cipher (EVP_aes_256_cbc ());
//
// Read encrypted PEM Data.
//
PemBio = BIO_new (BIO_s_mem ());
- BIO_write (PemBio, PemData, (int)PemSize);
+ BIO_write (PemBio, PemData, (int) PemSize);
if (PemBio == NULL) {
goto _Exit;
}
@@ -110,7 +110,7 @@ RsaGetPrivateKeyFromPem ( //
// Retrieve RSA Private Key from encrypted PEM data.
//
- *RsaContext = PEM_read_bio_RSAPrivateKey (PemBio, NULL, (pem_password_cb *)&PasswordCallback, (void *)Password);
+ *RsaContext = PEM_read_bio_RSAPrivateKey (PemBio, NULL, (pem_password_cb *) &PasswordCallback, (void *) Password);
if (*RsaContext != NULL) {
Status = TRUE;
}
|