`
lobin
  • 浏览: 101476 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
Rss 文章列表
>tree . /F Folder PATH listing for volume D Volume serial number is F075-351A └───com     └───jx             com_jx_Object.cpp             com_jx_Object.hpp             com_jx_Object.obj             libobj.dll             libobj.exp             libobj.lib             Object.class     ...
  private static PrivateKey privateKey = null; private static PublicKey publicKey = null; @BeforeClass public static void init() { KeyPairGenerator keyPairGenerator = null; try { keyPairGenerator = KeyPairGenerator.getInstance("DSA"); } catch (NoSuchAlgorithmE ...
  private static PrivateKey privateKey = null; private static PublicKey publicKey = null; @BeforeClass public static void init() { KeyPairGenerator keyPairGenerator = null; try { keyPairGenerator = KeyPairGenerator.getInstance("EC"); } catch (NoSuchAlgorithmE ...
 参考椭圆曲线加密:elliptic curve cryptography (ECC), 这里的椭圆曲线:elliptic curve(EC)。   使用公钥加密,再使用私钥解密。不像RSA,既可以使用公钥加密,再使用私钥解密,也可以私钥加密,再使用公钥解密   private static Provider provider = null; private static BCECPrivateKey privateKey = null; private static byte[] privateKeyEncoded1 = null; private static BC ...
  import base64.Base64; import org.junit.BeforeClass; import org.spongycastle.crypto.AsymmetricCipherKeyPair; import org.spongycastle.crypto.params.AsymmetricKeyParameter; import org.spongycastle.pqc.crypto.rainbow.*; import java.security.SecureRandom; public class RainbowTest { pri ...
哈希签名:哈希函数(hash)在数字签名中的实现思路   以下代码实现上的思路来自:Constructing Digital Signatures from a One Way Function, 文档资料源自http://lamport.azurewebsites.net/pubs/dig-sig.pdf, 这个是我下来上传的地址:http://dl.iteye.com/topics/download/f80e7b49-8d9c-30bb-9db9-8b3df6171465   public class HashDigest { private static byte ...
Dagger: A Memory-Hard to Compute, Memory-Easy to Verify Scrypt Alternative Over the past five years of experience with Bitcoin and alternative cryptocurrencies, one important property for proof of work functions that has been discovered is that of "memory-hardness" - computing a valid pr ...
  Digest public interface Digest { /** * Insert one more input data byte. * * @param in the input byte */ void update(byte in); /** * Insert some more bytes. * * @param inbuf the data bytes */ void update(byte[] inbuf); /** * Insert some more bytes. ...
 EncodedKeySpec java.security.spec.EncodedKeySpec   PKCS8EncodedKeySpec 私钥的ASN.1编码(规范),编码按照PKCS#8标准:   PrivateKeyInfo ::= SEQUENCE { version Version, privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, privateKey PrivateKey, attributes [0] IMPLICIT Attributes OPTIONAL } Version ...
GOST3411, Keccak, MD2, MD4, MD5, SHA1, RIPEMD128, RIPEMD160, RIPEMD256, RIPEMD320, SHA224, SHA256, SHA384, SHA512, SHA3, Skein, SM3, Tiger, Whirlpool   RSA算法实现参见另一篇文章:https://lobin.iteye.com/blog/2328267 MD2, MD4, MD5算法实现参见另一篇文章:https://lobin.iteye.com/blog/2381977 SHAx算法实现参见另一篇文章:https://lobin ...

Coordinates

Affine & Homogeneous & Jacobian & Jacobian Chudnovsky & Jacobian Modified & Lambda Affine & Lambda Projective & Skewed Coordinates   <dependency> <groupId>com.madgag.spongycastle</groupId> <artifactId>core</artifactId> <version& ...
现在Cygwin早就不支持Windows XP,一台老笔记本上还是装的XP系统: Windows XP Professional 版本 2002 Service Pack 3。所以安装Cygwin是个麻烦事。这里找到一些在老Windows系统(Windows XP)下安装Cygwin的资料:   资料来自:http://www.crouchingtigerhiddenfruitbat.org/Cygwin/timemachine.html#cygwintimemachine   Cygwin版本:setup-2.774.exe   下载地址: http://ctm.crouch ...
  kad.lua local socket = require("socket") local tcp, err = socket.tcp() if tcp == nil then print(err) error() end tcp:setoption("reuseaddr",true) local result, err = tcp:bind("localhost", 3131) print(result) print(err) if result == nil then prin ...
  Lua C模块开发   iarray例子 例子工程文件列表: >tree . /F 卷 D 的文件夹 PATH 列表 卷序列号为 F075-351A D:\***\ALLOC     alloc.cpp     alloc.obj     iarray.dll     iarray.exp     iarray.lib     liballoc.cpp     liballoc.obj     Makefile   没有子文件夹   alloc.cpp #pragma comment(lib, "lua5.1.lib") ...
1.string > "abcdefg" "abcdefg"   > (string #\a #\b #\c #\d #\e #\f #\g) "abcdefg"   > (mutable-string? "abcdefg") #t > (immutable-string? "abcdefg") #f   > (let ([s "abcdefg"]) (mutable-string? s)) #t > (let ...
Global site tag (gtag.js) - Google Analytics