Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_crypt_unittest.cpp File Reference

(ada9ddbf8c604585ac344b72f7bb63ac27c84726)

#include "core/fdrm/fx_crypt.h"
#include <algorithm>
#include <string>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/utils/hash.h"
+ Include dependency graph for fx_crypt_unittest.cpp:

Go to the source code of this file.

Functions

 TEST (FXCRYPT, CryptToBase16)
 
 TEST (FXCRYPT, MD5GenerateEmtpyData)
 
 TEST (FXCRYPT, MD5GenerateOneByteData)
 
 TEST (FXCRYPT, MD5GenerateLongData)
 
 TEST (FXCRYPT, ContextWithEmptyData)
 
 TEST (FXCRYPT, ContextWithLongData)
 
 TEST (FXCRYPT, MD5StringTestSuite1)
 
 TEST (FXCRYPT, MD5StringTestSuite2)
 
 TEST (FXCRYPT, MD5StringTestSuite3)
 
 TEST (FXCRYPT, MD5StringTestSuite4)
 
 TEST (FXCRYPT, MD5StringTestSuite5)
 
 TEST (FXCRYPT, MD5StringTestSuite6)
 
 TEST (FXCRYPT, MD5StringTestSuite7)
 
 TEST (FXCRYPT, ContextWithStringData)
 
 TEST (FXCRYPT, Sha1Empty)
 
 TEST (FXCRYPT, Sha1TestA1)
 
 TEST (FXCRYPT, Sha1TestA2)
 
 TEST (FXCRYPT, Sha256Empty)
 
 TEST (FXCRYPT, Sha256TestB1)
 
 TEST (FXCRYPT, Sha256TestB2)
 
 TEST (FXCRYPT, CRYPT_ArcFourSetup)
 
 TEST (FXCRYPT, CRYPT_ArcFourCrypt)
 
 TEST (FXCRYPT, Sha384Empty)
 
 TEST (FXCRYPT, Sha384Test)
 
 TEST (FXCRYPT, Sha384Pad112)
 
 TEST (FXCRYPT, Sha512Empty)
 
 TEST (FXCRYPT, Sha512Test)
 
 TEST (FXCRYPT, Sha512Pad112)
 

Function Documentation

◆ TEST() [1/28]

TEST ( FXCRYPT ,
ContextWithEmptyData  )

Definition at line 87 of file fx_crypt_unittest.cpp.

References CRYPT_MD5Finish(), and CRYPT_MD5Start().

+ Here is the call graph for this function:

◆ TEST() [2/28]

TEST ( FXCRYPT ,
ContextWithLongData  )

Definition at line 101 of file fx_crypt_unittest.cpp.

References CRYPT_MD5Finish(), and CRYPT_MD5Start().

+ Here is the call graph for this function:

◆ TEST() [3/28]

TEST ( FXCRYPT ,
ContextWithStringData  )

Definition at line 182 of file fx_crypt_unittest.cpp.

References CRYPT_MD5Finish(), CRYPT_MD5Start(), and CryptToBase16().

+ Here is the call graph for this function:

◆ TEST() [4/28]

TEST ( FXCRYPT ,
CRYPT_ArcFourCrypt  )

Definition at line 338 of file fx_crypt_unittest.cpp.

◆ TEST() [5/28]

TEST ( FXCRYPT ,
CRYPT_ArcFourSetup  )

Definition at line 280 of file fx_crypt_unittest.cpp.

◆ TEST() [6/28]

TEST ( FXCRYPT ,
CryptToBase16  )

Definition at line 34 of file fx_crypt_unittest.cpp.

◆ TEST() [7/28]

TEST ( FXCRYPT ,
MD5GenerateEmtpyData  )

Definition at line 45 of file fx_crypt_unittest.cpp.

◆ TEST() [8/28]

TEST ( FXCRYPT ,
MD5GenerateLongData  )

Definition at line 69 of file fx_crypt_unittest.cpp.

◆ TEST() [9/28]

TEST ( FXCRYPT ,
MD5GenerateOneByteData  )

Definition at line 57 of file fx_crypt_unittest.cpp.

◆ TEST() [10/28]

TEST ( FXCRYPT ,
MD5StringTestSuite1  )

Definition at line 133 of file fx_crypt_unittest.cpp.

◆ TEST() [11/28]

TEST ( FXCRYPT ,
MD5StringTestSuite2  )

Definition at line 139 of file fx_crypt_unittest.cpp.

◆ TEST() [12/28]

TEST ( FXCRYPT ,
MD5StringTestSuite3  )

Definition at line 145 of file fx_crypt_unittest.cpp.

◆ TEST() [13/28]

TEST ( FXCRYPT ,
MD5StringTestSuite4  )

Definition at line 151 of file fx_crypt_unittest.cpp.

◆ TEST() [14/28]

TEST ( FXCRYPT ,
MD5StringTestSuite5  )

Definition at line 157 of file fx_crypt_unittest.cpp.

◆ TEST() [15/28]

TEST ( FXCRYPT ,
MD5StringTestSuite6  )

Definition at line 163 of file fx_crypt_unittest.cpp.

◆ TEST() [16/28]

TEST ( FXCRYPT ,
MD5StringTestSuite7  )

Definition at line 172 of file fx_crypt_unittest.cpp.

◆ TEST() [17/28]

TEST ( FXCRYPT ,
Sha1Empty  )

Definition at line 194 of file fx_crypt_unittest.cpp.

◆ TEST() [18/28]

TEST ( FXCRYPT ,
Sha1TestA1  )

Definition at line 208 of file fx_crypt_unittest.cpp.

◆ TEST() [19/28]

TEST ( FXCRYPT ,
Sha1TestA2  )

Definition at line 222 of file fx_crypt_unittest.cpp.

◆ TEST() [20/28]

TEST ( FXCRYPT ,
Sha256Empty  )

Definition at line 238 of file fx_crypt_unittest.cpp.

◆ TEST() [21/28]

TEST ( FXCRYPT ,
Sha256TestB1  )

Definition at line 251 of file fx_crypt_unittest.cpp.

◆ TEST() [22/28]

TEST ( FXCRYPT ,
Sha256TestB2  )

Definition at line 265 of file fx_crypt_unittest.cpp.

◆ TEST() [23/28]

TEST ( FXCRYPT ,
Sha384Empty  )

Definition at line 543 of file fx_crypt_unittest.cpp.

◆ TEST() [24/28]

TEST ( FXCRYPT ,
Sha384Pad112  )

Definition at line 574 of file fx_crypt_unittest.cpp.

◆ TEST() [25/28]

TEST ( FXCRYPT ,
Sha384Test  )

Definition at line 558 of file fx_crypt_unittest.cpp.

◆ TEST() [26/28]

TEST ( FXCRYPT ,
Sha512Empty  )

Definition at line 591 of file fx_crypt_unittest.cpp.

◆ TEST() [27/28]

TEST ( FXCRYPT ,
Sha512Pad112  )

Definition at line 626 of file fx_crypt_unittest.cpp.

◆ TEST() [28/28]

TEST ( FXCRYPT ,
Sha512Test  )

Definition at line 608 of file fx_crypt_unittest.cpp.