{"action":"created","comment":{"url":"https://api.github.com/repos/OP-TEE/optee_os/pulls/comments/34773982","id":34773982,"diff_hunk":"@@ -0,0 +1,430 @@\n+/*\n+ * Copyright (c) 2015, Linaro Limited\n+ * All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ *\n+ * 1. Redistributions of source code must retain the above copyright notice,\n+ * this list of conditions and the following disclaimer.\n+ *\n+ * 2. Redistributions in binary form must reproduce the above copyright notice,\n+ * this list of conditions and the following disclaimer in the documentation\n+ * and/or other materials provided with the distribution.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+\n+/* Acronyms:\n+ *\n+ * FEK - File Encryption Key\n+ * SST - Secure Storage\n+ * SSK - Secure Storage Key\n+ * IV  - Initial vector\n+ * HUK - Hardware Unique Key\n+ * RNG - Random Number Generator\n+ *\n+ * */\n+\n+#include <initcall.h>\n+#include <stdlib.h>\n+#include <string.h>\n+#include <kernel/tee_common_otp.h>\n+#include <kernel/tee_common_unpg.h>\n+#include <tee/tee_cryp_utl.h>\n+#include <tee/tee_cryp_provider.h>\n+#include <tee/tee_fs_key_manager.h>\n+#include <compiler.h>\n+#include <trace.h>\n+\n+struct tee_enc_fs_ssk {\n+\tint is_init;\n+\tuint8_t key[TEE_FS_KM_SSK_SIZE];\n+};\n+\n+struct aad {\n+\tconst uint8_t *encrypted_key;\n+\tconst uint8_t *iv;\n+};\n+\n+struct km_header {\n+\tstruct aad aad;\n+\tuint8_t *tag;\n+};\n+\n+\n+struct common_header {\n+\tuint8_t iv[TEE_FS_KM_IV_LEN];\n+\tuint8_t tag[TEE_FS_KM_MAX_TAG_LEN];\n+};\n+\n+struct meta_header {\n+\tuint8_t encrypted_key[TEE_FS_KM_FEK_SIZE];\n+\tstruct common_header common;\n+};\n+\n+struct block_header {\n+\tstruct common_header common;\n+};\n+\n+static struct tee_enc_fs_ssk enc_fs_ssk = { 0, { 0 } };\n+static uint8_t string_for_ssk_gen[] = \"ONLY_FOR_ENC_FS_SSK\";\n+\n+\n+static TEE_Result fek_crypt(TEE_OperationMode mode,\n+\t\tuint8_t *key, int size)\n+{\n+\tTEE_Result res;\n+\tuint8_t *ctx = NULL;\n+\tsize_t ctx_size;\n+\tuint8_t dst_key[TEE_FS_KM_FEK_SIZE];\n+\n+\tif (!key)\n+\t\treturn TEE_ERROR_BAD_PARAMETERS;\n+\n+\tif (size != TEE_FS_KM_FEK_SIZE)\n+\t\treturn TEE_ERROR_BAD_PARAMETERS;\n+\n+\tif (enc_fs_ssk.is_init == 0)\n+\t\treturn TEE_ERROR_GENERIC;\n+\n+\tres = crypto_ops.cipher.get_ctx_size(TEE_FS_KM_ENC_FFK_ALG, &ctx_size);\n+\tif (res != TEE_SUCCESS)\n+\t\treturn res;\n+\n+\tctx = malloc(ctx_size);\n+\tif (!ctx)\n+\t\treturn TEE_ERROR_OUT_OF_MEMORY;\n+\n+\tres = crypto_ops.cipher.init(ctx, TEE_FS_KM_ENC_FFK_ALG,\n+\t\t\tmode, enc_fs_ssk.key, TEE_FS_KM_SSK_SIZE,\n+\t\t\tNULL, 0, NULL, 0);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tres = crypto_ops.cipher.update(ctx, TEE_FS_KM_ENC_FFK_ALG,\n+\t\t\tmode, true, key, size, dst_key);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tcrypto_ops.cipher.final(ctx, TEE_FS_KM_ENC_FFK_ALG);\n+\n+\tmemcpy(key, dst_key, sizeof(dst_key));\n+\n+exit:\n+\tfree(ctx);\n+\n+\treturn res;\n+}\n+\n+static TEE_Result generate_fek(uint8_t *key, uint8_t len)\n+{\n+\treturn crypto_ops.prng.read(key, len);\n+}\n+\n+static TEE_Result generate_iv(uint8_t *iv, uint8_t len)\n+{\n+\treturn crypto_ops.prng.read(iv, len);\n+}\n+\n+static TEE_Result generate_ssk(uint8_t *ssk, uint32_t ssk_size,\n+\t\t\tuint8_t *huk, uint32_t huk_size,\n+\t\t\tuint8_t *message, uint32_t message_size)\n+{\n+\tTEE_Result res = TEE_ERROR_GENERIC;\n+\tuint8_t *ctx = NULL;\n+\tsize_t hash_ctx_size = 0;\n+\n+\tif (!ssk || !huk || !message)\n+\t\treturn TEE_ERROR_BAD_PARAMETERS;\n+\n+\tres = crypto_ops.mac.get_ctx_size(TEE_FS_KM_HMAC_ALG, &hash_ctx_size);\n+\tif (res != TEE_SUCCESS)\n+\t\treturn res;\n+\n+\tctx = malloc(hash_ctx_size);\n+\tif (!ctx)\n+\t\treturn TEE_ERROR_OUT_OF_MEMORY;\n+\n+\tres = crypto_ops.mac.init(ctx, TEE_FS_KM_HMAC_ALG, huk, huk_size);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tres = crypto_ops.mac.update(ctx, TEE_FS_KM_HMAC_ALG,\n+\t\t\tmessage, message_size);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tres = crypto_ops.hash.final(ctx, TEE_FS_KM_HMAC_ALG, ssk, ssk_size);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tres = TEE_SUCCESS;\n+\n+exit:\n+\tfree(ctx);\n+\treturn res;\n+}\n+\n+static TEE_Result tee_fs_init_key_manager(void)\n+{\n+\tint res = TEE_SUCCESS;\n+\n+\tif (enc_fs_ssk.is_init == 0) {\n+\t\tstruct tee_hw_unique_key huk;\n+\t\tuint8_t chip_id[TEE_FS_KM_CHIP_ID_LENGTH];\n+\t\tuint8_t *message;\n+\n+\t\t/* Secure Storage Key Generation:\n+\t\t *\n+\t\t *     SSK = HMAC(HUK, message)\n+\t\t *     message := concatenate(chip_id, static string)\n+\t\t * */\n+\n+\t\tmessage = malloc(sizeof(chip_id) + sizeof(string_for_ssk_gen));\n+\t\tif (!message) {\n+\t\t\tres = TEE_ERROR_OUT_OF_MEMORY;\n+\t\t\tgoto exit;\n+\t\t}\n+\n+\t\ttee_otp_get_hw_unique_key(&huk);\n+\t\ttee_otp_get_die_id(chip_id, sizeof(chip_id));\n+\n+\t\tmemcpy(message, chip_id, sizeof(chip_id));\n+\t\tmemcpy(message + sizeof(chip_id), string_for_ssk_gen,\n+\t\t\t\tsizeof(string_for_ssk_gen));\n+\n+\t\tres = generate_ssk(enc_fs_ssk.key, sizeof(enc_fs_ssk.key),\n+\t\t\t\thuk.data, sizeof(huk.data),\n+\t\t\t\tmessage, sizeof(message));\n+\n+\t\tfree(message);\n+\n+\t\tif (res == TEE_SUCCESS)\n+\t\t\tenc_fs_ssk.is_init = 1;\n+\t}\n+\n+exit:\n+\treturn res;\n+}\n+\n+static TEE_Result do_auth_enc(TEE_OperationMode mode,\n+\t\tstruct km_header *hdr,\n+\t\tuint8_t *fek, int fek_len,\n+\t\tconst uint8_t *data_in, size_t in_size,\n+\t\tuint8_t *data_out, size_t *out_size)\n+{\n+\tTEE_Result res = TEE_SUCCESS;\n+\tuint8_t *ctx = NULL;\n+\tsize_t ctx_size;\n+\tsize_t tag_len = TEE_FS_KM_MAX_TAG_LEN;\n+\n+\tif ((mode != TEE_MODE_ENCRYPT) && (mode != TEE_MODE_DECRYPT))\n+\t\treturn TEE_ERROR_BAD_PARAMETERS;\n+\n+\tif (in_size != *out_size)\n+\t\treturn TEE_ERROR_SHORT_BUFFER;\n+\n+\tres = crypto_ops.authenc.get_ctx_size(TEE_FS_KM_AUTH_ENC_ALG,\n+\t\t\t&ctx_size);\n+\tif (res != TEE_SUCCESS)\n+\t\treturn res;\n+\n+\tctx = malloc(ctx_size);\n+\tif (!ctx) {\n+\t\tEMSG(\"request memory size %zu failed\", ctx_size);\n+\t\treturn TEE_ERROR_OUT_OF_MEMORY;\n+\t}\n+\n+\tres = crypto_ops.authenc.init(ctx, TEE_FS_KM_AUTH_ENC_ALG,\n+\t\t\tmode, fek, fek_len, hdr->aad.iv,\n+\t\t\tTEE_FS_KM_IV_LEN, TEE_FS_KM_MAX_TAG_LEN,\n+\t\t\tsizeof(struct aad), in_size);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tres = crypto_ops.authenc.update_aad(ctx, TEE_FS_KM_AUTH_ENC_ALG,\n+\t\t\tmode, (uint8_t *)hdr->aad.encrypted_key,\n+\t\t\tTEE_FS_KM_FEK_SIZE);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tres = crypto_ops.authenc.update_aad(ctx, TEE_FS_KM_AUTH_ENC_ALG,\n+\t\t\tmode, (uint8_t *)hdr->aad.iv,\n+\t\t\tTEE_FS_KM_IV_LEN);\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tif (mode == TEE_MODE_ENCRYPT) {\n+\t\tres = crypto_ops.authenc.enc_final(ctx, TEE_FS_KM_AUTH_ENC_ALG,\n+\t\t\t\tdata_in, in_size, data_out, out_size,\n+\t\t\t\thdr->tag, &tag_len);\n+\t} else {\n+\t\tres = crypto_ops.authenc.dec_final(ctx, TEE_FS_KM_AUTH_ENC_ALG,\n+\t\t\t\tdata_in, in_size, data_out, out_size,\n+\t\t\t\thdr->tag, tag_len);\n+\t}\n+\n+\tif (res != TEE_SUCCESS)\n+\t\tgoto exit;\n+\n+\tcrypto_ops.authenc.final(ctx, TEE_FS_KM_AUTH_ENC_ALG);\n+\n+exit:\n+\tfree(ctx);\n+\treturn res;\n+}\n+\n+size_t tee_fs_get_header_size(enum tee_fs_file_type type)\n+{\n+\tsize_t header_size = 0;\n+\n+\tswitch (type) {\n+\tcase META_FILE:\n+\t\theader_size = sizeof(struct meta_header);\n+\t\tbreak;\n+\tcase BLOCK_FILE:\n+\t\theader_size = sizeof(struct block_header);\n+\t\tbreak;\n+\tdefault:\n+\t\tEMSG(\"Unknown file type, type=%d\", type);\n+\t\tTEE_ASSERT(0);\n+\t}\n+\n+\treturn header_size;\n+}\n+\n+TEE_Result tee_fs_generate_fek(uint8_t *encrypted_fek, int fek_size)\n+{\n+\tTEE_Result res;\n+\n+\tif (fek_size != TEE_FS_KM_FEK_SIZE)","path":"core/tee/tee_fs_key_manager.c","position":312,"original_position":312,"commit_id":"208c0ec6dd485f44f6555f92996a81b5689e8e43","original_commit_id":"208c0ec6dd485f44f6555f92996a81b5689e8e43","user":{"login":"jenswi-linaro","id":6150306,"avatar_url":"https://avatars.githubusercontent.com/u/6150306?v=3","gravatar_id":"","url":"https://api.github.com/users/jenswi-linaro","html_url":"https://github.com/jenswi-linaro","followers_url":"https://api.github.com/users/jenswi-linaro/followers","following_url":"https://api.github.com/users/jenswi-linaro/following{/other_user}","gists_url":"https://api.github.com/users/jenswi-linaro/gists{/gist_id}","starred_url":"https://api.github.com/users/jenswi-linaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenswi-linaro/subscriptions","organizations_url":"https://api.github.com/users/jenswi-linaro/orgs","repos_url":"https://api.github.com/users/jenswi-linaro/repos","events_url":"https://api.github.com/users/jenswi-linaro/events{/privacy}","received_events_url":"https://api.github.com/users/jenswi-linaro/received_events","type":"User","site_admin":false},"body":"OK, with me.","created_at":"2015-07-16T10:22:03Z","updated_at":"2015-07-16T10:22:03Z","html_url":"https://github.com/OP-TEE/optee_os/pull/353#discussion_r34773982","pull_request_url":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353","_links":{"self":{"href":"https://api.github.com/repos/OP-TEE/optee_os/pulls/comments/34773982"},"html":{"href":"https://github.com/OP-TEE/optee_os/pull/353#discussion_r34773982"},"pull_request":{"href":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353"}}},"pull_request":{"url":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353","id":38325310,"html_url":"https://github.com/OP-TEE/optee_os/pull/353","diff_url":"https://github.com/OP-TEE/optee_os/pull/353.diff","patch_url":"https://github.com/OP-TEE/optee_os/pull/353.patch","issue_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/353","number":353,"state":"open","locked":false,"title":"Block-based Encrypted FS","user":{"login":"m943040028","id":470954,"avatar_url":"https://avatars.githubusercontent.com/u/470954?v=3","gravatar_id":"","url":"https://api.github.com/users/m943040028","html_url":"https://github.com/m943040028","followers_url":"https://api.github.com/users/m943040028/followers","following_url":"https://api.github.com/users/m943040028/following{/other_user}","gists_url":"https://api.github.com/users/m943040028/gists{/gist_id}","starred_url":"https://api.github.com/users/m943040028/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m943040028/subscriptions","organizations_url":"https://api.github.com/users/m943040028/orgs","repos_url":"https://api.github.com/users/m943040028/repos","events_url":"https://api.github.com/users/m943040028/events{/privacy}","received_events_url":"https://api.github.com/users/m943040028/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T11:14:52Z","updated_at":"2015-07-16T10:22:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba2d25c1dc73ca85570015fb53beab28479553d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353/commits","review_comments_url":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353/comments","review_comment_url":"https://api.github.com/repos/OP-TEE/optee_os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/353/comments","statuses_url":"https://api.github.com/repos/OP-TEE/optee_os/statuses/208c0ec6dd485f44f6555f92996a81b5689e8e43","head":{"label":"m943040028:encfs-ng","ref":"encfs-ng","sha":"208c0ec6dd485f44f6555f92996a81b5689e8e43","user":{"login":"m943040028","id":470954,"avatar_url":"https://avatars.githubusercontent.com/u/470954?v=3","gravatar_id":"","url":"https://api.github.com/users/m943040028","html_url":"https://github.com/m943040028","followers_url":"https://api.github.com/users/m943040028/followers","following_url":"https://api.github.com/users/m943040028/following{/other_user}","gists_url":"https://api.github.com/users/m943040028/gists{/gist_id}","starred_url":"https://api.github.com/users/m943040028/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m943040028/subscriptions","organizations_url":"https://api.github.com/users/m943040028/orgs","repos_url":"https://api.github.com/users/m943040028/repos","events_url":"https://api.github.com/users/m943040028/events{/privacy}","received_events_url":"https://api.github.com/users/m943040028/received_events","type":"User","site_admin":false},"repo":{"id":26155668,"name":"optee_os","full_name":"m943040028/optee_os","owner":{"login":"m943040028","id":470954,"avatar_url":"https://avatars.githubusercontent.com/u/470954?v=3","gravatar_id":"","url":"https://api.github.com/users/m943040028","html_url":"https://github.com/m943040028","followers_url":"https://api.github.com/users/m943040028/followers","following_url":"https://api.github.com/users/m943040028/following{/other_user}","gists_url":"https://api.github.com/users/m943040028/gists{/gist_id}","starred_url":"https://api.github.com/users/m943040028/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m943040028/subscriptions","organizations_url":"https://api.github.com/users/m943040028/orgs","repos_url":"https://api.github.com/users/m943040028/repos","events_url":"https://api.github.com/users/m943040028/events{/privacy}","received_events_url":"https://api.github.com/users/m943040028/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/m943040028/optee_os","description":"Trusted side of the TEE","fork":true,"url":"https://api.github.com/repos/m943040028/optee_os","forks_url":"https://api.github.com/repos/m943040028/optee_os/forks","keys_url":"https://api.github.com/repos/m943040028/optee_os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m943040028/optee_os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m943040028/optee_os/teams","hooks_url":"https://api.github.com/repos/m943040028/optee_os/hooks","issue_events_url":"https://api.github.com/repos/m943040028/optee_os/issues/events{/number}","events_url":"https://api.github.com/repos/m943040028/optee_os/events","assignees_url":"https://api.github.com/repos/m943040028/optee_os/assignees{/user}","branches_url":"https://api.github.com/repos/m943040028/optee_os/branches{/branch}","tags_url":"https://api.github.com/repos/m943040028/optee_os/tags","blobs_url":"https://api.github.com/repos/m943040028/optee_os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m943040028/optee_os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m943040028/optee_os/git/refs{/sha}","trees_url":"https://api.github.com/repos/m943040028/optee_os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m943040028/optee_os/statuses/{sha}","languages_url":"https://api.github.com/repos/m943040028/optee_os/languages","stargazers_url":"https://api.github.com/repos/m943040028/optee_os/stargazers","contributors_url":"https://api.github.com/repos/m943040028/optee_os/contributors","subscribers_url":"https://api.github.com/repos/m943040028/optee_os/subscribers","subscription_url":"https://api.github.com/repos/m943040028/optee_os/subscription","commits_url":"https://api.github.com/repos/m943040028/optee_os/commits{/sha}","git_commits_url":"https://api.github.com/repos/m943040028/optee_os/git/commits{/sha}","comments_url":"https://api.github.com/repos/m943040028/optee_os/comments{/number}","issue_comment_url":"https://api.github.com/repos/m943040028/optee_os/issues/comments{/number}","contents_url":"https://api.github.com/repos/m943040028/optee_os/contents/{+path}","compare_url":"https://api.github.com/repos/m943040028/optee_os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m943040028/optee_os/merges","archive_url":"https://api.github.com/repos/m943040028/optee_os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m943040028/optee_os/downloads","issues_url":"https://api.github.com/repos/m943040028/optee_os/issues{/number}","pulls_url":"https://api.github.com/repos/m943040028/optee_os/pulls{/number}","milestones_url":"https://api.github.com/repos/m943040028/optee_os/milestones{/number}","notifications_url":"https://api.github.com/repos/m943040028/optee_os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m943040028/optee_os/labels{/name}","releases_url":"https://api.github.com/repos/m943040028/optee_os/releases{/id}","created_at":"2014-11-04T06:16:51Z","updated_at":"2014-12-12T08:18:25Z","pushed_at":"2015-07-14T09:05:43Z","git_url":"git://github.com/m943040028/optee_os.git","ssh_url":"git@github.com:m943040028/optee_os.git","clone_url":"https://github.com/m943040028/optee_os.git","svn_url":"https://github.com/m943040028/optee_os","homepage":null,"size":3045,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OP-TEE:master","ref":"master","sha":"bf4948949865e6bb34adf5ed4bbf6008fb80423b","user":{"login":"OP-TEE","id":7488961,"avatar_url":"https://avatars.githubusercontent.com/u/7488961?v=3","gravatar_id":"","url":"https://api.github.com/users/OP-TEE","html_url":"https://github.com/OP-TEE","followers_url":"https://api.github.com/users/OP-TEE/followers","following_url":"https://api.github.com/users/OP-TEE/following{/other_user}","gists_url":"https://api.github.com/users/OP-TEE/gists{/gist_id}","starred_url":"https://api.github.com/users/OP-TEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OP-TEE/subscriptions","organizations_url":"https://api.github.com/users/OP-TEE/orgs","repos_url":"https://api.github.com/users/OP-TEE/repos","events_url":"https://api.github.com/users/OP-TEE/events{/privacy}","received_events_url":"https://api.github.com/users/OP-TEE/received_events","type":"Organization","site_admin":false},"repo":{"id":20193261,"name":"optee_os","full_name":"OP-TEE/optee_os","owner":{"login":"OP-TEE","id":7488961,"avatar_url":"https://avatars.githubusercontent.com/u/7488961?v=3","gravatar_id":"","url":"https://api.github.com/users/OP-TEE","html_url":"https://github.com/OP-TEE","followers_url":"https://api.github.com/users/OP-TEE/followers","following_url":"https://api.github.com/users/OP-TEE/following{/other_user}","gists_url":"https://api.github.com/users/OP-TEE/gists{/gist_id}","starred_url":"https://api.github.com/users/OP-TEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OP-TEE/subscriptions","organizations_url":"https://api.github.com/users/OP-TEE/orgs","repos_url":"https://api.github.com/users/OP-TEE/repos","events_url":"https://api.github.com/users/OP-TEE/events{/privacy}","received_events_url":"https://api.github.com/users/OP-TEE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OP-TEE/optee_os","description":"Trusted side of the TEE","fork":false,"url":"https://api.github.com/repos/OP-TEE/optee_os","forks_url":"https://api.github.com/repos/OP-TEE/optee_os/forks","keys_url":"https://api.github.com/repos/OP-TEE/optee_os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OP-TEE/optee_os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OP-TEE/optee_os/teams","hooks_url":"https://api.github.com/repos/OP-TEE/optee_os/hooks","issue_events_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/events{/number}","events_url":"https://api.github.com/repos/OP-TEE/optee_os/events","assignees_url":"https://api.github.com/repos/OP-TEE/optee_os/assignees{/user}","branches_url":"https://api.github.com/repos/OP-TEE/optee_os/branches{/branch}","tags_url":"https://api.github.com/repos/OP-TEE/optee_os/tags","blobs_url":"https://api.github.com/repos/OP-TEE/optee_os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OP-TEE/optee_os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OP-TEE/optee_os/git/refs{/sha}","trees_url":"https://api.github.com/repos/OP-TEE/optee_os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OP-TEE/optee_os/statuses/{sha}","languages_url":"https://api.github.com/repos/OP-TEE/optee_os/languages","stargazers_url":"https://api.github.com/repos/OP-TEE/optee_os/stargazers","contributors_url":"https://api.github.com/repos/OP-TEE/optee_os/contributors","subscribers_url":"https://api.github.com/repos/OP-TEE/optee_os/subscribers","subscription_url":"https://api.github.com/repos/OP-TEE/optee_os/subscription","commits_url":"https://api.github.com/repos/OP-TEE/optee_os/commits{/sha}","git_commits_url":"https://api.github.com/repos/OP-TEE/optee_os/git/commits{/sha}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/comments{/number}","issue_comment_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/comments{/number}","contents_url":"https://api.github.com/repos/OP-TEE/optee_os/contents/{+path}","compare_url":"https://api.github.com/repos/OP-TEE/optee_os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OP-TEE/optee_os/merges","archive_url":"https://api.github.com/repos/OP-TEE/optee_os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OP-TEE/optee_os/downloads","issues_url":"https://api.github.com/repos/OP-TEE/optee_os/issues{/number}","pulls_url":"https://api.github.com/repos/OP-TEE/optee_os/pulls{/number}","milestones_url":"https://api.github.com/repos/OP-TEE/optee_os/milestones{/number}","notifications_url":"https://api.github.com/repos/OP-TEE/optee_os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OP-TEE/optee_os/labels{/name}","releases_url":"https://api.github.com/repos/OP-TEE/optee_os/releases{/id}","created_at":"2014-05-26T17:18:57Z","updated_at":"2015-07-06T09:17:05Z","pushed_at":"2015-07-16T10:17:02Z","git_url":"git://github.com/OP-TEE/optee_os.git","ssh_url":"git@github.com:OP-TEE/optee_os.git","clone_url":"https://github.com/OP-TEE/optee_os.git","svn_url":"https://github.com/OP-TEE/optee_os","homepage":null,"size":9783,"stargazers_count":54,"watchers_count":54,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":21,"forks":52,"open_issues":21,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353"},"html":{"href":"https://github.com/OP-TEE/optee_os/pull/353"},"issue":{"href":"https://api.github.com/repos/OP-TEE/optee_os/issues/353"},"comments":{"href":"https://api.github.com/repos/OP-TEE/optee_os/issues/353/comments"},"review_comments":{"href":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353/comments"},"review_comment":{"href":"https://api.github.com/repos/OP-TEE/optee_os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OP-TEE/optee_os/pulls/353/commits"},"statuses":{"href":"https://api.github.com/repos/OP-TEE/optee_os/statuses/208c0ec6dd485f44f6555f92996a81b5689e8e43"}}}}