Lines Matching refs:bi_state

95     cryptstate_T *bi_state;  member
964 if (bi->bi_buffer != NULL && bi->bi_state != NULL && bi->bi_used > 0) in undo_flush()
968 crypt_encode_inplace(bi->bi_state, bi->bi_buffer, bi->bi_used, FALSE); in undo_flush()
989 if (bi->bi_state != NULL && bi->bi_buffer == NULL) in fwrite_crypt()
1002 crypt_encode(bi->bi_state, ptr, len, copy, TRUE); in fwrite_crypt()
1136 crypt_decode_inplace(bi->bi_state, bi->bi_buffer, bi->bi_avail, FALSE); in undo_read()
1182 if (bi->bi_state != NULL && bi->bi_buffer == NULL) in read_string_decrypt()
1183 crypt_decode_inplace(bi->bi_state, ptr, len, FALSE); in read_string_decrypt()
1213 bi->bi_state = crypt_create_for_writing(crypt_get_method_nr(buf), in serialize_header()
1215 if (bi->bi_state == NULL) in serialize_header()
1221 crypt_free_state(bi->bi_state); in serialize_header()
1222 bi->bi_state = NULL; in serialize_header()
1231 crypt_free_state(bi->bi_state); in serialize_header()
1232 bi->bi_state = NULL; in serialize_header()
1785 if (bi.bi_state != NULL && undo_flush(&bi) == FAIL) in u_write_undo()
1819 if (bi.bi_state != NULL) in u_write_undo()
1820 crypt_free_state(bi.bi_state); in u_write_undo()
1934 bi.bi_state = crypt_create_from_file(fp, curbuf->b_p_key); in u_read_undo()
1935 if (bi.bi_state == NULL) in u_read_undo()
1940 if (crypt_whole_undofile(bi.bi_state->method_nr)) in u_read_undo()
1945 crypt_free_state(bi.bi_state); in u_read_undo()
1946 bi.bi_state = NULL; in u_read_undo()
2182 if (bi.bi_state != NULL) in u_read_undo()
2183 crypt_free_state(bi.bi_state); in u_read_undo()