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
58ebcdbc
Commit
58ebcdbc
authored
7 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Plain Diff
Merge branch 'security_helper_sss' into 'master'
security helper See merge request
!36
parents
abfaf8ea
c89e65ee
Branches
Branches containing commit
1 merge request
!36
security helper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
securityhelper/securityHelper.go
+6
-0
securityhelper/securityHelper.go
with
6 additions
and
0 deletions
securityhelper/securityHelper.go
+
6
−
0
View file @
58ebcdbc
...
...
@@ -6,8 +6,10 @@ import (
"crypto/cipher"
"crypto/md5"
"encoding/base64"
"errors"
"corelab.mkcl.org/MKCLOS/coredevelopmentplatform/coreospackage/filehelper"
"corelab.mkcl.org/MKCLOS/coredevelopmentplatform/coreospackage/logginghelper"
OneOfOne
"github.com/OneOfOne/xxhash"
)
...
...
@@ -68,6 +70,10 @@ func AESDecrypt(encodedData, key []byte) ([]byte, error) {
cbc
.
CryptBlocks
(
cipherText
,
cipherText
)
length
:=
len
(
cipherText
)
if
length
<
1
{
logginghelper
.
LogError
(
"length of cipherText is less than 1"
)
return
nil
,
errors
.
New
(
"length of cipherText is less than 1"
)
}
unpadding
:=
int
(
cipherText
[
length
-
1
])
...
...
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