summaryrefslogtreecommitdiff
path: root/src/ZrtpTextData.cpp
blob: 58610991311ed5ee30691bfb6caacb1f3ec49cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
  Copyright (C) 2006-2008 Werner Dittmann

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * Authors: Werner Dittmann <Werner.Dittmann@t-online.de>
 */
#include <stdint.h>
#include <libzrtpcpp/ZrtpConfigure.h>
//                             1
//                    1234567890123456
char clientId[] =    "GNU ZRTP 2.1.0  "; // 16 chars max.
char zrtpVersion[] = "1.10";             // must be 4 chars
/**
 *
 */
char HelloMsg[]    = "Hello   ";
char HelloAckMsg[] = "HelloACK";
char CommitMsg[]   = "Commit  ";
char DHPart1Msg[]  = "DHPart1 ";
char DHPart2Msg[]  = "DHPart2 ";
char Confirm1Msg[] = "Confirm1";
char Confirm2Msg[] = "Confirm2";
char Conf2AckMsg[] = "Conf2ACK";
char ErrorMsg[]    = "Error   ";
char ErrorAckMsg[] = "ErrorACK";
char GoClearMsg[]  = "GoClear ";
char ClearAckMsg[] = "ClearACK";
char PingMsg[]     = "Ping    ";
char PingAckMsg[]  = "PingACK ";
char SasRelayMsg[] = "SASrelay";
char RelayAckMsg[] = "RelayACK";

char responder[]      = "Responder";
char initiator[]      = "Initiator";
char iniMasterKey[]   = "Initiator SRTP master key";
char iniMasterSalt[]  = "Initiator SRTP master salt";
char respMasterKey[]  = "Responder SRTP master key";
char respMasterSalt[] = "Responder SRTP master salt";

char iniHmacKey[]  = "Initiator HMAC key";
char respHmacKey[] = "Responder HMAC key";
char retainedSec[] = "retained secret";

char iniZrtpKey[]  = "Initiator ZRTP key";
char respZrtpKey[] = "Responder ZRTP key";

char sasString[] = "SAS";

char KDFString[] = "ZRTP-HMAC-KDF";

char zrtpSessionKey[] = "ZRTP Session Key";

char zrtpMsk[] = "ZRTP MSK";
char zrtpTrustedMitm[] = "Trusted MiTM key";

char s256[] = "S256";
char s384[] = "S384";
const char* mandatoryHash = s256;

char aes3[] = "AES3";
char aes2[] = "AES2";
char aes1[] = "AES1";
char two3[] = "2FS3";
char two2[] = "2FS2";
char two1[] = "2FS1";
const char* mandatoryCipher = aes1;

char dh2k[] = "DH2k";
char ec25[] = "EC25";
char dh3k[] = "DH3k";
char ec38[] = "EC38";
char mult[] = "Mult";
const char* mandatoryPubKey = dh3k;

char b32[] = "B32 ";
const char* mandatorySasType = b32;

char hs32[] = "HS32";
char hs80[] = "HS80";
char sk32[] = "SK32";
char sk64[] = "SK64";
const char* mandatoryAuthLen_1 = hs32;
const char* mandatoryAuthLen_2 = hs80;