Lines Matching defs:ret
31 int bytes, enc_len = 0, i, j, ret = 0;
73 ret = fseek(op_file, sizeof(struct fw_enc_hdr), SEEK_SET);
74 if (ret) {
82 ret = -1;
86 ret = EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), NULL, NULL, NULL);
87 if (ret != 1) {
89 ret = -1;
93 ret = EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv);
94 if (ret != 1) {
100 ret = EVP_EncryptUpdate(ctx, enc_data, &enc_len, data, bytes);
101 if (ret != 1) {
103 ret = -1;
110 ret = EVP_EncryptFinal_ex(ctx, enc_data, &enc_len);
111 if (ret != 1) {
113 ret = -1;
117 ret = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, TAG_SIZE, tag);
118 if (ret != 1) {
120 ret = -1;
132 ret = fseek(op_file, 0, SEEK_SET);
133 if (ret) {
151 if (ret == 1)
152 ret = 0;
154 return ret;