Home
last modified time | relevance | path

Searched refs:RSAPublicKey (Results 1 – 25 of 108) sorted by relevance

12345

/external/vboot_reference/firmware/lib/cryptolib/
Drsa_utility.c29 RSAPublicKey* RSAPublicKeyNew(void) { in RSAPublicKeyNew()
30 RSAPublicKey* key = (RSAPublicKey*) VbExMalloc(sizeof(RSAPublicKey)); in RSAPublicKeyNew()
38 void RSAPublicKeyFree(RSAPublicKey* key) { in RSAPublicKeyFree()
48 RSAPublicKey* RSAPublicKeyFromBuf(const uint8_t* buf, uint64_t len) { in RSAPublicKeyFromBuf()
49 RSAPublicKey* key = RSAPublicKeyNew(); in RSAPublicKeyFromBuf()
84 const RSAPublicKey* key, in RSAVerifyBinary_f()
89 RSAPublicKey* verification_key = NULL; in RSAVerifyBinary_f()
104 verification_key = (RSAPublicKey*) key; /* Supress const warning. */ in RSAVerifyBinary_f()
125 const RSAPublicKey* key, in RSAVerifyBinaryWithDigest_f()
129 RSAPublicKey* verification_key = NULL; in RSAVerifyBinaryWithDigest_f()
[all …]
Drsa.c18 static void subM(const RSAPublicKey *key, uint32_t *a) { in subM()
29 static int geM(const RSAPublicKey *key, uint32_t *a) { in geM()
40 static void montMulAdd(const RSAPublicKey *key, in montMulAdd()
65 static void montMul(const RSAPublicKey *key, in montMul()
81 static void modpowF4(const RSAPublicKey *key, in modpowF4()
130 int RSAVerify(const RSAPublicKey *key, in RSAVerify()
/external/vboot_reference/firmware/lib/cryptolib/include/
Drsa.h25 typedef struct RSAPublicKey { struct
31 } RSAPublicKey; typedef
36 int RSAVerify(const RSAPublicKey *key,
56 const RSAPublicKey* key,
65 const RSAPublicKey* key,
82 RSAPublicKey* RSAPublicKeyNew(void);
85 void RSAPublicKeyFree(RSAPublicKey* key);
92 RSAPublicKey* RSAPublicKeyFromBuf(const uint8_t* buf, uint64_t len);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java14 public class RSAPublicKey class
20 public static RSAPublicKey getInstance( in getInstance()
27 public static RSAPublicKey getInstance( in getInstance()
30 if (obj instanceof RSAPublicKey) in getInstance()
32 return (RSAPublicKey)obj; in getInstance()
37 return new RSAPublicKey(ASN1Sequence.getInstance(obj)); in getInstance()
43 public RSAPublicKey( in RSAPublicKey() method in RSAPublicKey
51 private RSAPublicKey( in RSAPublicKey() method in RSAPublicKey
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java18 public class RSAPublicKey class
24 public static RSAPublicKey getInstance( in getInstance()
31 public static RSAPublicKey getInstance( in getInstance()
34 if (obj instanceof RSAPublicKey) in getInstance()
36 return (RSAPublicKey)obj; in getInstance()
41 return new RSAPublicKey(ASN1Sequence.getInstance(obj)); in getInstance()
47 public RSAPublicKey( in RSAPublicKey() method in RSAPublicKey
55 private RSAPublicKey( in RSAPublicKey() method in RSAPublicKey
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java18 public class RSAPublicKey class
24 public static RSAPublicKey getInstance( in getInstance()
31 public static RSAPublicKey getInstance( in getInstance()
34 if (obj instanceof RSAPublicKey) in getInstance()
36 return (RSAPublicKey)obj; in getInstance()
41 return new RSAPublicKey(ASN1Sequence.getInstance(obj)); in getInstance()
47 public RSAPublicKey( in RSAPublicKey() method in RSAPublicKey
55 private RSAPublicKey( in RSAPublicKey() method in RSAPublicKey
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java7 import java.security.interfaces.RSAPublicKey;
19 implements RSAPublicKey
57 RSAPublicKey key) in BCRSAPublicKey()
75 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInsta… in populateFromPublicKeyInfo()
124 …jectPublicKeyInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), g… in getEncoded()
144 if (!(o instanceof RSAPublicKey)) in equals()
149 RSAPublicKey key = (RSAPublicKey)o; in equals()
DKeyFactorySpi.java9 import java.security.interfaces.RSAPublicKey;
45 …om(KeySpec.class) || spec.isAssignableFrom(RSAPublicKeySpec.class)) && key instanceof RSAPublicKey) in engineGetKeySpec()
47 RSAPublicKey k = (RSAPublicKey)key; in engineGetKeySpec()
156 if (key instanceof RSAPublicKey) in engineTranslateKey()
158 return new BCRSAPublicKey((RSAPublicKey)key); in engineTranslateKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java8 import java.security.interfaces.RSAPublicKey;
23 implements RSAPublicKey
61 RSAPublicKey key) in BCRSAPublicKey()
79 …com.android.org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = com.android.org.bouncycastle.asn1.pk… in populateFromPublicKeyInfo()
128 …yInfo(algorithmIdentifier, new com.android.org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), g… in getEncoded()
148 if (!(o instanceof RSAPublicKey)) in equals()
153 RSAPublicKey key = (RSAPublicKey)o; in equals()
DKeyFactorySpi.java10 import java.security.interfaces.RSAPublicKey;
49 …om(KeySpec.class) || spec.isAssignableFrom(RSAPublicKeySpec.class)) && key instanceof RSAPublicKey) in engineGetKeySpec()
51 RSAPublicKey k = (RSAPublicKey)key; in engineGetKeySpec()
160 if (key instanceof RSAPublicKey) in engineTranslateKey()
162 return new BCRSAPublicKey((RSAPublicKey)key); in engineTranslateKey()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java8 import java.security.interfaces.RSAPublicKey;
23 implements RSAPublicKey
61 RSAPublicKey key) in BCRSAPublicKey()
79 …nternal.org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = com.android.internal.org.bouncycastle.as… in populateFromPublicKeyInfo()
128 …orithmIdentifier, new com.android.internal.org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), g… in getEncoded()
148 if (!(o instanceof RSAPublicKey)) in equals()
153 RSAPublicKey key = (RSAPublicKey)o; in equals()
DKeyFactorySpi.java10 import java.security.interfaces.RSAPublicKey;
49 …om(KeySpec.class) || spec.isAssignableFrom(RSAPublicKeySpec.class)) && key instanceof RSAPublicKey) in engineGetKeySpec()
51 RSAPublicKey k = (RSAPublicKey)key; in engineGetKeySpec()
160 if (key instanceof RSAPublicKey) in engineTranslateKey()
162 return new BCRSAPublicKey((RSAPublicKey)key); in engineTranslateKey()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DRsaKeyTest.java27 import java.security.interfaces.RSAPublicKey;
1431 private void checkPublicKey(RSAPublicKey pub, RSAPrivateKey priv) { in checkPublicKey()
1439 RSAPublicKey pub = (RSAPublicKey) keypair.getPublic(); in checkKeyPair()
1481 RSAPublicKey pub = (RSAPublicKey) kf.generatePublic(spec); in testEncodeDecodePublic()
1503 RSAPublicKey unusedKey = (RSAPublicKey) kf.generatePublic(spec); in testModifiedPublicKeyDecoding()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLRSAPublicKey.java24 import java.security.interfaces.RSAPublicKey;
33 public class OpenSSLRSAPublicKey implements RSAPublicKey, OpenSSLKeyHolder {
69 static OpenSSLKey getInstance(RSAPublicKey rsaPublicKey) throws InvalidKeyException { in getInstance()
142 if (!(o instanceof RSAPublicKey)) { in equals()
148 RSAPublicKey other = (RSAPublicKey) o; in equals()
DOpenSSLRSAKeyFactory.java27 import java.security.interfaces.RSAPublicKey;
91 if (key instanceof RSAPublicKey && RSAPublicKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
92 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineGetKeySpec()
101 RSAPublicKey rsaKey = in engineGetKeySpec()
102 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
191 } else if (key instanceof RSAPublicKey) { in engineTranslateKey()
192 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineTranslateKey()
DOpenSSLSignatureRawRSA.java27 import java.security.interfaces.RSAPublicKey;
114 } else if (publicKey instanceof RSAPublicKey) { in engineInitVerify()
115 RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKey; in engineInitVerify()
DChainStrengthAnalyzer.java23 import java.security.interfaces.RSAPublicKey;
77 if (pubkey instanceof RSAPublicKey) { in checkKeyLength()
78 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLRSAPublicKey.java25 import java.security.interfaces.RSAPublicKey;
35 public class OpenSSLRSAPublicKey implements RSAPublicKey, OpenSSLKeyHolder {
71 static OpenSSLKey getInstance(RSAPublicKey rsaPublicKey) throws InvalidKeyException { in getInstance()
144 if (!(o instanceof RSAPublicKey)) { in equals()
150 RSAPublicKey other = (RSAPublicKey) o; in equals()
DOpenSSLRSAKeyFactory.java28 import java.security.interfaces.RSAPublicKey;
94 if (key instanceof RSAPublicKey && RSAPublicKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
95 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineGetKeySpec()
104 RSAPublicKey rsaKey = in engineGetKeySpec()
105 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
194 } else if (key instanceof RSAPublicKey) { in engineTranslateKey()
195 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineTranslateKey()
DOpenSSLSignatureRawRSA.java28 import java.security.interfaces.RSAPublicKey;
116 } else if (publicKey instanceof RSAPublicKey) { in engineInitVerify()
117 RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKey; in engineInitVerify()
DChainStrengthAnalyzer.java24 import java.security.interfaces.RSAPublicKey;
79 if (pubkey instanceof RSAPublicKey) { in checkKeyLength()
80 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength()
/external/vboot_reference/firmware/lib/include/
Dvboot_common.h98 RSAPublicKey *PublicKeyToRSA(const VbPublicKey *key);
106 const RSAPublicKey *key);
113 const RSAPublicKey *key);
132 uint64_t size, const RSAPublicKey *key);
150 uint64_t size, const RSAPublicKey *key);
/external/vboot_reference/tests/
Drsa_utility_tests.c29 int RSAVerify(const RSAPublicKey *key, in RSAVerify()
43 RSAPublicKey* key; in TestUtils()
78 RSAPublicKey* key; in TestKeyFromBuffer()
132 RSAPublicKey key; in TestVerifyBinary()
170 RSAPublicKey key; in TestVerifyBinaryWithDigest()
Drsa_padding_test.c17 static void TestSignatures(RSAPublicKey* key) { in TestSignatures()
40 static void TestRSAVerify(RSAPublicKey* key) { in TestRSAVerify()
67 RSAPublicKey* key; in main()
/external/vboot_reference/firmware/lib/
Dvboot_common.c123 RSAPublicKey *PublicKeyToRSA(const VbPublicKey *key) in PublicKeyToRSA()
125 RSAPublicKey *rsa; in PublicKeyToRSA()
147 const RSAPublicKey *key) in VerifyData()
172 const RSAPublicKey *key) in VerifyDigest()
255 RSAPublicKey *rsa; in KeyBlockVerify()
309 uint64_t size, const RSAPublicKey *key) in VerifyFirmwarePreamble()
396 uint64_t size, const RSAPublicKey *key) in VerifyKernelPreamble()

12345