12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef AVUTIL_BLOWFISH_H
- #define AVUTIL_BLOWFISH_H
- #include <stdint.h>
- #define AV_BF_ROUNDS 16
- typedef struct AVBlowfish {
- uint32_t p[AV_BF_ROUNDS + 2];
- uint32_t s[4][256];
- } AVBlowfish;
- AVBlowfish *av_blowfish_alloc(void);
- void av_blowfish_init(struct AVBlowfish *ctx, const uint8_t *key, int key_len);
- void av_blowfish_crypt_ecb(struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr,
- int decrypt);
- void av_blowfish_crypt(struct AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
- int count, uint8_t *iv, int decrypt);
- #endif
|