Lines Matching refs:cipherKey

280     AesGcmCipherKey cipherKey;
281 cipherKey.keyLen = SESSION_KEY_LENGTH;
282 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
289 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
296 * @tc.desc: cipherKey、input and inLen is invalid param
302 AesGcmCipherKey cipherKey;
303 cipherKey.keyLen = 32;
311 ret = SoftBusEncryptData(&cipherKey, nullptr, inLen, (unsigned char*)encryptData, &encryptLen);
313 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input, inLen1, (unsigned char*)encryptData, &encryptLen);
325 AesGcmCipherKey cipherKey;
326 cipherKey.keyLen = 32;
331 int32_t ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input, inLen, nullptr, &encryptLen);
333 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input, inLen, (unsigned char*)encryptData, nullptr);
345 AesGcmCipherKey cipherKey;
346 cipherKey.keyLen = SESSION_KEY_LENGTH;
347 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
355 ret = SoftBusEncryptDataWithSeq(&cipherKey, (unsigned char*)input,
362 * @tc.desc: cipherKey and input is invalid param
368 AesGcmCipherKey cipherKey;
369 cipherKey.keyLen = 32;
378 ret = SoftBusEncryptDataWithSeq(&cipherKey, nullptr, inLen, (unsigned char*)encryptData, &encryptLen, seqNum);
390 AesGcmCipherKey cipherKey;
391 cipherKey.keyLen = 32;
397 int32_t ret = SoftBusEncryptDataWithSeq(&cipherKey, (unsigned char*)input,
410 AesGcmCipherKey cipherKey;
411 cipherKey.keyLen = 32;
417 int32_t ret = SoftBusEncryptDataWithSeq(&cipherKey, (unsigned char*)input,
420 ret = SoftBusEncryptDataWithSeq(&cipherKey, (unsigned char*)input,
433 AesGcmCipherKey cipherKey;
434 cipherKey.keyLen = SESSION_KEY_LENGTH;
435 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
444 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
447 ret = SoftBusDecryptData(&cipherKey, (unsigned char*)encryptData,
454 * @tc.desc: cipherKey、input and inLen is invalid param
460 AesGcmCipherKey cipherKey;
461 cipherKey.keyLen = SESSION_KEY_LENGTH;
462 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
472 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
478 ret = SoftBusDecryptData(&cipherKey, nullptr,
481 ret = SoftBusDecryptData(&cipherKey, (unsigned char*)encryptData,
494 AesGcmCipherKey cipherKey;
495 cipherKey.keyLen = SESSION_KEY_LENGTH;
496 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
505 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
508 ret = SoftBusDecryptData(&cipherKey, (unsigned char*)encryptData,
511 ret = SoftBusDecryptData(&cipherKey, (unsigned char*)encryptData,
524 AesGcmCipherKey cipherKey;
525 cipherKey.keyLen = SESSION_KEY_LENGTH;
526 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
536 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
539 ret = SoftBusDecryptDataWithSeq(&cipherKey, (unsigned char*)encryptData,
546 * @tc.desc: cipherKey and input is invalid param
552 AesGcmCipherKey cipherKey;
553 cipherKey.keyLen = SESSION_KEY_LENGTH;
554 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
564 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
570 ret = SoftBusDecryptDataWithSeq(&cipherKey, nullptr,
583 AesGcmCipherKey cipherKey;
584 cipherKey.keyLen = SESSION_KEY_LENGTH;
585 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
596 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
599 ret = SoftBusDecryptDataWithSeq(&cipherKey, (unsigned char*)encryptData,
612 AesGcmCipherKey cipherKey;
613 cipherKey.keyLen = SESSION_KEY_LENGTH;
614 int32_t ret = SoftBusGenerateRandomArray(cipherKey.key, SESSION_KEY_LENGTH);
624 ret = SoftBusEncryptData(&cipherKey, (unsigned char*)input,
627 ret = SoftBusDecryptDataWithSeq(&cipherKey, (unsigned char*)encryptData,
630 ret = SoftBusDecryptDataWithSeq(&cipherKey, (unsigned char*)encryptData,