Encryption call-back function.
Encrypt the data stored in the buffer data of size size. Encryption should be performed in-place and cannot alter the size of the data buffer.
- Parameters:
-
| udata | User-defined data stored in db_crypt_t::udata. |
| offset | The page number where the data is stored. offset can be used to seed encryption algorythm. |
| data | Data to encrypt in-place. |
| size | Size of the data to encrypt. |
- Returns:
- DB_NOERROR. Other error codes are reserved for future use.