Fix crypto encryption ba-concat order
This commit is contained in:
parent
89ed063feb
commit
bea3f5e84e
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@
|
|||
iv-ba (rand-bytes aes128-block-size)
|
||||
iv (javax.crypto.spec.IvParameterSpec. iv-ba)]
|
||||
(.init cipher javax.crypto.Cipher/ENCRYPT_MODE key iv)
|
||||
(.doFinal cipher (utils/ba-concat iv-ba ba))))
|
||||
(utils/ba-concat iv-ba (.doFinal cipher ba))))
|
||||
|
||||
(decrypt [{:keys [cipher-type cache] :as crypto} salt pwd ba]
|
||||
(let [cipher (cipher cipher-type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue