annotate des.h @ 607:819752f80c64 libavutil

export gcd function as av_gcd()
author aurel
date Sat, 17 Jan 2009 11:13:33 +0000
parents bd4052d9050c
children 683a6dbdd2b2
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
567
bd4052d9050c Globally rename the header inclusion guard names.
stefano
parents: 485
diff changeset
22 #ifndef AVUTIL_DES_H
bd4052d9050c Globally rename the header inclusion guard names.
stefano
parents: 485
diff changeset
23 #define AVUTIL_DES_H
393
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
24
458
676e2c142383 This header just needs stdint.h, not inttypes.h, which is a superset of
diego
parents: 405
diff changeset
25 #include <stdint.h>
485
b4ff998c79e3 add missing #include "common.h" to libavutil headers
mru
parents: 481
diff changeset
26 #include "common.h"
405
bc871e7ac0dc Add missing #includes to fix 'make checkheaders'.
diego
parents: 396
diff changeset
27
396
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
28 /**
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
29 * \brief en- or decrypt an 64-bit block of data with DES
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
30 * \param in data to process.
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
31 * \param key key to use for en-/decryption.
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
32 * \param decrypt if 0 encrypt, else decrypt.
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
33 * \return processed data
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
34 *
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
35 * If your input data is in 8-bit blocks treat it as big-endian
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
36 * (use e.g. AV_RB64 and AV_WB64).
ba659469f48f Document ff_des_encdec
reimar
parents: 394
diff changeset
37 */
481
f4187c1c15a6 Reapply r12489: Add pure, const and malloc attributes to proper functions
zuxy
parents: 478
diff changeset
38 uint64_t ff_des_encdec(uint64_t in, uint64_t key, int decrypt) av_const;
393
df047574d017 Add support for DES en- and decryption.
reimar
parents:
diff changeset
39
567
bd4052d9050c Globally rename the header inclusion guard names.
stefano
parents: 485
diff changeset
40 #endif /* AVUTIL_DES_H */