<p>I need to program some error-correction and cryptography (just for testing, it won't be deployed anywhere), but I don't want to waste time writing my own finite field arithmetic library. I tried to search for it, but couldn't find something specific. Is there any finite field arithmetic library for Go?</p>
<hr/>**评论:**<br/><br/>smasher164: <pre><p>If you need operations over a Galois field, the crypto/cipher package implements the GCM mode. However looking at <a href="https://golang.org/src/crypto/cipher/gcm.go" rel="nofollow">gcm.go</a>, both <code>gcmFieldElement</code>and <code>productTable</code> are unexported.</p>
<p>Otherwise, Russ Cox has an implementation of <a href="https://github.com/rsc/rsc/blob/master/gf256/gf256.go" rel="nofollow">GF(256)</a> that you should check out.</p></pre>theatrus: <pre><p>Look at the builtins. crypto/rsa uses math/big. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传