onmyway133 / Arcane

:trident: CommonCrypto in Swift, and more
https://onmyway133.github.io/
Other
283 stars 22 forks source link

Possibly Incorrect Key Size for AES Encryption? #17

Closed james-rant closed 6 years ago

james-rant commented 6 years ago

https://github.com/onmyway133/Arcane/blob/44c3013e0b93ad8d829f0e6a019e2c207cb4ef06/Sources/AES.swift#L48-L59

I'm by no means an expert, and I'm quite likely wrong, but when looking at the code linked above, it would appear to me that a 128-bit key size is incorrect when you specify a 32 Byte (256-bit) key data.

Is there perhaps something I'm not understanding?

onmyway133 commented 6 years ago

@james-rantmedia Let's discuss over PR 😉