Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
dc3ecb1f
Commit
dc3ecb1f
authored
Apr 20, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BigInteger as string realization
parent
266cef8c
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
448 additions
and
0 deletions
+448
-0
DesktopEditor/common/BigInteger.h
DesktopEditor/common/BigInteger.h
+435
-0
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
+13
-0
No files found.
DesktopEditor/common/BigInteger.h
0 → 100644
View file @
dc3ecb1f
This diff is collapsed.
Click to expand it.
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
View file @
dc3ecb1f
...
...
@@ -7,6 +7,7 @@
#include <string>
#include "../../../common/File.h"
#include "../../../common/BigInteger.h"
#pragma comment (lib, "crypt32.lib")
#pragma comment (lib, "cryptui.lib")
...
...
@@ -28,6 +29,18 @@ void ConvertEndian(const BYTE* src, BYTE* dst, DWORD size)
void
main
(
void
)
{
if
(
false
)
{
CBigInteger
int1
(
"345097"
);
CBigInteger
int2
(
"87960324"
);
CBigInteger
val1
=
int1
+
int2
;
CBigInteger
val2
=
int1
-
int2
;
CBigInteger
val3
=
int1
*
int2
;
CBigInteger
int3
(
"66A1F302407647974D18D489855371B5"
,
16
);
std
::
string
sValue
=
int3
.
ToString
();
}
//-------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment