Lines Matching refs:sal_uInt8

80 …EncryptionData( const sal_uInt8* pnKey, sal_uInt32 nKeySize, const sal_uInt8* pnVerifier, sal_uInt…
84 sal_uInt8 mpnSalt[ 16 ];
85 sal_uInt8 mpnEncrVerifier[ 16 ];
86 sal_uInt8 mpnEncrVerifierHash[ 32 ];
93 vector< sal_uInt8> encryptionKey;
142 static void deriveKey( const sal_uInt8* pnHash, sal_uInt32 nHashLen, sal_uInt8* pnKeyDerived, sal_u… in deriveKey()
144 sal_uInt8 pnBuffer[ 64 ]; in deriveKey()
151 sal_uInt8 pnX1[ RTL_DIGEST_LENGTH_SHA1 ]; in deriveKey()
161 sal_uInt8 pnX2[ RTL_DIGEST_LENGTH_SHA1 ]; in deriveKey()
176 sal_uInt8* pnBuffer = new sal_uInt8[ nBufferSize ]; in verifyPassword()
179 sal_uInt8* pnPasswordLoc = pnBuffer + mnSaltSize; in verifyPassword()
189 sal_uInt8* pnHash = new sal_uInt8[ nHashSize ]; in verifyPassword()
209 vector< sal_uInt8 > key( mnKeySize / 8 ); in verifyPassword()
234 const sal_uInt8 *pnKey = reinterpret_cast< const sal_uInt8* >( aKey.getConstArray() ); in verifyEncryptionData()
236 const sal_uInt8 *pnVerifier = reinterpret_cast< const sal_uInt8* >( aVerifier.getConstArray() ); in verifyEncryptionData()
238 …const sal_uInt8 *pnVerifierHash = reinterpret_cast< const sal_uInt8* >( aVerifierHash.getConstArra… in verifyEncryptionData()
242 encryptionKey = vector< sal_uInt8 >( &pnKey[ 0 ], &pnKey[ nKeySize ] ); in verifyEncryptionData()
249 …EncryptionData( const sal_uInt8* pnKey, sal_uInt32 nKeySize, const sal_uInt8* pnVerifier, sal_uInt… in checkEncryptionData()
264 sal_uInt8 pnTmpVerifier[ 16 ]; in checkEncryptionData()
275 sal_uInt8 pnTmpVerifierHash[ 32 ]; in checkEncryptionData()
283 sal_uInt8 pnSha1Hash[ RTL_DIGEST_LENGTH_SHA1 ]; in checkEncryptionData()
302 sal_uInt8 pnInBuffer[ 1024 ]; in decryptStream()
303 sal_uInt8 pnOutBuffer[ 1024 ]; in decryptStream()
332 vector< sal_uInt8 > saltValue;
337 vector< sal_uInt8 > encryptedHmacKey;
338 vector< sal_uInt8 > encryptedHmacValue;
350 vector< sal_uInt8 > saltValue;
352 vector< sal_uInt8 > encryptedVerifierHashInput;
353 vector< sal_uInt8 > encryptedVerifierHashValue;
354 vector< sal_uInt8 > encryptedKeyValue;
357 static bool decodeBase64( OUString& base64, vector< sal_uInt8 >& bytes ) in decodeBase64()
362 …int decodedSize = EVP_DecodeBlock( &bytes[ 0 ], reinterpret_cast< sal_uInt8 const * >( base64Ascii… in decodeBase64()
387 vector< sal_uInt8> encryptionKey;
388 vector< sal_uInt8> hmacKey;
389 vector< sal_uInt8> hmacValue;
688 static vector< sal_uInt8 > hashPassword( const OUString& password, const EVP_MD *digestAlgorithm, v… in hashPassword()
695 vector< sal_uInt8 > passwordLE( 2 * password.getLength() ); in hashPassword()
699 vector< sal_uInt8> digestBuffer( digestSize ); in hashPassword()
717 static void toBlock36( vector< sal_uInt8 >& digest, sal_uInt32 size ) in toBlock36()
731 static void toBlock0( vector< sal_uInt8 >& digest, sal_uInt32 size ) in toBlock0()
745 static vector< sal_uInt8 > generateKey( const vector< sal_uInt8 >& passwordHash, in generateKey()
747 const vector< sal_uInt8 >& blockKey, in generateKey()
755 vector< sal_uInt8> key( digest.digestSize() ); in generateKey()
762 static vector< sal_uInt8> generateIv( const vector< sal_uInt8 >& salt, in generateIv()
766 vector< sal_uInt8> iv( salt ); in generateIv()
772 static vector< sal_uInt8> generateIv( const EVP_MD *digestAlgorithm, in generateIv()
773 const vector< sal_uInt8 >& salt, in generateIv()
774 const vector< sal_uInt8 >& blockKey, in generateIv()
782 vector< sal_uInt8> iv( digest.digestSize() ); in generateIv()
795 static vector< sal_uInt8 > decryptAll( const EVP_CIPHER* cipherAlgorithm, in decryptAll()
796 const sal_uInt8* iv, in decryptAll()
797 const sal_uInt8* key, in decryptAll()
798 const sal_uInt8* encryptedData, in decryptAll()
806 vector< sal_uInt8 > decryptedData( encryptedDataLength + 2*blockSize ); in decryptAll()
818 static vector< sal_uInt8 > hashInput( const vector< sal_uInt8 >& passwordHash, in hashInput()
819 const vector< sal_uInt8 >& salt, in hashInput()
821 const vector< sal_uInt8 >& blockKey, in hashInput()
822 const vector< sal_uInt8 >& inputKey, in hashInput()
828 …vector< sal_uInt8 > intermediateKey = generateKey( passwordHash, digestAlgorithm, blockKey, keySiz… in hashInput()
829 vector< sal_uInt8> iv = generateIv( salt, blockSize ); in hashInput()
830 vector< sal_uInt8 > zeroedInput( inputKey.size() ); in hashInput()
841 …vector< sal_uInt8 > passwordHash = hashPassword( password, digestAlgorithm, passwordKeyEncryptor.s… in verifyPassword()
843 …static const sal_uInt8 verifierInputBlockData[] = { 0xfe, 0xa7, 0xd2, 0x76, 0x3b, 0x4b, 0x9e, 0x79… in verifyPassword()
844 …vector< sal_uInt8 > verifierInputBlock( &verifierInputBlockData[ 0 ], &verifierInputBlockData[ siz… in verifyPassword()
846 …vector< sal_uInt8 > encryptedVerifierHash = hashInput( passwordHash, passwordKeyEncryptor.saltValu… in verifyPassword()
856 …static const sal_uInt8 verifierHashBlockData[] = { 0xd7, 0xaa, 0x0f, 0x6d, 0x30, 0x61, 0x34, 0x4e … in verifyPassword()
857 …vector< sal_uInt8 > verifierHashBlock( &verifierHashBlockData[ 0 ], &verifierHashBlockData[ sizeof… in verifyPassword()
858 …vector< sal_uInt8 > verifierHashDec = hashInput( passwordHash, passwordKeyEncryptor.saltValue, dig… in verifyPassword()
867 … static const sal_uInt8 cryptoKeyBlockData[] = { 0x14, 0x6e, 0x0b, 0xe7, 0xab, 0xac, 0xd0, 0xd6 }; in verifyPassword()
868 …vector< sal_uInt8 > cryptoKeyBlock( &cryptoKeyBlockData[ 0 ], &cryptoKeyBlockData[ sizeof( cryptoK… in verifyPassword()
879 …static const sal_uInt8 integrityKeyBlockData[] = { 0x5f, 0xb2, 0xad, 0x01, 0x0c, 0xb9, 0xe1, 0xf6 … in verifyPassword()
880 …vector< sal_uInt8 > integrityKeyBlock( &integrityKeyBlockData[ 0 ], &integrityKeyBlockData[ sizeof… in verifyPassword()
881 …vector< sal_uInt8 > integrityKeyIv = generateIv( keyDataDigestAlgorithm, keyData.saltValue, integr… in verifyPassword()
885 …static const sal_uInt8 integrityValueBlockData[] = { 0xa0, 0x67, 0x7f, 0x02, 0xb2, 0x2c, 0x84, 0x3… in verifyPassword()
886 …vector< sal_uInt8 > integrityValueBlock( &integrityValueBlockData[ 0 ], &integrityValueBlockData[ … in verifyPassword()
887 …vector< sal_uInt8 > integrityValueIv = generateIv( keyDataDigestAlgorithm, keyData.saltValue, inte… in verifyPassword()
919 sal_uInt8 inputBuffer[ 4096 ]; in decryptStream()
920 vector< sal_uInt8 > outputBuffer( 4096 + 2*OpenSSLCipher::blockSize( cipherAlgorithm ) ); in decryptStream()
926 vector< sal_uInt8 > blockBytes( 4 ); in decryptStream()
931 …vector< sal_uInt8 > iv = generateIv( digestAlgorithm, keyData.saltValue, blockBytes, keyData.block… in decryptStream()