]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/aes_ctr.c
Merge commit 'cc1c94dacd0642ac1a6cad45deb65071f127d91a'
[ffmpeg] / libavutil / aes_ctr.c
index e9c568fe0d13dd569ca151c29d7b97503cbd05ef..0c2e86785f1bbbd67b9205a93e51c7f8e5f57628 100644 (file)
@@ -45,6 +45,12 @@ void av_aes_ctr_set_iv(struct AVAESCTR *a, const uint8_t* iv)
     a->block_offset = 0;
 }
 
+void av_aes_ctr_set_full_iv(struct AVAESCTR *a, const uint8_t* iv)
+{
+    memcpy(a->counter, iv, sizeof(a->counter));
+    a->block_offset = 0;
+}
+
 const uint8_t* av_aes_ctr_get_iv(struct AVAESCTR *a)
 {
     return a->counter;