• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

polserver / polserver / 21066490217

16 Jan 2026 12:22PM UTC coverage: 60.507%. Remained the same
21066490217

push

github

web-flow
misc clang-tidy (#853)

* trigger tidy

* Automated clang-tidy change: modernize-use-equals-delete,modernize-make-shared,modernize-make-unique,modernize-use-constraints,readability-container-size-empty,modernize-redundant-void-arg,modernize-use-emplace

* removed non needed macros

* missed to disable tidy build

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>

174 of 248 new or added lines in 74 files covered. (70.16%)

2 existing lines in 2 files now uncovered.

44459 of 73477 relevant lines covered (60.51%)

515895.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pol-core/pol/crypt/cryptbase.cpp
1
//////////////////////////////////////////////////////////////////////
2
//
3
// crypt/cryptbase.cpp
4
//
5
// Author:    Beosil <beosil@swileys.com>
6
// Date:      18. Apr. 2000
7
//
8
// Converted: Myrathi <tjh@myrathi.co.uk>
9
// Date:      03. Jan. 2003
10
//
11
// Copyright (C) 1999-2000 Bruno 'Beosil' Heidelberger
12
//
13
// This program is free software; you can redistribute it and/or modify
14
// it under the terms of the GNU General Public License as published by
15
// the Free Software Foundation; either version 2 of the License, or
16
// (at your option) any later version.
17
//
18
// This program is distributed in the hope that it will be useful,
19
// but WITHOUT ANY WARRANTY; without even the implied warranty of
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
// GNU General Public License for more details.
22
//
23
// You should have received a copy of the GNU General Public License
24
// along with this program; if not, write to the Free Software
25
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
//
27
//
28
// History:
29
// - 03. Jan. 2003 : Updated for use alongside POL's multi-encryption code.
30
// - 18. Apr. 2000 : Keys updated for client 2.0.0
31
// - 27. Jan. 2000 : Keys updated for client 1.26.4
32
// - 18. Jan. 2000 : Keys updated for client 1.26.3
33
// - 23. Nov. 1999 : Keys updated for client 1.26.2 and some compatibility fixes
34
// - 21. Sep. 1999 : Full redesign to fix the "21036 bytes"-bug
35
// -  9. Sep. 1999 : Keys updated for client 1.26.1
36
// -  2. Sep. 1999 : Keys and boxes updated for client 1.26.0b and minor bugfixes
37
// - 13. Aug. 1999 : First release, working with client 1.26.0(a)
38
//
39
//////////////////////////////////////////////////////////////////////
40

41
#include <string.h>
42

43
#include "cryptbase.h"
44

45
namespace Pol
46
{
47
namespace Crypt
48
{
49
// The following tables must be implimented by the relevant derived classes:
50
//
51
//   Crypt Boxes
52
//   Crypt Tables
53
//   Key Table
54
//   Seed Table
55
//   Compression Table
56

57
// Constructor / Destructor
UNCOV
58
CCryptBaseCrypt::CCryptBaseCrypt() : CCryptBase(), lcrypt(), m_type( 0 )
×
59
{
60
  memset( &m_masterKey, 0, sizeof( m_masterKey ) );
×
61
  memset( &encrypted_data, 0, sizeof( encrypted_data ) );
×
62
}
×
63

64
void CCryptBaseCrypt::SetMasterKeys( unsigned int masterKey1, unsigned int masterKey2 )
×
65
{
66
  m_masterKey[0] = masterKey1 & 0xFFFFFFFF;
×
67
  m_masterKey[1] = masterKey2 & 0xFFFFFFFF;
×
68
}
×
69
}  // namespace Crypt
70
}  // namespace Pol
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc