Lines Matching defs:cipher

244637   void *cipher;
244731 CODEC_STATIC int opensslFreeCipher(void *cipher){
244735 CODEC_STATIC const char *opensslGetCipherName(void *cipher){
244736 return EVP_CIPHER_name((EVP_CIPHER *)cipher);
244739 CODEC_STATIC int opensslGetKeySize(void *cipher){
244740 return EVP_CIPHER_key_length((EVP_CIPHER *)cipher);
244743 CODEC_STATIC int opensslGetInitVectorSize(void *cipher){
244744 return EVP_CIPHER_iv_length((EVP_CIPHER *)cipher);
244782 CODEC_STATIC int opensslGetBlockSize(void *cipher){
244783 return EVP_CIPHER_block_size((EVP_CIPHER *)cipher);
244786 CODEC_STATIC void *opensslGetCtx(void *cipher, int mode, unsigned char *key, unsigned char *initVector){
244791 EVP_CipherInit_ex(tmpCtx, (EVP_CIPHER *)cipher, NULL, NULL, NULL, mode);
244979 (void)opensslFreeCipher(keyCtx->codecConst.cipher);
245132 if(keyCtx->codecConst.cipher){
245133 if(sqlite3StrICmp(cipherName, opensslGetCipherName(keyCtx->codecConst.cipher)) == 0){
245138 void *cipher = opensslGetCipher(cipherName);
245139 if(cipher != NULL){
245140 keyCtx->codecConst.cipher = cipher;
245144 keyCtx->codecConst.keySize = opensslGetKeySize(keyCtx->codecConst.cipher);
245146 keyCtx->codecConst.initVectorSize = opensslGetInitVectorSize(keyCtx->codecConst.cipher);
245191 sqlite3_log(SQLITE_WARNING, "invalid attach cipher algorithm");
245280 int cipherBlockSize = opensslGetBlockSize(keyCtx->codecConst.cipher);
245312 sqlite3_log(SQLITE_NOMEM, "codec: alloc mem failed when set cipher page size(%d).", size);
245570 void *cipherCtx = opensslGetCtx(keyCtx->codecConst.cipher, CODEC_OPERATION_ENCRYPT, keyCtx->key, initVector.buffer);
245624 void *cipherCtx = opensslGetCtx(keyCtx->codecConst.cipher, CODEC_OPERATION_DECRYPT, keyCtx->key, initVector);
245933 sqlite3CodecReturnPragmaResult(parse, "codec_cipher", opensslGetCipherName(ctx->writeCtx->codecConst.cipher));