/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | KeyEncoding.java | 23 import java.security.PublicKey; 53 public static byte[] encodeUserPublicKey(PublicKey pk) { in encodeUserPublicKey() 61 public static byte[] encodeDeviceSyncGroupPublicKey(PublicKey pk) { in encodeDeviceSyncGroupPublicKey() 74 public static PublicKey parseUserPublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parseUserPublicKey() 78 public static PublicKey parseDeviceSyncGroupPublicKey(byte[] keyBytes) in parseDeviceSyncGroupPublicKey() 83 public static byte[] encodeKeyAgreementPublicKey(PublicKey pk) { in encodeKeyAgreementPublicKey() 87 public static PublicKey parseKeyAgreementPublicKey(byte[] keyBytes) in parseKeyAgreementPublicKey() 108 public static byte[] encodeSigningPublicKey(PublicKey pk) { in encodeSigningPublicKey() 112 public static PublicKey parseSigningPublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parseSigningPublicKey() 125 public static boolean isLegacyPublicKey(PublicKey pk) { in isLegacyPublicKey() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/ |
D | CompositePublicKey.java | 4 import java.security.PublicKey; 20 implements PublicKey 22 private final List<PublicKey> keys; 29 public CompositePublicKey(PublicKey... keys) in CompositePublicKey() 36 List<PublicKey> keyList = new ArrayList<PublicKey>(keys.length); in CompositePublicKey() 49 public List<PublicKey> getPublicKeys() in getPublicKeys()
|
D | PKIXCertRevocationCheckerParameters.java | 3 import java.security.PublicKey; 15 private final PublicKey workingPublicKey; 17 …e validDate, CertPath certPath, int index, X509Certificate signingCert, PublicKey workingPublicKey) in PKIXCertRevocationCheckerParameters() 52 public PublicKey getWorkingPublicKey() in getWorkingPublicKey()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/ |
D | CompositePublicKey.java | 5 import java.security.PublicKey; 22 implements PublicKey 24 private final List<PublicKey> keys; 31 public CompositePublicKey(PublicKey... keys) in CompositePublicKey() 38 List<PublicKey> keyList = new ArrayList<PublicKey>(keys.length); in CompositePublicKey() 51 public List<PublicKey> getPublicKeys() in getPublicKeys()
|
D | PKIXCertRevocationCheckerParameters.java | 4 import java.security.PublicKey; 19 private final PublicKey workingPublicKey; 21 …e validDate, CertPath certPath, int index, X509Certificate signingCert, PublicKey workingPublicKey) in PKIXCertRevocationCheckerParameters() 56 public PublicKey getWorkingPublicKey() in getWorkingPublicKey()
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/ |
D | TestPublicKey.java | 18 import java.security.PublicKey; 20 class TestPublicKey implements PublicKey { 21 private PublicKey key; 24 TestPublicKey(PublicKey key) { in TestPublicKey() 28 TestPublicKey(PublicKey key, String format) { in TestPublicKey()
|
D | SignatureTest.java | 38 import java.security.PublicKey; 282 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure() 1571 private void verify(Signature sig, PublicKey key, byte[] data, byte[] signature) in verify() 1600 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() 1610 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() 1620 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() 1630 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() 1640 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() 1650 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_Key_Success() 1666 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_NoSalt_Key_Success() [all …]
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/ |
D | TestPublicKey.java | 19 import java.security.PublicKey; 21 class TestPublicKey implements PublicKey { 22 private PublicKey key; 25 TestPublicKey(PublicKey key) { in TestPublicKey() 29 TestPublicKey(PublicKey key, String format) { in TestPublicKey()
|
D | SignatureTest.java | 43 import java.security.PublicKey; 287 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure() 1576 private void verify(Signature sig, PublicKey key, byte[] data, byte[] signature) in verify() 1605 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() 1615 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() 1625 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() 1635 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() 1645 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() 1655 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_Key_Success() 1671 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_NoSalt_Key_Success() [all …]
|
/external/rust/crates/ring/src/ec/ |
D | keys.rs | 6 public_key: PublicKey, 15 pub fn public_key(&self) -> &PublicKey { in public_key() argument 18 pub fn split(self) -> (Seed, PublicKey) { in split() argument 67 pub fn compute_public_key(&self) -> Result<PublicKey, error::Unspecified> { in compute_public_key() argument 68 let mut public_key = PublicKey { in compute_public_key() 78 pub struct PublicKey { struct 83 impl AsRef<[u8]> for PublicKey { argument
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/ |
D | CompositePublicKey.java | 5 import java.security.PublicKey; 22 implements PublicKey 24 private final List<PublicKey> keys; 31 public CompositePublicKey(PublicKey... keys) in CompositePublicKey() 38 List<PublicKey> keyList = new ArrayList<PublicKey>(keys.length); in CompositePublicKey() 51 public List<PublicKey> getPublicKeys() in getPublicKeys()
|
D | PKIXCertRevocationCheckerParameters.java | 4 import java.security.PublicKey; 19 private final PublicKey workingPublicKey; 21 …e validDate, CertPath certPath, int index, X509Certificate signingCert, PublicKey workingPublicKey) in PKIXCertRevocationCheckerParameters() 56 public PublicKey getWorkingPublicKey() in getWorkingPublicKey()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | CertificatePriorityComparator.java | 18 import java.security.PublicKey; 107 PublicKey lhsPublicKey = lhs.getPublicKey(); in compareStrength() 108 PublicKey rhsPublicKey = rhs.getPublicKey(); in compareStrength() 120 private int compareKeyAlgorithm(PublicKey lhs, PublicKey rhs) { in compareKeyAlgorithm() 136 private int compareKeySize(PublicKey lhs, PublicKey rhs) { in compareKeySize() 147 private int getKeySize(PublicKey pkey) { in getKeySize()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | CertificatePriorityComparator.java | 19 import java.security.PublicKey; 109 PublicKey lhsPublicKey = lhs.getPublicKey(); in compareStrength() 110 PublicKey rhsPublicKey = rhs.getPublicKey(); in compareStrength() 122 private int compareKeyAlgorithm(PublicKey lhs, PublicKey rhs) { in compareKeyAlgorithm() 138 private int compareKeySize(PublicKey lhs, PublicKey rhs) { in compareKeySize() 149 private int getKeySize(PublicKey pkey) { in getKeySize()
|
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/ |
D | KeyEncodingTest.java | 22 import java.security.PublicKey; 84 PublicKey pk = userKeyPair.getPublic(); in testUserPublicKeyEncoding() 86 PublicKey decodedPk = KeyEncoding.parseUserPublicKey(encodedPk); in testUserPublicKeyEncoding() 99 PublicKey pk = clientKeyPair.getPublic(); in testKeyAgreementPublicKeyEncoding() 101 PublicKey decodedPk = KeyEncoding.parseKeyAgreementPublicKey(encodedPk); in testKeyAgreementPublicKeyEncoding() 129 PublicKey pk = keyPair.getPublic(); in testSigningPublicKeyEncoding() 131 PublicKey decodedPk = KeyEncoding.parseSigningPublicKey(encodedPk); in testSigningPublicKeyEncoding() 145 PublicKey pk = keyPair.getPublic(); in testDeviceSyncPublicKeyEncoding() 147 PublicKey decodedPk = KeyEncoding.parseDeviceSyncGroupPublicKey(encodedPk); in testDeviceSyncPublicKeyEncoding()
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
D | RSA_SHA1.java | 24 import java.security.PublicKey; 90 private PublicKey publicKey = null; 116 if (publicKeyObject instanceof PublicKey) { in initialize() 117 publicKey = (PublicKey)publicKeyObject; in initialize() 150 private PublicKey getPublicKeyFromPemCert(String certObject) in getPublicKeyFromPemCert() 158 private PublicKey getPublicKeyFromDerCert(byte[] certObject) in getPublicKeyFromDerCert() 166 private PublicKey getPublicKeyFromDer(byte[] publicKeyObject) in getPublicKeyFromDer() 173 private PublicKey getPublicKeyFromPem(String publicKeyObject) in getPublicKeyFromPem()
|
/external/rust/crates/ring/src/ec/curve25519/ed25519/ |
D | signing.rs | 35 public_key: PublicKey, 174 public_key: PublicKey(a.into_encoded_point()), in from_seed_() 222 type PublicKey = PublicKey; typedef 224 fn public_key(&self) -> &Self::PublicKey { in public_key() argument 230 pub struct PublicKey([u8; ED25519_PUBLIC_KEY_LEN]); struct 232 impl AsRef<[u8]> for PublicKey { implementation 238 derive_debug_self_as_ref_hex_bytes!(PublicKey);
|
/external/boringssl/src/ssl/test/runner/ |
D | sign.go | 26 verifyMessage(key crypto.PublicKey, msg, sig []byte) error argument 70 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,… argument 116 func (r *rsaPKCS1Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error { 117 rsaKey, ok := key.(*rsa.PublicKey) 188 func (e *ecdsaSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error { 189 ecdsaKey, ok := key.(*ecdsa.PublicKey) 235 func (r *rsaPSSSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error { 236 rsaKey, ok := key.(*rsa.PublicKey) 262 func (e *ed25519Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error { 263 pubKey, ok := key.(ed25519.PublicKey) [all …]
|
/external/rust/crates/ring/src/ |
D | agreement.rs | 126 pub fn compute_public_key(&self) -> Result<PublicKey, error::Unspecified> { in compute_public_key() argument 134 .map(|public_key| PublicKey { in compute_public_key() 154 pub struct PublicKey { struct 156 bytes: ec::PublicKey, argument 159 impl AsRef<[u8]> for PublicKey { implementation 165 impl core::fmt::Debug for PublicKey { implementation 174 impl PublicKey { impl
|
/external/python/rsa/tests/ |
D | test_load_save_keys.py | 129 key = rsa.key.PublicKey.load_pkcs1(PUBLIC_DER, 'DER') 130 expected = rsa.key.PublicKey(3727264081, 65537) 137 key = rsa.key.PublicKey(3727264081, 65537) 170 key = rsa.key.PublicKey.load_pkcs1(PUBLIC_PEM, 'PEM') 171 expected = rsa.key.PublicKey(3727264081, 65537) 178 key = rsa.key.PublicKey(3727264081, 65537) 207 pk = rsa.key.PublicKey(3727264081, 65537)
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | JcaContentVerifierProviderBuilder.java | 6 import java.security.PublicKey; 123 public ContentVerifierProvider build(final PublicKey publicKey) 148 List<PublicKey> keys = ((CompositePublicKey)publicKey).getPublicKeys(); 154 Signature sig = createSignature(algorithm, (PublicKey)keys.get(i)); 156 Signature rawSig = createRawSig(algorithm, (PublicKey)keys.get(i)); 200 …private ContentVerifier createCompositeVerifier(AlgorithmIdentifier compAlgId, PublicKey publicKey) 205 List<PublicKey> pubKeys = ((CompositePublicKey)publicKey).getPublicKeys(); 213 sigs[i] = createSignature(sigAlg, (PublicKey)pubKeys.get(i)); 245 private Signature createSignature(AlgorithmIdentifier algorithm, PublicKey publicKey) 262 private Signature createRawSig(AlgorithmIdentifier algorithm, PublicKey publicKey)
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | InternalUtil.java | 22 import java.security.PublicKey; 31 public static PublicKey logKeyToPublicKey(byte[] logKey) in logKeyToPublicKey() 40 …public static PublicKey readPublicKeyPem(InputStream pem) throws InvalidKeyException, NoSuchAlgori… in readPublicKeyPem()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/ |
D | JcaSimpleSignerInfoVerifierBuilder.java | 4 import java.security.PublicKey; 48 public SignerInformationVerifier build(PublicKey pubKey) in build() 56 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() 91 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() 126 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider()
|
D | JcaSignerInfoVerifierBuilder.java | 4 import java.security.PublicKey; 78 public SignerInformationVerifier build(PublicKey pubKey) in build() 86 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() 121 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() 156 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider()
|
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | InternalUtil.java | 23 import java.security.PublicKey; 33 public static PublicKey logKeyToPublicKey(byte[] logKey) in logKeyToPublicKey() 42 …public static PublicKey readPublicKeyPem(InputStream pem) throws InvalidKeyException, NoSuchAlgori… in readPublicKeyPem()
|