Home
last modified time | relevance | path

Searched refs:KeyParameter (Results 1 – 25 of 68) sorted by relevance

123

/external/nos/host/android/hals/keymaster/include/
DKeymasterDevice.h35 using ::android::hardware::keymaster::V4_0::KeyParameter;
59 const hidl_vec<KeyParameter>& parametersToVerify,
63 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
71 const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
76 const hidl_vec<KeyParameter>& unwrappingParams,
84 const hidl_vec<KeyParameter>& attestParams,
87 const hidl_vec<KeyParameter>& upgradeParams,
93 const hidl_vec<KeyParameter>& inParams,
97 uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
102 uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
/external/nos/host/android/hals/keymaster/
Dproto_utils.h36 using ::android::hardware::keymaster::V4_0::KeyParameter;
49 typedef map<Tag, vector<KeyParameter>> tag_map_t;
51 ErrorCode key_parameter_to_pb(const KeyParameter& param,
52 nosapp::KeyParameter *pb);
53 ErrorCode hidl_params_to_pb(const hidl_vec<KeyParameter>& params,
55 ErrorCode hidl_params_to_map(const hidl_vec<KeyParameter>& params,
60 hidl_vec<KeyParameter> *params);
DKeymasterDevice.cpp420 uint64_t operationHandle, const hidl_vec<KeyParameter>& parametersToVerify, in verifyAuthorization()
456 const hidl_vec<KeyParameter>& keyParams, in generateKey()
520 const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, in importKey()
639 const hidl_vec<KeyParameter>& attestParams, in attestKey()
824 for (const KeyParameter &param : characteristics.hardwareEnforced) { in attestKey()
916 const hidl_vec<KeyParameter>& upgradeParams, in upgradeKey()
985 const hidl_vec<KeyParameter>& inParams, in begin()
997 hidl_vec<KeyParameter> params; in begin()
1017 KM_CALLV(BeginOperation, request, response, hidl_vec<KeyParameter>{}, 0); in begin()
1051 const hidl_vec<KeyParameter>& inParams, in update()
[all …]
Dimport_key.cpp66 const vector<KeyParameter>& v = params.find(Tag::KEY_SIZE)->second; in import_key_rsa()
71 const vector<KeyParameter>& v = in import_key_rsa()
143 const vector<KeyParameter>& v = params.find(Tag::EC_CURVE)->second; in import_key_ec()
148 const vector<KeyParameter>& v = params.find(Tag::KEY_SIZE)->second; in import_key_ec()
259 const vector<KeyParameter>& v = params.find(Tag::KEY_SIZE)->second; in import_key_raw()
294 ErrorCode import_key_request(const hidl_vec<KeyParameter>& params, in import_key_request()
313 const vector<KeyParameter>& v = tag_map.find(Tag::ALGORITHM)->second; in import_key_request()
Dimport_wrapped_key.cpp127 KeyParameter kp; in parse_asn1_set()
152 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_set()
176 KeyParameter kp; in parse_asn1_integer()
209 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_integer()
237 KeyParameter kp; in parse_asn1_boolean()
249 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_boolean()
276 KeyParameter kp; in parse_asn1_octet_string()
289 nosapp::KeyParameter *param = request->mutable_params()->add_params(); in parse_asn1_octet_string()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBE.java28 import org.bouncycastle.crypto.params.KeyParameter;
278 (KeyParameter) parametersWithIV.getParameters(), in makePBEParameters()
292KeyParameter kParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in makePBEParameters()
298 KeyParameter kParam = (KeyParameter)param; in makePBEParameters()
347 (KeyParameter) parametersWithIV.getParameters(), in makePBEParameters()
361KeyParameter kParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in makePBEParameters()
367 KeyParameter kParam = (KeyParameter)param; in makePBEParameters()
DBCPBEKey.java11 import org.bouncycastle.crypto.params.KeyParameter;
71 KeyParameter kParam; in getEncoded()
75 kParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in getEncoded()
79 kParam = (KeyParameter)param; in getEncoded()
DBaseMac.java23 import org.bouncycastle.crypto.params.KeyParameter;
176 param = new KeyParameter(key.getEncoded()); in engineInit()
179 KeyParameter keyParam; in engineInit()
182 keyParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in engineInit()
186 keyParam = (KeyParameter)param; in engineInit()
213 param = new KeyParameter(key.getEncoded()); in engineInit()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DPBE.java29 import com.android.org.bouncycastle.crypto.params.KeyParameter;
282 (KeyParameter) parametersWithIV.getParameters(), in makePBEParameters()
296KeyParameter kParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in makePBEParameters()
302 KeyParameter kParam = (KeyParameter)param; in makePBEParameters()
351 (KeyParameter) parametersWithIV.getParameters(), in makePBEParameters()
365KeyParameter kParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in makePBEParameters()
371 KeyParameter kParam = (KeyParameter)param; in makePBEParameters()
DBaseMac.java24 import com.android.org.bouncycastle.crypto.params.KeyParameter;
180 param = new KeyParameter(key.getEncoded()); in engineInit()
183 KeyParameter keyParam; in engineInit()
186 keyParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in engineInit()
190 keyParam = (KeyParameter)param; in engineInit()
217 param = new KeyParameter(key.getEncoded()); in engineInit()
DBCPBEKey.java12 import com.android.org.bouncycastle.crypto.params.KeyParameter;
75 KeyParameter kParam; in getEncoded()
79 kParam = (KeyParameter)((ParametersWithIV)param).getParameters(); in getEncoded()
83 kParam = (KeyParameter)param; in getEncoded()
/external/nos/host/android/hals/keymaster/test/
Dimport_key_test.cpp54 using ::android::hardware::keymaster::V4_0::KeyParameter;
126 const hidl_vec<KeyParameter>& params, const RSA *rsa) in ImportKeyRequestMatcher()
135 const hidl_vec<KeyParameter>& params, const EC_KEY *ec) in ImportKeyRequestMatcher()
144 const hidl_vec<KeyParameter>& params, in ImportKeyRequestMatcher()
181 hidl_vec<KeyParameter> params; in MatchAndExplainRSA()
325 const hidl_vec<KeyParameter> params_;
333 const hidl_vec<KeyParameter>& params, const RSA *rsa) { in ImportKeyRequestEq()
341 KeyParameter kp; in TEST()
368 nosapp::KeyParameter *noskp = in TEST()
376 ImportKey(ImportKeyRequestEq(hidl_vec<KeyParameter>{kp}, rsa.get()), _)) in TEST()
[all …]
Dimport_wrapped_key_test.cpp56 using ::android::hardware::keymaster::V4_0::KeyParameter;
152 const hidl_vec<KeyParameter>& params, in ImportWrappedKeyRequestMatcher()
286 const hidl_vec<KeyParameter>& params_;
298 const hidl_vec<KeyParameter>& params, in ImportWrappedKeyRequestEq()
318 KeyParameter kp1; in TEST()
321 KeyParameter kp2; in TEST()
348 nosapp::KeyParameter *noskp = in TEST()
363 hidl_vec<KeyParameter>{kp1, kp2}, in TEST()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DAEADParameters.java11 private KeyParameter key;
21 public AEADParameters(KeyParameter key, int macSize, byte[] nonce) in AEADParameters()
34 public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) in AEADParameters()
42 public KeyParameter getKey() in getKey()
DKeyParameter.java5 public class KeyParameter class
10 public KeyParameter( in KeyParameter() method in KeyParameter
16 public KeyParameter( in KeyParameter() method in KeyParameter
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DAEADParameters.java15 private KeyParameter key;
25 public AEADParameters(KeyParameter key, int macSize, byte[] nonce) in AEADParameters()
38 public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) in AEADParameters()
46 public KeyParameter getKey() in getKey()
DKeyParameter.java10 public class KeyParameter class
15 public KeyParameter( in KeyParameter() method in KeyParameter
21 public KeyParameter( in KeyParameter() method in KeyParameter
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRFC3394WrapEngine.java8 import org.bouncycastle.crypto.params.KeyParameter;
25 private KeyParameter param;
65 if (param instanceof KeyParameter) in init()
67 this.param = (KeyParameter)param; in init()
72 this.param = (KeyParameter)((ParametersWithIV) param).getParameters(); in init()
DDESedeWrapEngine.java11 import org.bouncycastle.crypto.params.KeyParameter;
38 private KeyParameter param;
86 if (param instanceof KeyParameter) in init()
88 this.param = (KeyParameter)param; in init()
105 this.param = (KeyParameter)this.paramPlusIV.getParameters(); in init()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DRFC3394WrapEngine.java9 import com.android.org.bouncycastle.crypto.params.KeyParameter;
27 private KeyParameter param;
67 if (param instanceof KeyParameter) in init()
69 this.param = (KeyParameter)param; in init()
74 this.param = (KeyParameter)((ParametersWithIV) param).getParameters(); in init()
DDESedeWrapEngine.java12 import com.android.org.bouncycastle.crypto.params.KeyParameter;
40 private KeyParameter param;
88 if (param instanceof KeyParameter) in init()
90 this.param = (KeyParameter)param; in init()
107 this.param = (KeyParameter)this.paramPlusIV.getParameters(); in init()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DPKCS5S2ParametersGenerator.java8 import org.bouncycastle.crypto.params.KeyParameter;
88 CipherParameters param = new KeyParameter(password); in generateDerivedKey()
122 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
143 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DPKCS5S1ParametersGenerator.java6 import org.bouncycastle.crypto.params.KeyParameter;
75 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
103 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DPKCS5S2ParametersGenerator.java9 import com.android.org.bouncycastle.crypto.params.KeyParameter;
90 CipherParameters param = new KeyParameter(password); in generateDerivedKey()
124 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
145 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
/external/nos/test/system-test-harness/src/
Dkeymaster-import-key-tests.cc42 KeyParameter *param = params->add_params(); in initRSARequest()
52 KeyParameter *param = params->add_params(); in initRSARequest()
64 KeyParameter *param = params->add_params(); in initRSARequest()
116 KeyParameter *param = params->add_params(); in TEST_F()
234 KeyParameter *param = params->add_params(); in TEST_F()
259 KeyParameter *param = params->add_params(); in TEST_F()
364 KeyParameter *param = params->add_params(); in TEST_F()
377 KeyParameter *param = params->add_params(); in TEST_F()
396 KeyParameter *param = params->add_params(); in TEST_F()
419 KeyParameter *param = params->add_params(); in TEST_F()
[all …]

123