Home
last modified time | relevance | path

Searched refs:PRIVATE_KEY (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/ring/tests/
Ded25519_tests.rs106 const PRIVATE_KEY: &[u8] = include_bytes!("ed25519_test_private_key.bin"); in test_ed25519_from_seed_and_public_key_misuse() constant
109 assert!(Ed25519KeyPair::from_seed_and_public_key(PRIVATE_KEY, PUBLIC_KEY).is_ok()); in test_ed25519_from_seed_and_public_key_misuse()
112 assert!(Ed25519KeyPair::from_seed_and_public_key(&PRIVATE_KEY[..31], PUBLIC_KEY).is_err()); in test_ed25519_from_seed_and_public_key_misuse()
115 assert!(Ed25519KeyPair::from_seed_and_public_key(PRIVATE_KEY, &PUBLIC_KEY[..31]).is_err()); in test_ed25519_from_seed_and_public_key_misuse()
118 assert!(Ed25519KeyPair::from_seed_and_public_key(PUBLIC_KEY, PRIVATE_KEY).is_err()); in test_ed25519_from_seed_and_public_key_misuse()
167 const PRIVATE_KEY: &[u8] = include_bytes!("ed25519_test_private_key.p8"); in ed25519_test_public_key_coverage() constant
172 let key_pair = signature::Ed25519KeyPair::from_pkcs8(PRIVATE_KEY).unwrap(); in ed25519_test_public_key_coverage()
Decdsa_tests.rs180 const PRIVATE_KEY: &[u8] = include_bytes!("ecdsa_test_private_key_p256.p8"); in ecdsa_test_public_key_coverage() constant
186 PRIVATE_KEY, in ecdsa_test_public_key_coverage()
Drsa_tests.rs285 const PRIVATE_KEY: &[u8] = include_bytes!("rsa_test_private_key_2048.p8"); in rsa_test_public_key_coverage() constant
292 let key_pair = signature::RsaKeyPair::from_pkcs8(PRIVATE_KEY).unwrap(); in rsa_test_public_key_coverage()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java178 else if (wrappedKeyAlgorithm.equals("") && wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
214 else if (wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java182 else if (wrappedKeyAlgorithm.equals("") && wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
218 else if (wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java182 else if (wrappedKeyAlgorithm.equals("") && wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
218 else if (wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
/external/oauth/core/src/main/java/net/oauth/signature/
DRSA_SHA1.java85 final static public String PRIVATE_KEY = "RSA-SHA1.PrivateKey"; field in RSA_SHA1
97 Object privateKeyObject = accessor.consumer.getProperty(PRIVATE_KEY); in initialize()
/external/autotest/server/cros/tradefed/
Dtradefed_constants.py70 PRIVATE_KEY = '''-----BEGIN PRIVATE KEY----- variable
Dtradefed_test.py464 f.write(constants.PRIVATE_KEY)
1060 (pipes.quote(constants.PRIVATE_KEY), key_path)
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseWrapCipher.java516 else if (wrappedKeyAlgorithm.equals("") && wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
552 else if (wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
/external/python/cryptography/docs/development/custom-vectors/rsa-oaep-sha2/
DVerifyRSAOAEPSHA2.java44 private static final String PRIVATE_KEY = "# Private key"; field in TestVectorLoader
130 if (!line.startsWith(PRIVATE_KEY)) in loadNextTest()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseWrapCipher.java520 else if (wrappedKeyAlgorithm.equals("") && wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
556 else if (wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseWrapCipher.java520 else if (wrappedKeyAlgorithm.equals("") && wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
556 else if (wrappedKeyType == Cipher.PRIVATE_KEY) in engineUnwrap()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLCipher.java432 } else if (wrappedKeyType == Cipher.PRIVATE_KEY) { in engineUnwrap()
DOpenSSLCipherRSA.java364 } else if (wrappedKeyType == Cipher.PRIVATE_KEY) { in engineUnwrap()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipher.java430 } else if (wrappedKeyType == Cipher.PRIVATE_KEY) { in engineUnwrap()
DOpenSSLCipherRSA.java360 } else if (wrappedKeyType == Cipher.PRIVATE_KEY) { in engineUnwrap()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java626 return (PrivateKey)cipher.unwrap(data, "", Cipher.PRIVATE_KEY); in unwrapKey()
634 return (PrivateKey)cipher.unwrap(data, "", Cipher.PRIVATE_KEY); in unwrapKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java630 return (PrivateKey)cipher.unwrap(data, "", Cipher.PRIVATE_KEY); in unwrapKey()
638 return (PrivateKey)cipher.unwrap(data, "", Cipher.PRIVATE_KEY); in unwrapKey()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java630 return (PrivateKey)cipher.unwrap(data, "", Cipher.PRIVATE_KEY); in unwrapKey()
638 return (PrivateKey)cipher.unwrap(data, "", Cipher.PRIVATE_KEY); in unwrapKey()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DCipherTest.java4302 cipher.unwrap(wrappedKey, key.getAlgorithm(), Cipher.PRIVATE_KEY); in checkCipher_Unwrap_invalidMode_Failure()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DCipherTest.java4310 cipher.unwrap(wrappedKey, key.getAlgorithm(), Cipher.PRIVATE_KEY); in checkCipher_Unwrap_invalidMode_Failure()