Lines Matching refs:aCipher

70     rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB);  in TEST_F()  local
71 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
72 rtl_cipher_destroy(aCipher); in TEST_F()
76 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeECB); in TEST_F() local
77 ASSERT_TRUE(aCipher == NULL) << "create provide wrong object."; in TEST_F()
81 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeCBC); in TEST_F() local
82 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
83 rtl_cipher_destroy(aCipher); in TEST_F()
87 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeCBC); in TEST_F() local
88 ASSERT_TRUE(aCipher == NULL) << "create provide wrong object."; in TEST_F()
92 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeStream); in TEST_F() local
93 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
94 rtl_cipher_destroy(aCipher); in TEST_F()
98 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeStream); in TEST_F() local
99 ASSERT_TRUE(aCipher == NULL) << "create provide wrong object."; in TEST_F()
103 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeInvalid); in TEST_F() local
104 ASSERT_TRUE(aCipher == NULL) << "create provide wrong object."; in TEST_F()
108 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeInvalid); in TEST_F() local
109 ASSERT_TRUE(aCipher == NULL) << "create provide wrong object."; in TEST_F()
127 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeECB); in TEST_F() local
128 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
129 rtl_cipher_destroy(aCipher); in TEST_F()
133 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeCBC); in TEST_F() local
134 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
135 rtl_cipher_destroy(aCipher); in TEST_F()
139 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeStream); in TEST_F() local
140 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
141 rtl_cipher_destroy(aCipher); in TEST_F()
145 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeInvalid); in TEST_F() local
146 ASSERT_TRUE(aCipher == NULL) << "create provide wrong object."; in TEST_F()
164 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in test_encode() local
165 ASSERT_TRUE(aCipher != NULL) << "create failed."; in test_encode()
180 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in test_encode()
192 …/* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pPlainTextBuffer, nPlainTextLen, pCipherB… in test_encode()
204 …/* rtlCipherError */ aError = rtl_cipher_decode(aCipher, pCipherBuffer, nCipherLen, pPlainText2Buf… in test_encode()
230 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in test_encode_and_decode() local
231 ASSERT_TRUE(aCipher != NULL) << "create failed."; in test_encode_and_decode()
246 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionBoth, pKeyBuffer, nKeyLen, pA… in test_encode_and_decode()
258 …/* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pPlainTextBuffer, nPlainTextLen, pCipherB… in test_encode_and_decode()
270 …/* rtlCipherError */ aError = rtl_cipher_decode(aCipher, pCipherBuffer, nCipherLen, pPlainText2Buf… in test_encode_and_decode()
291 rtl_cipher_destroy(aCipher); in test_encode_and_decode()
344 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeCBC); in TEST_F() local
345 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
346 rtl_cipher_destroy(aCipher); in TEST_F()
365 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeECB); in TEST_F() local
366 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
367 rtl_cipher_destroyBF(aCipher); in TEST_F()
388 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in test_encode() local
389 ASSERT_TRUE(aCipher != NULL) << "create failed."; in test_encode()
404 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in test_encode()
416 /* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pDataBuffer, nDataLen, pBuffer, nLen); in test_encode()
430 rtl_cipher_destroy(aCipher); in test_encode()
479 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in TEST_F() local
480 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
493 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in TEST_F()
502 rtl_cipher_destroy(aCipher); in TEST_F()
507 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in TEST_F() local
508 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
522 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in TEST_F()
531 rtl_cipher_destroy(aCipher); in TEST_F()
535 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in TEST_F() local
536 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
550 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in TEST_F()
559 rtl_cipher_destroy(aCipher); in TEST_F()
563 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in TEST_F() local
564 ASSERT_TRUE(aCipher != NULL) << "create failed."; in TEST_F()
579 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in TEST_F()
588 rtl_cipher_destroy(aCipher); in TEST_F()