#include "libavutil/intreadwrite.h"#include "avutil.h"#include "common.h"#include "xtea.h"Go to the source code of this file.
Defines | |
| #define | DSTEP(SUM, K0, K1) |
| #define | ESTEP(SUM, K0, K1) |
Functions | |
| void | av_xtea_init (AVXTEA *ctx, const uint8_t key[16]) |
| Initialize an AVXTEA context. | |
| static void | xtea_crypt_ecb (AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int decrypt) |
| void | av_xtea_crypt (AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
| Encrypt or decrypt a buffer using a previously initialized context. | |
| #define DSTEP | ( | SUM, | |||
| K0, | |||||
| K1 | ) |
Value:
v1 -= (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (SUM + K0); \ v0 -= (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (SUM - 0x9E3779B9 + K1)
Referenced by xtea_crypt_ecb().
| #define ESTEP | ( | SUM, | |||
| K0, | |||||
| K1 | ) |
Value:
v0 += (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (SUM + K0);\ v1 += (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (SUM + 0x9E3779B9 + K1)
Referenced by xtea_crypt_ecb().
1.5.8