Searched refs:privateKey (Results 1 – 3 of 3) sorted by relevance
64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1])); in main() local65 byte[] signature = Utils.sign(privateKey, content); in main()
274 static byte[] sign(PrivateKey privateKey, byte[] input) throws Exception { in sign() argument275 Signature signer = Signature.getInstance(getSignatureAlgorithm(privateKey)); in sign()276 signer.initSign(privateKey); in sign()
84 ErrMsgOr<bytevec> ecdh(const bytevec& publicKey, const bytevec& privateKey) { in ecdh() argument106 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecdh()