Open yazhou71021 opened 4 years ago
It's running correctly in my mac, but I'm not test it in windows yet. Can you provide more details about your machine, os version and build options.
It's the problem with this function, but I don't know the specific reason. I replaced this function with my scalarmult function and there is no problem. My configuration here is win7-64 bit, vs2010.
void merlin_transcript_commit_bytes(merlin_transcript* mctx, const uint8_t* label, size_t label_len, const uint8_t* message, size_t message_len) { uint64_t message_len_bytes = message_len; strobe128_meta_ad(&mctx->sctx, label, label_len, 0); strobe128_meta_ad(&mctx->sctx, (uint8_t*)&message_len_bytes, 4, 1); strobe128_ad(&mctx->sctx, message, message_len, 0); }
在多处调用strobe128_meta_ad 的地方。把整形转成char*类型,会有大小端的问题。