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
Commits
12bcffb3
Commit
12bcffb3
authored
7 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Plain Diff
Merge branch 'SecurityHelper_SSS' into 'master'
Security Helper See merge request
!37
parents
58ebcdbc
7da751d2
Branches
Branches containing commit
1 merge request
!37
Security Helper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
securityhelper/securityHelper.go
+4
-0
securityhelper/securityHelper.go
with
4 additions
and
0 deletions
securityhelper/securityHelper.go
+
4
−
0
View file @
12bcffb3
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets