Home
last modified time | relevance | path

Searched refs:crypto_ctx (Results 1 - 3 of 3) sorted by relevance

/third_party/ffmpeg/libavformat/
H A Dhls_sample_encryption.c201 static int decrypt_nal_unit(HLSCryptoContext *crypto_ctx, NALUnit *nalu) in decrypt_nal_unit() argument
208 ret = av_aes_init(crypto_ctx->aes_ctx, crypto_ctx->key, 16 * 8, 1); in decrypt_nal_unit()
218 memcpy(iv, crypto_ctx->iv, 16); in decrypt_nal_unit()
222 av_aes_crypt(crypto_ctx->aes_ctx, data, data, 1, iv, 1); in decrypt_nal_unit()
233 static int decrypt_video_frame(HLSCryptoContext *crypto_ctx, AVPacket *pkt) in decrypt_video_frame() argument
254 ret = decrypt_nal_unit(crypto_ctx, &nalu); in decrypt_video_frame()
342 static int decrypt_sync_frame(enum AVCodecID codec_id, HLSCryptoContext *crypto_ctx, AudioFrame *frame) in decrypt_sync_frame() argument
348 ret = av_aes_init(crypto_ctx->aes_ctx, crypto_ctx in decrypt_sync_frame()
361 decrypt_audio_frame(enum AVCodecID codec_id, HLSCryptoContext *crypto_ctx, AVPacket *pkt) decrypt_audio_frame() argument
387 ff_hls_senc_decrypt_frame(enum AVCodecID codec_id, HLSCryptoContext *crypto_ctx, AVPacket *pkt) ff_hls_senc_decrypt_frame() argument
[all...]
H A Dhls_sample_encryption.h63 int ff_hls_senc_decrypt_frame(enum AVCodecID codec_id, HLSCryptoContext *crypto_ctx, AVPacket *pkt);
H A Dhls.c229 HLSCryptoContext crypto_ctx; member
1912 if (c->crypto_ctx.aes_ctx) in hls_close()
1913 av_free(c->crypto_ctx.aes_ctx); in hls_close()
2124 } else if (!c->crypto_ctx.aes_ctx) { in hls_read_header()
2125 c->crypto_ctx.aes_ctx = av_aes_alloc(); in hls_read_header()
2126 if (!c->crypto_ctx.aes_ctx) { in hls_read_header()
2319 memcpy(c->crypto_ctx.iv, seg->iv, sizeof(seg->iv)); in hls_read_packet()
2320 memcpy(c->crypto_ctx.key, pls->key, sizeof(pls->key)); in hls_read_packet()
2321 ff_hls_senc_decrypt_frame(codec_id, &c->crypto_ctx, pls->pkt); in hls_read_packet()

Completed in 5 milliseconds