{"action":"created","issue":{"url":"https://api.github.com/repos/soyersoyer/SwCrypt/issues/13","repository_url":"https://api.github.com/repos/soyersoyer/SwCrypt","labels_url":"https://api.github.com/repos/soyersoyer/SwCrypt/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/soyersoyer/SwCrypt/issues/13/comments","events_url":"https://api.github.com/repos/soyersoyer/SwCrypt/issues/13/events","html_url":"https://github.com/soyersoyer/SwCrypt/issues/13","id":184472677,"number":13,"title":"How to  use method crypt(_:algorithm:data:key:iv:aData:tagLength:) for GCM? Gettingg error  [crypt(_:algorithm:data:key:iv:aData:tagLength:)] AppName.CC.CCError: paramError (-4300)","user":{"login":"yogeshpadekar","id":15905581,"avatar_url":"https://avatars.githubusercontent.com/u/15905581?v=3","gravatar_id":"","url":"https://api.github.com/users/yogeshpadekar","html_url":"https://github.com/yogeshpadekar","followers_url":"https://api.github.com/users/yogeshpadekar/followers","following_url":"https://api.github.com/users/yogeshpadekar/following{/other_user}","gists_url":"https://api.github.com/users/yogeshpadekar/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshpadekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshpadekar/subscriptions","organizations_url":"https://api.github.com/users/yogeshpadekar/orgs","repos_url":"https://api.github.com/users/yogeshpadekar/repos","events_url":"https://api.github.com/users/yogeshpadekar/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshpadekar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-21T12:23:27Z","updated_at":"2016-10-24T08:19:03Z","closed_at":"2016-10-21T15:23:09Z","body":"Hi,\r\nI am using SwCrypt to implement GCM in my app.\r\nBelow is the list of Parameter values I pass:\r\nopMode: .encrypt\r\nalgorithm: .aes\r\ndata: stringToEncrypt.data(using: .utf8)!\r\nkey: keyString.data(using: .utf8)!\r\niv: Random data of length 12 bytes\r\naData: Random data of length 20 bytes (I'm not sure what this parameter is for)\r\ntagLength: 128\r\n\r\nI get the error [crypt(_:algorithm:data:key:iv:aData:tagLength:)] AppName.CC.CCError: paramError (-4300)\r\nI am unable to understand which parameter I am passing with wrong value"},"comment":{"url":"https://api.github.com/repos/soyersoyer/SwCrypt/issues/comments/255676821","html_url":"https://github.com/soyersoyer/SwCrypt/issues/13#issuecomment-255676821","issue_url":"https://api.github.com/repos/soyersoyer/SwCrypt/issues/13","id":255676821,"user":{"login":"yogeshpadekar","id":15905581,"avatar_url":"https://avatars.githubusercontent.com/u/15905581?v=3","gravatar_id":"","url":"https://api.github.com/users/yogeshpadekar","html_url":"https://github.com/yogeshpadekar","followers_url":"https://api.github.com/users/yogeshpadekar/followers","following_url":"https://api.github.com/users/yogeshpadekar/following{/other_user}","gists_url":"https://api.github.com/users/yogeshpadekar/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshpadekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshpadekar/subscriptions","organizations_url":"https://api.github.com/users/yogeshpadekar/orgs","repos_url":"https://api.github.com/users/yogeshpadekar/repos","events_url":"https://api.github.com/users/yogeshpadekar/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshpadekar/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T08:19:03Z","updated_at":"2016-10-24T08:19:03Z","body":"Hi, That worked. I was using a shorter key. Made it 128 bits long and its working."}}
{"actor":{"display_login":"yogeshpadekar"}}