AES-GCM works on Hex encoded string but not on Data #939
sreekanthps
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When Trtying AES-GCM encrpyption, the IV and AES Key need to be hex-encoded string converted to Array and does not work random Data converted to Array.
Is this expected to working this way or am i missing any point , I am using Swift random IV and key Generator
public static func generate(count: Int) throws -> Data {
guard count > 0 else {
throw SecureRandomError.countMustBeGreaterThanZero
}
Reproduce
Steps to reproduce:
1.
Beta Was this translation helpful? Give feedback.
All reactions