/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
AsymmetricKeyParameter.java | 8 boolean privateKey; 11 boolean privateKey) 13 this.privateKey = privateKey; 18 return privateKey;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/ |
AsymmetricKeyInfoConverter.java | 4 import java.security.PrivateKey; 12 PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/ |
ECPrivateKey.java | 4 import java.security.PrivateKey; 10 extends ECKey, PrivateKey
|
/prebuilts/go/darwin-x86/src/crypto/x509/ |
sec1.go | 26 PrivateKey []byte 32 func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) { 37 func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error) { 48 func marshalECPrivateKeyWithOID(key *ecdsa.PrivateKey, oid asn1.ObjectIdentifier) ([]byte, error) { 55 PrivateKey: paddedPrivateKey, 65 func parseECPrivateKey(namedCurveOID *asn1.ObjectIdentifier, der []byte) (key *ecdsa.PrivateKey, err error) { 84 k := new(big.Int).SetBytes(privKey.PrivateKey) 89 priv := new(ecdsa.PrivateKey) 93 privateKey := make([]byte, (curveOrder.BitLen()+7)/8) 97 for len(privKey.PrivateKey) > len(privateKey) [all...] |
pkcs8.go | 16 // pkcs8 reflects an ASN.1, PKCS#8 PrivateKey. See 22 PrivateKey []byte 35 key, err = ParsePKCS1PrivateKey(privKey.PrivateKey) 47 key, err = parseECPrivateKey(namedCurveOID, privKey.PrivateKey) 59 // The following key types are supported: *rsa.PrivateKey, *ecdsa.PublicKey. 67 case *rsa.PrivateKey: 72 privKey.PrivateKey = MarshalPKCS1PrivateKey(k) 74 case *ecdsa.PrivateKey: 92 if privKey.PrivateKey, err = marshalECPrivateKeyWithOID(k, nil); err != nil {
|
/prebuilts/go/linux-x86/src/crypto/x509/ |
sec1.go | 26 PrivateKey []byte 32 func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) { 37 func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error) { 48 func marshalECPrivateKeyWithOID(key *ecdsa.PrivateKey, oid asn1.ObjectIdentifier) ([]byte, error) { 55 PrivateKey: paddedPrivateKey, 65 func parseECPrivateKey(namedCurveOID *asn1.ObjectIdentifier, der []byte) (key *ecdsa.PrivateKey, err error) { 84 k := new(big.Int).SetBytes(privKey.PrivateKey) 89 priv := new(ecdsa.PrivateKey) 93 privateKey := make([]byte, (curveOrder.BitLen()+7)/8) 97 for len(privKey.PrivateKey) > len(privateKey) [all...] |
pkcs8.go | 16 // pkcs8 reflects an ASN.1, PKCS#8 PrivateKey. See 22 PrivateKey []byte 35 key, err = ParsePKCS1PrivateKey(privKey.PrivateKey) 47 key, err = parseECPrivateKey(namedCurveOID, privKey.PrivateKey) 59 // The following key types are supported: *rsa.PrivateKey, *ecdsa.PublicKey. 67 case *rsa.PrivateKey: 72 privKey.PrivateKey = MarshalPKCS1PrivateKey(k) 74 case *ecdsa.PrivateKey: 92 if privKey.PrivateKey, err = marshalECPrivateKeyWithOID(k, nil); err != nil {
|
/libcore/ojluni/src/main/java/java/security/ |
KeyPair.java | 33 * should be treated like a PrivateKey. 36 * @see PrivateKey 45 private PrivateKey privateKey; 57 * @param privateKey the private key. 59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { 61 this.privateKey = privateKey; 78 public PrivateKey getPrivate() [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KSPrivateKeyEntryTest.java | 26 import java.security.PrivateKey; 45 private PrivateKey testPrivateKey; 56 testPrivateKey = (diffKeys ? (PrivateKey)new tmpPrivateKey() : 57 (PrivateKey)new tmpPrivateKey(testChain[0].getPublicKey().getAlgorithm())); 61 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 63 * Assertion: throws NullPointerException when privateKey is null 67 PrivateKey pk = null; 70 fail("NullPointerException must be thrown when privateKey is null"); 76 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code [all...] |
PrivateKeyTest.java | 25 import java.security.PrivateKey; 30 * Tests for <code>PrivateKey</code> class field 40 assertEquals("Incorrect serialVersionUID", cPrKey.getSerVerUID(), //PrivateKey.serialVersionUID, 44 public class checkPrivateKey implements PrivateKey {
|
SignatureSpiTest.java | 10 import java.security.PrivateKey; 101 protected void engineInitSign(PrivateKey privateKey) 156 public void engineInitSign(PrivateKey privateKey) { 190 public void engineInitSign(PrivateKey privateKey) { 231 protected void engineInitSign(PrivateKey privateKey) 273 protected void engineInitSign(PrivateKey privateKey, SecureRandom random [all...] |
/external/boringssl/src/ssl/test/runner/ed25519/ |
ed25519.go | 39 // PrivateKey is the type of Ed25519 private keys. It implements crypto.Signer. 40 type PrivateKey []byte 43 func (priv PrivateKey) Public() crypto.PublicKey { 54 func (priv PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error) { 64 func GenerateKey(rand io.Reader) (publicKey PublicKey, privateKey PrivateKey, err error) { 75 publicKey, privateKey = NewKeyPairFromSeed(seed[:]) 76 return publicKey, privateKey, nil 81 func NewKeyPairFromSeed(seed []byte) (publicKey PublicKey, privateKey PrivateKey) { [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStorePrivateKey.java | 19 import java.security.PrivateKey; 22 * {@link PrivateKey} backed by Android Keystore. 26 public class AndroidKeyStorePrivateKey extends AndroidKeyStoreKey implements PrivateKey {
|
/libcore/luni/src/test/java/libcore/java/security/ |
MockPrivateKey.java | 19 import java.security.PrivateKey; 22 * A mock PrivateKey class used for testing. 25 public class MockPrivateKey implements PrivateKey {
|
MockPrivateKey2.java | 19 import java.security.PrivateKey; 22 * A mock PrivateKey class used for testing. 25 public class MockPrivateKey2 implements PrivateKey {
|
MockSignatureSpi.java | 22 import java.security.PrivateKey; 64 * @see java.security.SignatureSpi#engineInitSign(java.security.PrivateKey) 67 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { 68 checkKeyType(privateKey);
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLKey.java | 22 import java.security.PrivateKey; 60 static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException { 110 * @param privateKey private key. 115 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { 116 OpenSSLKey result = getOpenSSLKey(privateKey); 121 result = fromKeyMaterial(privateKey); 126 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); 139 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { 159 private static OpenSSLKey getOpenSSLKey(PrivateKey key) [all...] |
OpenSSLECPrivateKey.java | 25 import java.security.PrivateKey; 36 * An implementation of a {@link PrivateKey} for EC keys based on BoringSSL. 84 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, 87 if (privateKey instanceof ECKey) { 88 params = ((ECKey) privateKey).getParams(); 93 throw new InvalidKeyException("EC parameters not available. Private: " + privateKey 96 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, params); 104 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, [all...] |
/external/boringssl/src/ssl/test/runner/ |
sign.go | 25 supportsKey(key crypto.PrivateKey) bool 26 signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error) 30 func selectSignatureAlgorithm(version uint16, key crypto.PrivateKey, config *Config, peerSigAlgs []signatureAlgorithm) (signatureAlgorithm, error) { 55 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, msg []byte) ([]byte, error) { 103 func (r *rsaPKCS1Signer) supportsKey(key crypto.PrivateKey) bool { 104 _, ok := key.(*rsa.PrivateKey) 108 func (r *rsaPKCS1Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error) { 109 rsaKey, ok := key.(*rsa.PrivateKey) 143 func (e *ecdsaSigner) supportsKey(key crypto.PrivateKey) bool { 144 ecdsaKey, ok := key.(*ecdsa.PrivateKey) [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
KeyFactoryTestRSA.java | 20 import java.security.PrivateKey; 44 PrivateKey privateKey = DefaultKeys.getPrivateKey("RSA"); 45 byte[] encoded = privateKey.getEncoded();
|
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 22 import java.security.PrivateKey; 56 PrivateKey privateKey = factory.generatePrivate(privateKeySpec); 60 check(new KeyPair(publicKey, privateKey));
|
/system/extras/verity/ |
VeritySigner.java | 20 import java.security.PrivateKey; 64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1])); 65 byte[] signature = Utils.sign(privateKey, content);
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
FakeOidProvider.java | 5 import java.security.PrivateKey; 38 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 23 import java.security.PrivateKey; 47 * of type java.security.PrivateKey, String, or byte[]. In the latter two 85 final static public String PRIVATE_KEY = "RSA-SHA1.PrivateKey"; 89 private PrivateKey privateKey = null; 100 if (privateKeyObject instanceof PrivateKey) { 101 privateKey = (PrivateKey)privateKeyObject; 103 privateKey = getPrivateKeyFromPem((String)privateKeyObject); 105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject) [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
JcaContentSignerBuilder.java | 6 import java.security.PrivateKey; 56 public ContentSigner build(PrivateKey privateKey) 66 sig.initSign(privateKey, random); 70 sig.initSign(privateKey);
|