Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cryptography-cs742
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SHAILESH KUMAR
cryptography-cs742
Commits
9e74a3d6
Commit
9e74a3d6
authored
Nov 07, 2019
by
Bhavesh Yadav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added week7
parent
efc9d496
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
2 deletions
+17
-2
week6/programmingExercises/making faster/test_encrypt/hybrid_test_encrypt.c
...xercises/making faster/test_encrypt/hybrid_test_encrypt.c
+2
-2
week7-hash-mac-digsig/commands.txt
week7-hash-mac-digsig/commands.txt
+3
-0
week7-hash-mac-digsig/compare.sh
week7-hash-mac-digsig/compare.sh
+7
-0
week7-hash-mac-digsig/dgst1.txt
week7-hash-mac-digsig/dgst1.txt
+2
-0
week7-hash-mac-digsig/dgst2.txt
week7-hash-mac-digsig/dgst2.txt
+2
-0
week7-hash-mac-digsig/message.txt
week7-hash-mac-digsig/message.txt
+1
-0
No files found.
week6/programmingExercises/making faster/test_encrypt/hybrid_test_encrypt.c
View file @
9e74a3d6
...
...
@@ -168,8 +168,8 @@ void hybrid_encrypt(char * symmetric_key_file, char* message_file, char* public_
FILE
*
C1
=
fopen
(
"C1"
,
"w"
);
FILE
*
C2
=
fopen
(
"C2"
,
"w"
);
FILE
*
IV
=
fopen
(
"IV"
,
"w"
);
fprintf
(
C1
,
"%s"
,
enc
_out
);
fprintf
(
C2
,
"%s"
,
enc
Key
);
fprintf
(
C1
,
"%s"
,
enc
Key
);
fprintf
(
C2
,
"%s"
,
enc
_out
);
fprintf
(
IV
,
"%s"
,
iv
);
fclose
(
C1
);
fclose
(
C2
);
...
...
week7-hash-mac-digsig/commands.txt
0 → 100644
View file @
9e74a3d6
openssl dgst <dgstType> <filename>
dgstType : -md5 -sha1 -sha256
\ No newline at end of file
week7-hash-mac-digsig/compare.sh
0 → 100755
View file @
9e74a3d6
openssl dgst
-binary
-
$1
$2
| xxd
-p
>
dgst1.txt
openssl dgst
-binary
-
$1
$3
| xxd
-p
>
dgst2.txt
diference
=
cmp dgst1.txt dgst2.txt
-l
|
wc
-l
week7-hash-mac-digsig/dgst1.txt
0 → 100644
View file @
9e74a3d6
b1d98ede2dfed945f6e54a38bb05b84fc7ac8243e6358486a5ff52638786
a93b
week7-hash-mac-digsig/dgst2.txt
0 → 100644
View file @
9e74a3d6
b1d98ede2dfed945f6e54a38bb05b84fc7ac8243e6358486a5ff52638786
a93b
week7-hash-mac-digsig/message.txt
0 → 100644
View file @
9e74a3d6
dl;fksdlkfjsdlfkjsdlkfjlskdfjsdlfkjsdlkfjsdlf
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