Lines Matching defs:decrypt
269 static uint64_t des_encdec(uint64_t in, uint64_t K[16], int decrypt) {
272 decrypt = decrypt ? 15 : 0;
277 f_res = f_func(in, K[decrypt ^ i]);
288 uint64_t ff_des_encdec(uint64_t in, uint64_t key, int decrypt) {
291 return des_encdec(in, K, decrypt);
295 int av_des_init(AVDES *d, const uint8_t *key, int key_bits, int decrypt) {
307 void av_des_crypt(AVDES *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) {
312 if (decrypt) {
360 int run_test(int cbc, int decrypt) {
362 int delay = cbc && !decrypt ? 2 : 1;
367 av_des_init(&d, cbc_key, 192, decrypt);
368 av_des_crypt(&d, large_buffer[delay], large_buffer[0], 10000, cbc ? tmp : NULL, decrypt);
371 if (decrypt)
376 if (decrypt)