{"action":"created","issue":{"url":"https://api.github.com/repos/guanzhi/GmSSL/issues/330","repository_url":"https://api.github.com/repos/guanzhi/GmSSL","labels_url":"https://api.github.com/repos/guanzhi/GmSSL/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/guanzhi/GmSSL/issues/330/comments","events_url":"https://api.github.com/repos/guanzhi/GmSSL/issues/330/events","html_url":"https://github.com/guanzhi/GmSSL/issues/330","id":247271796,"number":330,"title":"windows master版本VS 2015 编译错误","user":{"login":"memdumper","id":30483794,"avatar_url":"https://avatars3.githubusercontent.com/u/30483794?v=4","gravatar_id":"","url":"https://api.github.com/users/memdumper","html_url":"https://github.com/memdumper","followers_url":"https://api.github.com/users/memdumper/followers","following_url":"https://api.github.com/users/memdumper/following{/other_user}","gists_url":"https://api.github.com/users/memdumper/gists{/gist_id}","starred_url":"https://api.github.com/users/memdumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memdumper/subscriptions","organizations_url":"https://api.github.com/users/memdumper/orgs","repos_url":"https://api.github.com/users/memdumper/repos","events_url":"https://api.github.com/users/memdumper/events{/privacy}","received_events_url":"https://api.github.com/users/memdumper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-02T04:43:38Z","updated_at":"2017-08-03T04:38:22Z","closed_at":null,"body":"perl Configure VC-WIN32以后,执行nmake，报错\r\ncrypto\\base58\\base58.c(81): error C2057: 应输入常量表达式\r\ncrypto\\base58\\base58.c(81): error C2466: 不能分配常量大小为 0 的数组\r\ncrypto\\base58\\base58.c(81): error C2133: “outi”: 未知的大小\r\ncrypto\\base58\\base58.c(163): error C2065: “ssize_t”: 未声明的标识符\r\ncrypto\\base58\\base58.c(163): error C2146: 语法错误: 缺少“;”(在标识符“i”的前\r\n面)\r\ncrypto\\base58\\base58.c(163): error C2065: “i”: 未声明的标识符\r\ncrypto\\base58\\base58.c(163): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(163): error C2065: “high”: 未声明的标识符\r\ncrypto\\base58\\base58.c(163): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(166): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(166): warning C4018: “<”: 有符号/无符号不匹配\r\ncrypto\\base58\\base58.c(167): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(169): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(170): error C2057: 应输入常量表达式\r\ncrypto\\base58\\base58.c(170): error C2466: 不能分配常量大小为 0 的数组\r\ncrypto\\base58\\base58.c(170): error C2133: “buf”: 未知的大小\r\ncrypto\\base58\\base58.c(173): error C2065: “i”: 未声明的标识符\r\ncrypto\\base58\\base58.c(173): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(173): error C2065: “high”: 未声明的标识符\r\ncrypto\\base58\\base58.c(173): warning C4018: “<”: 有符号/无符号不匹配\r\ncrypto\\base58\\base58.c(173): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(175): error C2065: “i”: 未声明的标识符\r\ncrypto\\base58\\base58.c(175): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(175): error C2065: “high”: 未声明的标识符\r\ncrypto\\base58\\base58.c(177): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(178): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(183): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(183): warning C4018: “<”: 有符号/无符号不匹配\r\ncrypto\\base58\\base58.c(185): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(185): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(187): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(187): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(191): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(192): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(193): error C2065: “i”: 未声明的标识符\r\ncrypto\\base58\\base58.c(193): error C2065: “zcount”: 未声明的标识符\r\ncrypto\\base58\\base58.c(193): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(193): warning C4018: “<”: 有符号/无符号不匹配\r\ncrypto\\base58\\base58.c(194): error C2065: “i”: 未声明的标识符\r\ncrypto\\base58\\base58.c(194): error C2065: “j”: 未声明的标识符\r\ncrypto\\base58\\base58.c(195): error C2065: “i”: 未声明的标识符\r\ncrypto\\base58\\base58.c(196): error C2065: “i”: 未声明的标识符"},"comment":{"url":"https://api.github.com/repos/guanzhi/GmSSL/issues/comments/319865762","html_url":"https://github.com/guanzhi/GmSSL/issues/330#issuecomment-319865762","issue_url":"https://api.github.com/repos/guanzhi/GmSSL/issues/330","id":319865762,"user":{"login":"memdumper","id":30483794,"avatar_url":"https://avatars3.githubusercontent.com/u/30483794?v=4","gravatar_id":"","url":"https://api.github.com/users/memdumper","html_url":"https://github.com/memdumper","followers_url":"https://api.github.com/users/memdumper/followers","following_url":"https://api.github.com/users/memdumper/following{/other_user}","gists_url":"https://api.github.com/users/memdumper/gists{/gist_id}","starred_url":"https://api.github.com/users/memdumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memdumper/subscriptions","organizations_url":"https://api.github.com/users/memdumper/orgs","repos_url":"https://api.github.com/users/memdumper/repos","events_url":"https://api.github.com/users/memdumper/events{/privacy}","received_events_url":"https://api.github.com/users/memdumper/received_events","type":"User","site_admin":false},"created_at":"2017-08-03T04:38:22Z","updated_at":"2017-08-03T04:38:22Z","body":"参考了1132719438的方法,编译成功，过程如下\r\n1. 注解 speck.h里的speck_expand16,speck_expand32,speck_expand64，如下:\r\nvoid speck_set_encrypt_key16(SPECK_TYPE16 const user[SPECK_KEY_LEN16], SPECK_TYPE16 key[SPECK_ROUNDS16]);\r\n\tvoid speck_set_decrypt_key16(SPECK_TYPE16 const user[SPECK_KEY_LEN16], SPECK_TYPE16 key[SPECK_ROUNDS16]);\r\n\t/* void speck_expand16(SPECK_TYPE16 const K[SPECK_KEY_LEN16], SPECK_TYPE16 S[SPECK_ROUNDS16]);*/\r\n\tvoid speck_encrypt16(SPECK_TYPE16 const pt[2], SPECK_TYPE16 ct[2], SPECK_TYPE16 const K[SPECK_ROUNDS16]);\r\n\tvoid speck_decrypt16(SPECK_TYPE16 const ct[2], SPECK_TYPE16 pt[2], SPECK_TYPE16 const K[SPECK_ROUNDS16]);\r\n\r\n\tvoid speck_set_encrypt_key32(SPECK_TYPE32 const user[SPECK_KEY_LEN32], SPECK_TYPE32 key[SPECK_ROUNDS32]);\r\n\tvoid speck_set_decrypt_key32(SPECK_TYPE32 const user[SPECK_KEY_LEN32], SPECK_TYPE32 key[SPECK_ROUNDS32]);\r\n\t/*void speck_expand32(SPECK_TYPE32 const K[SPECK_KEY_LEN32], SPECK_TYPE32 S[SPECK_ROUNDS32]);*/\r\n\tvoid speck_encrypt32(SPECK_TYPE32 const pt[2], SPECK_TYPE32 ct[2], SPECK_TYPE32 const K[SPECK_ROUNDS32]);\r\n\tvoid speck_decrypt32(SPECK_TYPE32 const ct[2], SPECK_TYPE32 pt[2], SPECK_TYPE32 const K[SPECK_ROUNDS32]);\r\n2. 复制GmSSL-GmSSL-v1版本ms目录下的文件到master版本下的ms目录，同名的不要覆盖\r\n3. 在vs 2015开发人员命令提示符下执行\r\n   perl Configure VC-WIN32 no-asm no-base58\r\n   perl util/mkdef.pl crypto update\r\n   nmake\r\n\r\n\tvoid speck_set_encrypt_key64(SPECK_TYPE64 const user[SPECK_KEY_LEN64], SPECK_TYPE64 key[SPECK_ROUNDS64]);\r\n\tvoid speck_set_decrypt_key64(SPECK_TYPE64 const user[SPECK_KEY_LEN64], SPECK_TYPE64 key[SPECK_ROUNDS64]);\r\n\t/*void speck_expand64(SPECK_TYPE64 const K[SPECK_KEY_LEN64], SPECK_TYPE64 S[SPECK_ROUNDS64]);*/\r\n\tvoid speck_encrypt64(SPECK_TYPE64 const pt[2], SPECK_TYPE64 ct[2], SPECK_TYPE64 const K[SPECK_ROUNDS64]);\r\n\tvoid speck_decrypt64(SPECK_TYPE64 const ct[2], SPECK_TYPE64 pt[2], SPECK_TYPE64 const K[SPECK_ROUNDS64]);\r\n"}}
{"actor":{"display_login":"memdumper"}}