• Home
  • Raw
  • Download

Lines Matching refs:cenc

6012             if (!(*sc)->cenc.default_encrypted_sample)  in get_current_encryption_info()
6028 if (!(*sc)->cenc.encryption_index) { in get_current_encryption_info()
6030 if (!(*sc)->cenc.default_encrypted_sample) in get_current_encryption_info()
6032 (*sc)->cenc.encryption_index = av_mallocz(sizeof(*frag_stream_info->encryption_index)); in get_current_encryption_info()
6033 if (!(*sc)->cenc.encryption_index) in get_current_encryption_info()
6037 *encryption_index = (*sc)->cenc.encryption_index; in get_current_encryption_info()
6048 if (!sc->cenc.default_encrypted_sample) { in mov_read_sample_encryption_info()
6053 *sample = av_encryption_info_clone(sc->cenc.default_encrypted_sample); in mov_read_sample_encryption_info()
6057 if (sc->cenc.per_sample_iv_size != 0) { in mov_read_sample_encryption_info()
6058 if ((ret = ffio_read_size(pb, (*sample)->iv, sc->cenc.per_sample_iv_size)) < 0) { in mov_read_sample_encryption_info()
6187 …ret = mov_read_sample_encryption_info(c, pb, sc, sample, sample_info_size > sc->cenc.per_sample_iv… in mov_parse_auxiliary_info()
6267 if (sc->cenc.default_encrypted_sample) { in mov_read_saiz()
6268 if (aux_info_type != sc->cenc.default_encrypted_sample->scheme) { in mov_read_saiz()
6289 } else if (!sc->cenc.default_encrypted_sample) { in mov_read_saiz()
6341 if (sc->cenc.default_encrypted_sample) { in mov_read_saio()
6342 if (aux_info_type != sc->cenc.default_encrypted_sample->scheme) { in mov_read_saio()
6363 } else if (!sc->cenc.default_encrypted_sample) { in mov_read_saio()
6537 if (!sc->cenc.default_encrypted_sample) { in mov_read_schm()
6538 sc->cenc.default_encrypted_sample = av_encryption_info_alloc(0, 16, 16); in mov_read_schm()
6539 if (!sc->cenc.default_encrypted_sample) { in mov_read_schm()
6544 sc->cenc.default_encrypted_sample->scheme = avio_rb32(pb); in mov_read_schm()
6564 if (!sc->cenc.default_encrypted_sample) { in mov_read_tenc()
6565 sc->cenc.default_encrypted_sample = av_encryption_info_alloc(0, 16, 16); in mov_read_tenc()
6566 if (!sc->cenc.default_encrypted_sample) { in mov_read_tenc()
6581 sc->cenc.default_encrypted_sample->crypt_byte_block = pattern >> 4; in mov_read_tenc()
6582 sc->cenc.default_encrypted_sample->skip_byte_block = pattern & 0xf; in mov_read_tenc()
6586 if (is_protected && !sc->cenc.encryption_index) { in mov_read_tenc()
6588 sc->cenc.encryption_index = av_mallocz(sizeof(MOVEncryptionIndex)); in mov_read_tenc()
6589 if (!sc->cenc.encryption_index) in mov_read_tenc()
6592 sc->cenc.per_sample_iv_size = avio_r8(pb); in mov_read_tenc()
6593 if (sc->cenc.per_sample_iv_size != 0 && sc->cenc.per_sample_iv_size != 8 && in mov_read_tenc()
6594 sc->cenc.per_sample_iv_size != 16) { in mov_read_tenc()
6598 if (avio_read(pb, sc->cenc.default_encrypted_sample->key_id, 16) != 16) { in mov_read_tenc()
6603 if (is_protected && !sc->cenc.per_sample_iv_size) { in mov_read_tenc()
6610 if (avio_read(pb, sc->cenc.default_encrypted_sample->iv, iv_size) != iv_size) { in mov_read_tenc()
6665 if (!sc->cenc.aes_ctr) { in cenc_decrypt()
6667 sc->cenc.aes_ctr = av_aes_ctr_alloc(); in cenc_decrypt()
6668 if (!sc->cenc.aes_ctr) { in cenc_decrypt()
6672 ret = av_aes_ctr_init(sc->cenc.aes_ctr, c->decryption_key); in cenc_decrypt()
6678 av_aes_ctr_set_full_iv(sc->cenc.aes_ctr, sample->iv); in cenc_decrypt()
6682 av_aes_ctr_crypt(sc->cenc.aes_ctr, input, input, size); in cenc_decrypt()
6697 … av_aes_ctr_crypt(sc->cenc.aes_ctr, input, input, sample->subsamples[i].bytes_of_protected_data); in cenc_decrypt()
6727 encryption_index = sc->cenc.encryption_index; in cenc_filter()
6731 encryption_index = sc->cenc.encryption_index; in cenc_filter()
6748 encrypted_sample = sc->cenc.default_encrypted_sample; in cenc_filter()
7446 mov_free_encryption_index(&sc->cenc.encryption_index); in mov_read_close()
7447 av_encryption_info_free(sc->cenc.default_encrypted_sample); in mov_read_close()
7448 av_aes_ctr_free(sc->cenc.aes_ctr); in mov_read_close()