Lines Matching refs:enc_header
146 static int rprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size, in rprobe() argument
153 if (!enc_header || !r_val || in rprobe()
164 av_des_crypt(av_des, oc->m_val, &enc_header[48], 1, NULL, 1); in rprobe()
173 av_des_mac(av_des, oc->sm_val, &enc_header[pos], (oc->i_size >> 3)); in rprobe()
179 return memcmp(&enc_header[pos], oc->sm_val, 8) ? -1 : 0; in rprobe()
182 static int nprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size, in nprobe() argument
190 if (!enc_header || !n_val || in nprobe()
195 if (!memcmp(&enc_header[pos], "EKB ", 4)) in nprobe()
201 if (AV_RB32(&enc_header[pos]) != oc->rid) in nprobe()
204 taglen = AV_RB32(&enc_header[pos + 32]); in nprobe()
205 datalen = AV_RB32(&enc_header[pos + 36]) >> 4; in nprobe()
218 av_des_crypt(av_des, oc->r_val, &enc_header[pos], 2, NULL, 1); in nprobe()
220 if (!rprobe(s, enc_header, size, oc->r_val)) { in nprobe()