summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter_impl2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl2.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index 135d5b0a43a2..bea5e7dc2c2c 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -1165,13 +1165,13 @@ void PDFWriterImpl::checkAndEnableStreamEncryption( register sal_Int32 nObject )
m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)nObject;
m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 8 );
m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 16 );
- //the other location of m_nEncryptionKey are already set to 0, our fixed generation number
+ // the other location of m_nEncryptionKey is already set to 0, our fixed generation number
// do the MD5 hash
sal_uInt8 nMD5Sum[ RTL_DIGEST_LENGTH_MD5 ];
// the i+2 to take into account the generation number, always zero
rtl_digest_MD5( &m_aContext.Encryption.EncryptionKey[0], i+2, nMD5Sum, sizeof(nMD5Sum) );
// initialize the RC4 with the key
- // key legth: see algoritm 3.1, step 4: (N+5) max 16
+ // key length: see algorithm 3.1, step 4: (N+5) max 16
rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum, m_nRC4KeyLength, NULL, 0 );
}
}
@@ -1184,13 +1184,13 @@ void PDFWriterImpl::enableStringEncryption( register sal_Int32 nObject )
m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)nObject;
m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 8 );
m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 16 );
- //the other location of m_nEncryptionKey are already set to 0, our fixed generation number
+ // the other location of m_nEncryptionKey is already set to 0, our fixed generation number
// do the MD5 hash
sal_uInt8 nMD5Sum[ RTL_DIGEST_LENGTH_MD5 ];
// the i+2 to take into account the generation number, always zero
rtl_digest_MD5( &m_aContext.Encryption.EncryptionKey[0], i+2, nMD5Sum, sizeof(nMD5Sum) );
// initialize the RC4 with the key
- // key legth: see algoritm 3.1, step 4: (N+5) max 16
+ // key length: see algorithm 3.1, step 4: (N+5) max 16
rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum, m_nRC4KeyLength, NULL, 0 );
}
}