V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
punk2sang
V2EX  ›  程序员

C++中 sha256 能取出一个 SHA256REF_CTX 类型的 context 的 state,在 Java 中有没有对应的包有这种功能的

  •  
  •   punk2sang · 2019-12-18 16:36:58 +08:00 · 814 次点击
    这是一个创建于 1562 天前的主题,其中的信息可能已经有所发展或是发生改变。
    SHA256REF_CTX *ctx = (SHA256REF_CTX*)ctxv;
    memcpy(state, ctx->state, 256);

    sha256_update(&ctx, data, size);
    sha256_final(&ctx, (uint8_t*)hash);
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5330 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:11 · PVG 16:11 · LAX 01:11 · JFK 04:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.