{"action":"closed","issue":{"url":"https://api.github.com/repos/islog/liblogicalaccess/issues/97","repository_url":"https://api.github.com/repos/islog/liblogicalaccess","labels_url":"https://api.github.com/repos/islog/liblogicalaccess/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/islog/liblogicalaccess/issues/97/comments","events_url":"https://api.github.com/repos/islog/liblogicalaccess/issues/97/events","html_url":"https://github.com/islog/liblogicalaccess/issues/97","id":113056660,"number":97,"title":"Desfire Ev1 create file followed by delete file causes \"Wrong CMAC\"","user":{"login":"xaqq","id":915351,"avatar_url":"https://avatars.githubusercontent.com/u/915351?v=3","gravatar_id":"","url":"https://api.github.com/users/xaqq","html_url":"https://github.com/xaqq","followers_url":"https://api.github.com/users/xaqq/followers","following_url":"https://api.github.com/users/xaqq/following{/other_user}","gists_url":"https://api.github.com/users/xaqq/gists{/gist_id}","starred_url":"https://api.github.com/users/xaqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaqq/subscriptions","organizations_url":"https://api.github.com/users/xaqq/orgs","repos_url":"https://api.github.com/users/xaqq/repos","events_url":"https://api.github.com/users/xaqq/events{/privacy}","received_events_url":"https://api.github.com/users/xaqq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/islog/liblogicalaccess/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-23T16:41:25Z","updated_at":"2016-06-11T15:19:44Z","closed_at":"2016-06-11T15:19:44Z","body":"Calling `cmdev1->createStdDataFile(0x04, logicalaccess::EncryptionMode::CM_ENCRYPT, ar, file_size, 0)` followed by `cmdev1->deleteFile(0x04)` causes Logicalaccess to throw \"Wrong CMAC\".\r\n\r\nHowever, both operation complete successfully despite the exception being thrown.\r\n\r\nA workaround is to call  `authenticate(0, key)` between those 2 calls."}}
{"actor":{"display_login":"Maxhy"}}