Home
last modified time | relevance | path

Searched refs:PublicKey (Results 1 – 25 of 207) sorted by relevance

123456789

/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DKeyEncoding.java23 import java.security.PublicKey;
53 public static byte[] encodeUserPublicKey(PublicKey pk) { in encodeUserPublicKey()
70 public static PublicKey parseUserPublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parseUserPublicKey()
74 public static byte[] encodeKeyAgreementPublicKey(PublicKey pk) { in encodeKeyAgreementPublicKey()
78 public static PublicKey parseKeyAgreementPublicKey(byte[] keyBytes) in parseKeyAgreementPublicKey()
99 public static byte[] encodeSigningPublicKey(PublicKey pk) { in encodeSigningPublicKey()
103 public static PublicKey parseSigningPublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parseSigningPublicKey()
116 public static boolean isLegacyPublicKey(PublicKey pk) { in isLegacyPublicKey()
142 private static byte[] encodePublicKey(PublicKey pk) { in encodePublicKey()
146 private static PublicKey parsePublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parsePublicKey()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/
DSignatureTest.java37 import java.security.PublicKey;
281 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure()
1574 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success()
1588 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success()
1602 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success()
1616 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success()
1630 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success()
1644 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_Key_Success()
1660 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_NoSalt_Key_Success()
1675 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_MaxSalt_Key_Success()
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/
DSignatureTest.java36 import java.security.PublicKey;
277 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure()
1570 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success()
1584 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success()
1598 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success()
1612 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success()
1626 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success()
1640 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_Key_Success()
1656 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_NoSalt_Key_Success()
1671 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSAPSS_MaxSalt_Key_Success()
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DCertificatePriorityComparator.java19 import java.security.PublicKey;
108 PublicKey lhsPublicKey = lhs.getPublicKey(); in compareStrength()
109 PublicKey rhsPublicKey = rhs.getPublicKey(); in compareStrength()
121 private int compareKeyAlgorithm(PublicKey lhs, PublicKey rhs) { in compareKeyAlgorithm()
137 private int compareKeySize(PublicKey lhs, PublicKey rhs) { in compareKeySize()
148 private int getKeySize(PublicKey pkey) { in getKeySize()
DTrustedCertificateIndex.java20 import java.security.PublicKey;
117 PublicKey publicKey; in findByIssuerAndSignature()
148 PublicKey certPublicKey = cert.getPublicKey(); in findBySubjectAndPublicKey()
150 PublicKey caPublicKey; in findBySubjectAndPublicKey()
193 PublicKey publicKey; in findAllByIssuerAndSignature()
DOpenSSLKey.java24 import java.security.PublicKey;
119 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly()
202 PublicKey publicKey) throws InvalidKeyException { in wrapJCAPrivateKeyForTLSStackOnly()
223 static OpenSSLKey fromPublicKey(PublicKey key) throws InvalidKeyException { in fromPublicKey()
267 PublicKey getPublicKey() throws NoSuchAlgorithmException { in getPublicKey()
278 static PublicKey getPublicKey(X509EncodedKeySpec keySpec, int type) in getPublicKey()
DOpenSSLECKeyFactory.java25 import java.security.PublicKey;
49 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic()
99 } else if (key instanceof PublicKey && ECPublicKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
135 } else if (key instanceof PublicKey && X509EncodedKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
192 } else if ((key instanceof PublicKey) && "X.509".equals(key.getFormat())) { in engineTranslateKey()
/external/conscrypt/common/src/main/java/org/conscrypt/
DCertificatePriorityComparator.java18 import java.security.PublicKey;
106 PublicKey lhsPublicKey = lhs.getPublicKey(); in compareStrength()
107 PublicKey rhsPublicKey = rhs.getPublicKey(); in compareStrength()
119 private int compareKeyAlgorithm(PublicKey lhs, PublicKey rhs) { in compareKeyAlgorithm()
135 private int compareKeySize(PublicKey lhs, PublicKey rhs) { in compareKeySize()
146 private int getKeySize(PublicKey pkey) { in getKeySize()
DOpenSSLKey.java23 import java.security.PublicKey;
115 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly()
198 PublicKey publicKey) throws InvalidKeyException { in wrapJCAPrivateKeyForTLSStackOnly()
219 static OpenSSLKey fromPublicKey(PublicKey key) throws InvalidKeyException { in fromPublicKey()
262 PublicKey getPublicKey() throws NoSuchAlgorithmException { in getPublicKey()
273 static PublicKey getPublicKey(X509EncodedKeySpec keySpec, int type) in getPublicKey()
DTrustedCertificateIndex.java19 import java.security.PublicKey;
111 PublicKey publicKey; in findByIssuerAndSignature()
141 PublicKey certPublicKey = cert.getPublicKey(); in findBySubjectAndPublicKey()
143 PublicKey caPublicKey; in findBySubjectAndPublicKey()
185 PublicKey publicKey; in findAllByIssuerAndSignature()
/external/oauth/core/src/main/java/net/oauth/signature/
DRSA_SHA1.java24 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/boringssl/src/ssl/test/runner/
Dsign.go27 verifyMessage(key crypto.PublicKey, msg, sig []byte) error argument
71 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,… argument
117 func (r *rsaPKCS1Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
118 rsaKey, ok := key.(*rsa.PublicKey)
189 func (e *ecdsaSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
190 ecdsaKey, ok := key.(*ecdsa.PublicKey)
236 func (r *rsaPSSSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
237 rsaKey, ok := key.(*rsa.PublicKey)
263 func (e *ed25519Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
264 pubKey, ok := key.(ed25519.PublicKey)
[all …]
Dtls.go233 case *rsa.PublicKey:
243 case *ecdsa.PublicKey:
254 case ed25519.PublicKey:
278 func getCertificatePublicKey(cert *x509.Certificate) crypto.PublicKey {
279 if cert.PublicKey != nil {
280 return cert.PublicKey
284 return ed25519.PublicKey(cert.RawSubjectPublicKeyInfo[len(ed25519SPKIPrefix):])
Dkey_agreement.go137 …g, clientHello *clientHelloMsg, serverHello *serverHelloMsg, key crypto.PublicKey, skx *serverKeyE…
141 func rsaSize(pub *rsa.PublicKey) int { argument
145 func rsaRawEncrypt(pub *rsa.PublicKey, msg []byte) ([]byte, error) { argument
199 padded := make([]byte, rsaSize(cert.PublicKey.(*rsa.PublicKey)))
216 encrypted, err := rsaRawEncrypt(cert.PublicKey.(*rsa.PublicKey), padded)
367 hrssPublic := e.hrssPrivateKey.PublicKey.Marshal()
460 …g, clientHello *clientHelloMsg, serverHello *serverHelloMsg, key crypto.PublicKey, params []byte, … argument
473 …g, clientHello *clientHelloMsg, serverHello *serverHelloMsg, key crypto.PublicKey, params []byte, …
533 …entHello *clientHelloMsg, serverHello *serverHelloMsg, publicKey crypto.PublicKey, params []byte, …
537 _, edsaOk := publicKey.(*ecdsa.PublicKey)
[all …]
/external/python/rsa/tests/
Dtest_load_save_keys.py132 key = rsa.key.PublicKey.load_pkcs1(PUBLIC_DER, 'DER')
133 expected = rsa.key.PublicKey(3727264081, 65537)
140 key = rsa.key.PublicKey(3727264081, 65537)
173 key = rsa.key.PublicKey.load_pkcs1(PUBLIC_PEM, 'PEM')
174 expected = rsa.key.PublicKey(3727264081, 65537)
181 key = rsa.key.PublicKey(3727264081, 65537)
210 pk = rsa.key.PublicKey(3727264081, 65537)
Dtest_pem.py60 key = rsa.key.PublicKey.load_pkcs1_openssl_pem(public_key_pem)
64 key = rsa.key.PublicKey.load_pkcs1_openssl_pem(public_key_pem.encode('ascii'))
81 key = rsa.key.PublicKey.load_pkcs1_openssl_pem(public_key_pem)
95 key = rsa.key.PublicKey.load_pkcs1_openssl_pem(public_key_pem.encode('ascii'))
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/
DJcaSimpleSignerInfoVerifierBuilder.java4 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()
DJcaSignerInfoVerifierBuilder.java4 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/platform/src/main/java/org/conscrypt/
DInternalUtil.java22 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/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/
DInternalUtil.java23 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()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/
DPublicKeyProtoUtil.java29 import java.security.PublicKey;
171 public static GenericPublicKey encodePublicKey(PublicKey pk) { in encodePublicKey()
199 public static EcP256PublicKey encodeEcPublicKey(PublicKey pk) { in encodeEcPublicKey()
210 public static SimpleRsaPublicKey encodeRsa2048PublicKey(PublicKey pk) { in encodeRsa2048PublicKey()
222 public static DhPublicKey encodeDh2048PublicKey(PublicKey pk) { in encodeDh2048PublicKey()
234 public static PublicKey parsePublicKey(GenericPublicKey gpk) throws InvalidKeySpecException { in parsePublicKey()
478 private static ECPublicKey pkToECPublicKey(PublicKey pk) { in pkToECPublicKey()
488 private static RSAPublicKey pkToRSAPublicKey(PublicKey pk) { in pkToRSAPublicKey()
498 private static DHPublicKey pkToDHPublicKey(PublicKey pk) { in pkToDHPublicKey()
/external/boringssl/src/ssl/test/runner/ed25519/
Ded25519.go42 type PublicKey []byte type
48 func (priv PrivateKey) Public() crypto.PublicKey {
51 return PublicKey(publicKey)
78 func GenerateKey(rand io.Reader) (PublicKey, PrivateKey, error) {
174 func Verify(publicKey PublicKey, message, sig []byte) bool { argument
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/
DCTLogInfo.java23 import java.security.PublicKey;
38 private final PublicKey publicKey;
42 public CTLogInfo(PublicKey publicKey, String description, String url) { in CTLogInfo()
63 public PublicKey getPublicKey() { in getPublicKey()
/external/conscrypt/common/src/main/java/org/conscrypt/ct/
DCTLogInfo.java22 import java.security.PublicKey;
36 private final PublicKey publicKey;
40 public CTLogInfo(PublicKey publicKey, String description, String url) { in CTLogInfo()
61 public PublicKey getPublicKey() { in getPublicKey()
/external/boringssl/src/crypto/evp/
Devp_tests.txt11 PublicKey = RSA-2048-SPKI
16 PublicKey = RSA-2048-SPKI-Negative
21 PublicKey = RSA-2048-SPKI-Invalid
26 PublicKey = RSA-2048-SPKI-Invalid2
62 # The public half of the same key encoded as a PublicKey.
63 PublicKey = P-256-SPKI
68 PublicKey = P-256-SPKI
73 PublicKey = P-256-SPKI
83 PublicKey = DSA-1024-SPKI
88 PublicKey = DSA-1024-SPKI-No-Params
[all …]

123456789