annotate des.h @ 405:bc871e7ac0dc libavutil

Add missing #includes to fix 'make checkheaders'.
author diego
date Sat, 24 Nov 2007 10:08:02 +0000
parents ba659469f48f
children 676e2c142383
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
393
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
1 /*
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
2 * DES encryption/decryption
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
3 * Copyright (c) 2007 Reimar Doeffinger
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
4 *
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
5 * This file is part of FFmpeg.
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
6 *
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
11 *
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
15 * Lesser General Public License for more details.
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
16 *
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
20 */
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
21
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
22 #ifndef FFMPEG_DES_H
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
23 #define FFMPEG_DES_H
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
24
405
bc871e7ac0dc Add missing #includes to fix 'make checkheaders'.
diego
parents: 396
diff changeset
25 #include <inttypes.h>
bc871e7ac0dc Add missing #includes to fix 'make checkheaders'.
diego
parents: 396
diff changeset
26
396
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
27 /**
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
28 * \brief en- or decrypt an 64-bit block of data with DES
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
29 * \param in data to process.
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
30 * \param key key to use for en-/decryption.
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
31 * \param decrypt if 0 encrypt, else decrypt.
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
32 * \return processed data
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
33 *
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
34 * If your input data is in 8-bit blocks treat it as big-endian
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
35 * (use e.g. AV_RB64 and AV_WB64).
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
36 */
393
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
37 uint64_t ff_des_encdec(uint64_t in, uint64_t key, int decrypt);
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
38
394
4ef479012a26 cosmetics: Add #endif comment.
diego
parents: 393
diff changeset
39 #endif /* FFMPEG_DES_H */