Home
last modified time | relevance | path

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

12

/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/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCERSAPublicKey.java5 import java.security.interfaces.RSAPublicKey;
17 implements RSAPublicKey
39 RSAPublicKey key) in JCERSAPublicKey()
50 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInst… in JCERSAPublicKey()
93 …iers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), g… in getEncoded()
108 if (!(o instanceof RSAPublicKey)) in equals()
113 RSAPublicKey key = (RSAPublicKey)o; in equals()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java9 import java.security.interfaces.RSAPublicKey;
21 implements RSAPublicKey
48 RSAPublicKey key) in BCRSAPublicKey()
65 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInsta… in populateFromPublicKeyInfo()
109 …jectPublicKeyInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), g… in getEncoded()
124 if (!(o instanceof RSAPublicKey)) in equals()
129 RSAPublicKey key = (RSAPublicKey)o; in equals()
DKeyFactorySpi.java9 import java.security.interfaces.RSAPublicKey;
36 if (spec.isAssignableFrom(RSAPublicKeySpec.class) && key instanceof RSAPublicKey) in engineGetKeySpec()
38 RSAPublicKey k = (RSAPublicKey)key; in engineGetKeySpec()
67 if (key instanceof RSAPublicKey) in engineTranslateKey()
69 return new BCRSAPublicKey((RSAPublicKey)key); in engineTranslateKey()
DCipherSpi.java12 import java.security.interfaces.RSAPublicKey;
120 else if (key instanceof RSAPublicKey) in engineGetKeySize()
122 RSAPublicKey k = (RSAPublicKey)key; in engineGetKeySize()
256 if (key instanceof RSAPublicKey) in engineInit()
264 param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)key); in engineInit()
DRSAUtil.java5 import java.security.interfaces.RSAPublicKey;
42 RSAPublicKey key) in generatePublicKeyParameter()
DDigestSignatureSpi.java11 import java.security.interfaces.RSAPublicKey;
82 if (!(publicKey instanceof RSAPublicKey)) in engineInitVerify()
87 CipherParameters param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)publicKey); in engineInitVerify()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DPoloChallengeResponse.java25 import java.security.interfaces.RSAPublicKey;
89 if (!(clientPubKey instanceof RSAPublicKey) || in getAlpha()
90 !(serverPubKey instanceof RSAPublicKey)) { in getAlpha()
94 RSAPublicKey clientPubRsa = (RSAPublicKey) clientPubKey; in getAlpha()
95 RSAPublicKey serverPubRsa = (RSAPublicKey) serverPubKey; in getAlpha()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLRSAPublicKey.java24 import java.security.interfaces.RSAPublicKey;
28 public class OpenSSLRSAPublicKey implements RSAPublicKey, OpenSSLKeyHolder {
64 static OpenSSLKey getInstance(RSAPublicKey rsaPublicKey) throws InvalidKeyException { in getInstance()
137 if (!(o instanceof RSAPublicKey)) { in equals()
143 RSAPublicKey other = (RSAPublicKey) o; in equals()
DOpenSSLRSAKeyFactory.java27 import java.security.interfaces.RSAPublicKey;
86 if (key instanceof RSAPublicKey && RSAPublicKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
87 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineGetKeySpec()
94 RSAPublicKey rsaKey = in engineGetKeySpec()
95 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
170 } else if (key instanceof RSAPublicKey) { in engineTranslateKey()
171 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineTranslateKey()
DOpenSSLSignatureRawRSA.java27 import java.security.interfaces.RSAPublicKey;
110 } else if (publicKey instanceof RSAPublicKey) { in engineInitVerify()
111 RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKey; in engineInitVerify()
DChainStrengthAnalyzer.java23 import java.security.interfaces.RSAPublicKey;
70 if (pubkey instanceof RSAPublicKey) { in checkKeyLength()
71 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength()
DOpenSSLCipherRSA.java30 import java.security.interfaces.RSAPublicKey;
179 } else if (key instanceof RSAPublicKey) { in engineInitInternal()
180 RSAPublicKey rsaPublicKey = (RSAPublicKey) key; in engineInitInternal()
/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()
Dvboot_common2_tests.c21 RSAPublicKey *rsa; in VerifyPublicKeyToRSA()
49 RSAPublicKey *rsa; in VerifyDataTest()
84 RSAPublicKey *rsa; in VerifyDigestTest()
123 RSAPublicKey *rsa; in VerifyKernelPreambleTest()
Dvboot_firmware_tests.c31 static RSAPublicKey data_key;
124 uint64_t size, const RSAPublicKey* key) { in VerifyFirmwarePreamble()
133 RSAPublicKey* PublicKeyToRSA(const VbPublicKey* key) { in PublicKeyToRSA()
142 void RSAPublicKeyFree(RSAPublicKey* key) { in RSAPublicKeyFree()
187 const RSAPublicKey* key) { in VerifyDigest()
/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()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/
DRSAPublicKeyTest.java26 import java.security.interfaces.RSAPublicKey;
54 public class checkRSAPublicKey implements RSAPublicKey {
/external/conscrypt/src/platform/java/org/conscrypt/
DCertificatePriorityComparator.java21 import java.security.interfaces.RSAPublicKey;
150 } else if (pkey instanceof RSAPublicKey) { in getKeySize()
151 return ((RSAPublicKey) pkey).getModulus().bitLength(); in getKeySize()
/external/vboot_reference/host/lib/
Dfile_keys.c52 RSAPublicKey* RSAPublicKeyFromFile(const char* input_file) { in RSAPublicKeyFromFile()
54 RSAPublicKey* key = NULL; in RSAPublicKeyFromFile()

12