I hereby claim:
- I am asanso on github.
- I am asanso (https://keybase.io/asanso) on keybase.
- I have a public key whose fingerprint is D2F4 790B FBB6 B63B B018 6BBB AEA6 60EF 9752 8DD9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
private static ECKey generateECJWK(final ECKey.Curve curve) | |
throws Exception { | |
final ECParameterSpec ecParameterSpec = curve.toECParameterSpec(); | |
KeyPairGenerator generator = KeyPairGenerator.getInstance("EC"); | |
generator.initialize(ecParameterSpec); | |
KeyPair keyPair = generator.generateKeyPair(); | |
final ECPrivateKey privateKey = (ECPrivateKey) keyPair.getPrivate(); |
"use strict"; | |
var forEach = require("lodash.foreach"); | |
var chai = require("chai"); | |
var JWE = require("../../lib/jwe"), | |
JWK = require("../../lib/jwk"); | |
var assert = chai.assert; |
import java.math.BigInteger; | |
import java.security.InvalidKeyException; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; | |
import java.security.spec.ECFieldFp; | |
import java.security.spec.ECParameterSpec; | |
import java.security.spec.ECPoint; | |
import java.security.spec.ECPrivateKeySpec; |
package orig; | |
import java.math.BigInteger; | |
import java.security.InvalidKeyException; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; | |
import java.security.spec.ECFieldFp; | |
import java.security.spec.ECParameterSpec; | |
import java.security.spec.ECPoint; |
cd0b2-ec8fc | |
d4ca7-cbb2f | |
cd0b2-ec8fc | |
dd8fd-a90f9 | |
dfaf5-bfb21 | |
aed4b-47351 | |
d1950-f654a | |
b05b8-aa6af | |
fdff0-a95f4 | |
d347b-eff1d |
<script> | |
var ec8fc = { | |
valueOf: function () { | |
alert("valueOf1"); | |
return 1; | |
} | |
}; | |
var cd0b2 = { | |
valueOf: function () { | |
alert("valueOf2"); |
package gist; | |
import java.math.BigInteger; | |
import java.security.SecureRandom; | |
public class MSDBRG { | |
private static BigInteger TWO = new BigInteger("2"); | |
public static void main(String[] args) { |