Lines Matching refs:aCipher

69             rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB);  in create_001()  local
70 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in create_001()
71 rtl_cipher_destroy(aCipher); in create_001()
75 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeECB); in create_002() local
76 CPPUNIT_ASSERT_MESSAGE("create provide wrong object.", aCipher == NULL); in create_002()
80 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeCBC); in create_003() local
81 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in create_003()
82 rtl_cipher_destroy(aCipher); in create_003()
86 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeCBC); in create_004() local
87 CPPUNIT_ASSERT_MESSAGE("create provide wrong object.", aCipher == NULL); in create_004()
91 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeStream); in create_005() local
92 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in create_005()
93 rtl_cipher_destroy(aCipher); in create_005()
97 … rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeStream); in create_006() local
98 CPPUNIT_ASSERT_MESSAGE("create provide wrong object.", aCipher == NULL); in create_006()
102 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeInvalid); in create_007() local
103 CPPUNIT_ASSERT_MESSAGE("create provide wrong object.", aCipher == NULL); in create_007()
107 … rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmInvalid, rtl_Cipher_ModeInvalid); in create_008() local
108 CPPUNIT_ASSERT_MESSAGE("create provide wrong object.", aCipher == NULL); in create_008()
142 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeECB); in createBF_001() local
143 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in createBF_001()
144 rtl_cipher_destroy(aCipher); in createBF_001()
148 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeCBC); in createBF_002() local
149 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in createBF_002()
150 rtl_cipher_destroy(aCipher); in createBF_002()
154 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeStream); in createBF_003() local
155 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in createBF_003()
156 rtl_cipher_destroy(aCipher); in createBF_003()
160 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeInvalid); in createBF_004() local
161 CPPUNIT_ASSERT_MESSAGE("create provide wrong object.", aCipher == NULL); in createBF_004()
190 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in test_encode() local
191 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in test_encode()
206 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in test_encode()
218 …/* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pPlainTextBuffer, nPlainTextLen, pCipherB… in test_encode()
230 …/* rtlCipherError */ aError = rtl_cipher_decode(aCipher, pCipherBuffer, nCipherLen, pPlainText2Buf… in test_encode()
256 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in test_encode_and_decode() local
257 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in test_encode_and_decode()
272 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionBoth, pKeyBuffer, nKeyLen, pA… in test_encode_and_decode()
284 …/* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pPlainTextBuffer, nPlainTextLen, pCipherB… in test_encode_and_decode()
296 …/* rtlCipherError */ aError = rtl_cipher_decode(aCipher, pCipherBuffer, nCipherLen, pPlainText2Buf… in test_encode_and_decode()
317 rtl_cipher_destroy(aCipher); in test_encode_and_decode()
383 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeCBC); in destroy_001() local
384 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in destroy_001()
385 rtl_cipher_destroy(aCipher); in destroy_001()
410 rtlCipher aCipher = rtl_cipher_createBF(rtl_Cipher_ModeECB); in destroyBF_001() local
411 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in destroyBF_001()
412 rtl_cipher_destroyBF(aCipher); in destroyBF_001()
439 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in test_encode() local
440 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in test_encode()
455 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in test_encode()
467 … /* rtlCipherError */ aError = rtl_cipher_encode(aCipher, pDataBuffer, nDataLen, pBuffer, nLen); in test_encode()
481 rtl_cipher_destroy(aCipher); in test_encode()
544 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in init_001() local
545 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in init_001()
558 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in init_001()
567 rtl_cipher_destroy(aCipher); in init_001()
572 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in init_002() local
573 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in init_002()
587 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in init_002()
596 rtl_cipher_destroy(aCipher); in init_002()
600 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in init_003() local
601 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in init_003()
615 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in init_003()
624 rtl_cipher_destroy(aCipher); in init_003()
628 rtlCipher aCipher = rtl_cipher_create(rtl_Cipher_AlgorithmBF, rtl_Cipher_ModeECB); in init_004() local
629 CPPUNIT_ASSERT_MESSAGE("create failed.", aCipher != NULL); in init_004()
644 …rtlCipherError aError = rtl_cipher_init(aCipher, rtl_Cipher_DirectionEncode, pKeyBuffer, nKeyLen, … in init_004()
653 rtl_cipher_destroy(aCipher); in init_004()