Lines Matching refs:cipher
68 EVP_CIPHER *cipher = GetGcmAlgorithmByKeyLen(cipherkey->keyLen);
69 if (cipher == NULL) {
70 COMM_LOGE(COMM_ADAPTER, "get cipher fail.");
80 ret = EVP_EncryptInit_ex(*ctx, cipher, NULL, NULL, NULL);
87 ret = EVP_DecryptInit_ex(*ctx, cipher, NULL, NULL, NULL);
493 EVP_CIPHER *cipher = NULL;
494 if (!(cipher = GetCtrAlgorithmByKeyLen(key->keyLen))) {
495 return HandleError(ctx, "get cipher failed");
500 if (EVP_EncryptInit_ex(ctx, cipher, NULL, key->key, key->iv) != 1) {
524 EVP_CIPHER *cipher = NULL;
525 if (!(cipher = GetCtrAlgorithmByKeyLen(key->keyLen))) {
526 return HandleError(ctx, "get cipher failed");
531 if (EVP_DecryptInit_ex(ctx, cipher, NULL, key->key, key->iv) != 1) {