~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to ffmpeg/libavutil/des.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:23:28 UTC
  • mfrom: (0.4.7 sid)
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: package-import@ubuntu.com-20120112222328-8jqdyodym3p84ygu
Tags: 2:1.0~rc4.dfsg1+svn34540-1
* New upstream snapshot
* upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
};
31
31
 
32
32
/**
33
 
 * \brief Initializes an AVDES context.
 
33
 * @brief Initializes an AVDES context.
34
34
 *
35
 
 * \param key_bits must be 64 or 192
36
 
 * \param decrypt 0 for encryption, 1 for decryption
 
35
 * @param key_bits must be 64 or 192
 
36
 * @param decrypt 0 for encryption/CBC-MAC, 1 for decryption
37
37
 */
38
38
int av_des_init(struct AVDES *d, const uint8_t *key, int key_bits, int decrypt);
39
39
 
40
40
/**
41
 
 * \brief Encrypts / decrypts using the DES algorithm.
 
41
 * @brief Encrypts / decrypts using the DES algorithm.
42
42
 *
43
 
 * \param count number of 8 byte blocks
44
 
 * \param dst destination array, can be equal to src, must be 8-byte aligned
45
 
 * \param src source array, can be equal to dst, must be 8-byte aligned, may be NULL
46
 
 * \param iv initialization vector for CBC mode, if NULL then ECB will be used,
 
43
 * @param count number of 8 byte blocks
 
44
 * @param dst destination array, can be equal to src, must be 8-byte aligned
 
45
 * @param src source array, can be equal to dst, must be 8-byte aligned, may be NULL
 
46
 * @param iv initialization vector for CBC mode, if NULL then ECB will be used,
47
47
 *           must be 8-byte aligned
48
 
 * \param decrypt 0 for encryption, 1 for decryption
 
48
 * @param decrypt 0 for encryption, 1 for decryption
49
49
 */
50
50
void av_des_crypt(struct AVDES *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
51
51
 
 
52
/**
 
53
 * @brief Calculates CBC-MAC using the DES algorithm.
 
54
 *
 
55
 * @param count number of 8 byte blocks
 
56
 * @param dst destination array, can be equal to src, must be 8-byte aligned
 
57
 * @param src source array, can be equal to dst, must be 8-byte aligned, may be NULL
 
58
 */
 
59
void av_des_mac(struct AVDES *d, uint8_t *dst, const uint8_t *src, int count);
 
60
 
52
61
#endif /* AVUTIL_DES_H */