Changeset View
Changeset View
Standalone View
Standalone View
src/lib/eet/eet_data.c
Show First 20 Lines • Show All 5275 Lines • ▼ Show 20 Line(s) | 5273 | eet_data_descriptor_encode_cipher(Eet_Data_Descriptor *edd, | |||
---|---|---|---|---|---|
5276 | int *size_ret) | 5276 | int *size_ret) | ||
5277 | { | 5277 | { | ||
5278 | void *ret = NULL; | 5278 | void *ret = NULL; | ||
5279 | void *ciphered = NULL; | 5279 | void *ciphered = NULL; | ||
5280 | unsigned int ciphered_len = 0; | 5280 | unsigned int ciphered_len = 0; | ||
5281 | int size; | 5281 | int size; | ||
5282 | 5282 | | |||
5283 | EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL); | 5283 | EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL); | ||
5284 | EINA_SAFETY_ON_NULL_RETURN_VAL(data_in, NULL); | ||||
5284 | 5285 | | |||
5285 | ret = _eet_data_descriptor_encode(NULL, edd, data_in, &size); | 5286 | ret = _eet_data_descriptor_encode(NULL, edd, data_in, &size); | ||
5286 | if (cipher_key && ret) | 5287 | if (cipher_key && ret) | ||
5287 | { | 5288 | { | ||
5288 | if (eet_cipher(ret, size, cipher_key, | 5289 | if (eet_cipher(ret, size, cipher_key, | ||
5289 | strlen(cipher_key), &ciphered, &ciphered_len)) | 5290 | strlen(cipher_key), &ciphered, &ciphered_len)) | ||
5290 | { | 5291 | { | ||
5291 | if (ciphered) | 5292 | if (ciphered) | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |