Home
last modified time | relevance | path

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

123

/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; argument
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/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;
121 else if (key instanceof RSAPublicKey) in engineGetKeySize()
123 RSAPublicKey k = (RSAPublicKey)key; in engineGetKeySize()
275 if (key instanceof RSAPublicKey) in engineInit()
283 param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)key); in engineInit()
DRSAUtil.java5 import java.security.interfaces.RSAPublicKey;
42 RSAPublicKey key) in generatePublicKeyParameter()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DRsaKeyTest.java25 import java.security.interfaces.RSAPublicKey;
1429 private void checkPublicKey(RSAPublicKey pub, RSAPrivateKey priv) { in checkPublicKey()
1437 RSAPublicKey pub = (RSAPublicKey) keypair.getPublic(); in checkKeyPair()
1473 RSAPublicKey pub = (RSAPublicKey) kf.generatePublic(spec); in testEncodeDecodePublic()
1492 RSAPublicKey unusedKey = (RSAPublicKey) kf.generatePublic(spec); in testModifiedPublicKeyDecoding()
DRsaSignatureTest.java28 import java.security.interfaces.RSAPublicKey;
1086 RSAPublicKey pub = (RSAPublicKey) keyPair.getPublic(); in testBasic()
/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/common/src/main/java/org/conscrypt/
DOpenSSLRSAPublicKey.java24 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.java27 import java.security.interfaces.RSAPublicKey;
93 if (key instanceof RSAPublicKey && RSAPublicKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
94 RSAPublicKey rsaKey = (RSAPublicKey) key; in engineGetKeySpec()
103 RSAPublicKey rsaKey = in engineGetKeySpec()
104 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
193 } else if (key instanceof RSAPublicKey) { in engineTranslateKey()
194 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()
/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/libconstrainedcrypto/include/constrainedcrypto/
Drsa.h40 typedef struct RSAPublicKey { struct
46 } RSAPublicKey; argument
48 int RSA_verify(const RSAPublicKey *key,
/external/libconstrainedcrypto/
Drsa.c33 static void subM(const RSAPublicKey* key, in subM()
45 static int geM(const RSAPublicKey* key, in geM()
57 static void montMulAdd(const RSAPublicKey* key, in montMulAdd()
82 static void montMul(const RSAPublicKey* key, in montMul()
97 static void modpow(const RSAPublicKey* key, in modpow()
249 int RSA_verify(const RSAPublicKey *key, in RSA_verify()
/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/conscrypt/platform/src/main/java/org/conscrypt/
DChainStrengthAnalyzer.java23 import java.security.interfaces.RSAPublicKey;
76 if (pubkey instanceof RSAPublicKey) { in checkKeyLength()
77 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength(); in checkKeyLength()
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/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/vboot_reference/host/lib/
Dfile_keys.c52 RSAPublicKey* RSAPublicKeyFromFile(const char* input_file) { in RSAPublicKeyFromFile()
54 RSAPublicKey* key = NULL; in RSAPublicKeyFromFile()

123