Lines Matching refs:BLOCKSIZE
31 #define BLOCKSIZE 16 macro
36 uint8_t inbuffer [BLOCKSIZE*MAX_BUFFER_BLOCKS],
37 outbuffer[BLOCKSIZE*MAX_BUFFER_BLOCKS];
59 uint8_t pad[BLOCKSIZE];
91 } else if (default_buf_len != BLOCKSIZE) { in set_aes_arg()
94 desc, default_buf_len, BLOCKSIZE); in set_aes_arg()
101 } else if (*buf_len != BLOCKSIZE) { in set_aes_arg()
104 desc, *buf_len, BLOCKSIZE); in set_aes_arg()
156 ret = av_aes_init(c->aes_decrypt, c->decrypt_key, BLOCKSIZE * 8, 1); in crypto_open2()
171 ret = av_aes_init(c->aes_encrypt, c->encrypt_key, BLOCKSIZE * 8, 0); in crypto_open2()
200 while (c->indata - c->indata_used < 2*BLOCKSIZE) { in crypto_read()
209 blocks = (c->indata - c->indata_used) / BLOCKSIZE; in crypto_read()
216 c->outdata = BLOCKSIZE * blocks; in crypto_read()
218 c->indata_used += BLOCKSIZE * blocks; in crypto_read()
279 block = pos/BLOCKSIZE; in crypto_seek()
290 c->position = (block * BLOCKSIZE); in crypto_seek()
303 uint8_t buff[BLOCKSIZE*2]; // maximum size of pos-c->position in crypto_seek()
336 pad_len = total_size % BLOCKSIZE; in crypto_write()
338 blocks = out_size / BLOCKSIZE; in crypto_write()
347 memcpy(&c->pad[c->pad_len], buf, BLOCKSIZE - c->pad_len); in crypto_write()
353 &c->write_buf[c->pad_len ? BLOCKSIZE : 0], in crypto_write()
354 &buf[c->pad_len ? BLOCKSIZE - c->pad_len : 0], in crypto_write()
376 uint8_t out_buf[BLOCKSIZE]; in crypto_close()
377 int pad = BLOCKSIZE - c->pad_len; in crypto_close()
381 ret = ffurl_write(c->hd, out_buf, BLOCKSIZE); in crypto_close()