`
lobin
  • 浏览: 115522 次
  • 性别: 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& ...
Global site tag (gtag.js) - Google Analytics