Lines Matching defs:salt
63423 ** (1) The salt-1 and salt-2 values in the frame-header match
63424 ** salt values in the wal-header
63456 ** After each checkpoint, the salt-1 value is incremented and the salt-2
63692 u32 aSalt[2]; /* Two salt values copied from WAL header */
64226 /* A frame is only valid if the salt values in the frame-header
64227 ** match the salt values in the wal-header.
65352 u32 *aSalt = pWal->hdr.aSalt; /* Big-endian salt values */
65957 /* Check the salt keys at the start of the wal file still match. */
66433 ** In this case, the salt will have changed.
244663 unsigned char salt[SALT_SIZE];
244836 CODEC_STATIC void opensslKdf(Buffer *password, Buffer *salt, int workfactor, Buffer *key, int kdfAlgo){
244838 PKCS5_PBKDF2_HMAC((const char *)(password->buffer), password->bufferSize, salt->buffer, salt->bufferSize,
244841 PKCS5_PBKDF2_HMAC((const char *)(password->buffer), password->bufferSize, salt->buffer, salt->bufferSize,
244844 PKCS5_PBKDF2_HMAC((const char *)(password->buffer), password->bufferSize, salt->buffer, salt->bufferSize,
245025 // You should set all key infos including salt before you call this function
245048 unsigned char salt[SALT_SIZE];
245049 if (ctx->pBt != NULL && sqlite3OsRead(ctx->pBt->pBt->pPager->fd, salt, SALT_SIZE, 0) == SQLITE_OK) {
245051 if (memcmp(SQLITE_FILE_HEADER, salt, SALT_SIZE) != 0 && memcmp(ctx->salt, salt, SALT_SIZE) != 0) {
245052 memcpyRc = memcpy_s(ctx->salt, FILE_HEADER_SIZE, salt, SALT_SIZE);
245066 sqlite3CodecHex2Bin(keyCtx->password + 2 + keyCtx->codecConst.keySize * 2, SALT_SIZE * 2, ctx->salt);
245078 sqlite3CodecBin2Hex(ctx->salt, SALT_SIZE, keyCtx->keyInfo + 2 + keyCtx->codecConst.keySize * 2);
245082 Buffer salt;
245086 salt.buffer = ctx->salt;
245087 salt.bufferSize = SALT_SIZE;
245090 opensslKdf(&password, &salt, keyCtx->iter, &key, keyCtx->codecConst.kdfAlgo);
245094 sqlite3CodecBin2Hex(ctx->salt, SALT_SIZE, keyCtx->keyInfo + 2 + keyCtx->codecConst.keySize * 2);
245099 ctx->hmacSalt[i] = ctx->salt[i] ^ HMAC_SALT_MASK;
245450 if(fd == NULL || !(isOpen(fd)) || sqlite3OsRead(fd, ctx->salt, SALT_SIZE, 0) != SQLITE_OK){
245451 Buffer salt;
245452 salt.buffer = ctx->salt;
245453 salt.bufferSize = SALT_SIZE;
245454 rc = opensslGetRandom(&salt);
245670 memcpyRc = memcpy_s(pCtx->buffer, cipherPageSize, pCtx->salt, FILE_HEADER_SIZE);
245685 memcpyRc = memcpy_s(pCtx->buffer, cipherPageSize, pCtx->salt, FILE_HEADER_SIZE);