Skip to content

Commit

Permalink
fix: ctr has no padding
Browse files Browse the repository at this point in the history
  • Loading branch information
koraykoska committed Feb 23, 2024
1 parent a38b370 commit 4c4b2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Keystore/KeystoreETH2Factory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public struct KeystoreETH2Factory {
let aes = try AES(
key: [UInt8](usableKey),
blockMode: CTR(iv: ivData.bytes),
padding: .pkcs7
padding: .noPadding
)

return try aes.decrypt([UInt8](ciphertextData))
Expand Down

0 comments on commit 4c4b2f6

Please sign in to comment.