Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
coreospackage
Merge requests
!37
Security Helper
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Security Helper
SecurityHelper_SSS
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Sandeep S. Shewalkar
requested to merge
SecurityHelper_SSS
into
master
7 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
following condition added to avoid exception if (length - unpadding) <0
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7da751d2
1 commit,
7 years ago
1 file
+
4
−
0
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
securityhelper/securityHelper.go
+
4
−
0
Options
@@ -77,6 +77,10 @@ func AESDecrypt(encodedData, key []byte) ([]byte, error) {
unpadding
:=
int
(
cipherText
[
length
-
1
])
if
(
length
-
unpadding
)
<
0
{
return
nil
,
errors
.
New
(
"length of (length - unpadding) is less than 0"
)
}
return
cipherText
[
:
(
length
-
unpadding
)],
nil
}
Menu
Explore
Projects
Groups
Topics
Snippets