Home
last modified time | relevance | path

Searched refs:privateKey (Results 1 – 8 of 8) sorted by relevance

/hardware/interfaces/identity/aidl/default/libeic/
DEicOps.h194 bool eicOpsCreateEcKey(uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE],
218 bool eicOpsCreateCredentialKey(uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE], const uint8_t* challenge,
243 bool eicOpsEcDsa(const uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE],
250 const uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE],
/hardware/interfaces/security/authgraph/aidl/android/hardware/security/authgraph/
DSessionIdSignature.cddl20 signature: bstr ; PureEd25519(privateKey, SessionIdSignatureSigStruct) /
21 ; ECDSA(privateKey, SessionIdSignatureSigStruct)
DSignedPubKey.cddl20 signature: bstr ; PureEd25519(privateKey, SignedPubKeySigStruct) /
21 ; ECDSA(privateKey, SignedPubKeySigStruct)
/hardware/interfaces/identity/aidl/default/
DEicOpsImpl.cc231 bool eicOpsCreateEcKey(uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE], in eicOpsCreateEcKey()
263 memcpy(privateKey, privKey.value().data(), EIC_P256_PRIV_KEY_SIZE); in eicOpsCreateEcKey()
269 bool eicOpsCreateCredentialKey(uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE], const uint8_t* challenge, in eicOpsCreateCredentialKey()
328 memcpy(privateKey, privKey.value().data(), EIC_P256_PRIV_KEY_SIZE); in eicOpsCreateCredentialKey()
373 bool eicOpsEcDsa(const uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE], in eicOpsEcDsa()
377 memcpy(privKeyVec.data(), privateKey, EIC_P256_PRIV_KEY_SIZE); in eicOpsEcDsa()
492 const uint8_t privateKey[EIC_P256_PRIV_KEY_SIZE], in eicOpsEcdh()
499 memcpy(privKeyVec.data(), privateKey, EIC_P256_PRIV_KEY_SIZE); in eicOpsEcdh()
/hardware/interfaces/identity/support/include/android/hardware/identity/support/
DIdentityCredentialSupport.h165 optional<vector<uint8_t>> ecPrivateKeyToKeyPair(const vector<uint8_t>& privateKey);
267 optional<vector<uint8_t>> ecdh(const vector<uint8_t>& publicKey, const vector<uint8_t>& privateKey);
397 optional<vector<uint8_t>> calcEMacKey(const vector<uint8_t>& privateKey,
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp1026 vector<uint8_t> privateKey; in ecKeyPairGetPrivateKey() local
1035 privateKey.resize(32); in ecKeyPairGetPrivateKey()
1037 privateKey[n] = 0x00; in ecKeyPairGetPrivateKey()
1039 BN_bn2bin(bignum, privateKey.data() + 32 - numBytes); in ecKeyPairGetPrivateKey()
1040 return privateKey; in ecKeyPairGetPrivateKey()
1043 optional<vector<uint8_t>> ecPrivateKeyToKeyPair(const vector<uint8_t>& privateKey) { in ecPrivateKeyToKeyPair() argument
1044 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecPrivateKeyToKeyPair()
1354 const vector<uint8_t>& privateKey) { in ecdh() argument
1381 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecdh()
2221 optional<vector<uint8_t>> calcEMacKey(const vector<uint8_t>& privateKey, in calcEMacKey() argument
[all …]
/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp354 optional<vector<uint8_t>> privateKey = support::ecPrivateKeyToKeyPair(privateUncompressed); in p256PrivateKeyFromD() local
355 return privateKey.value(); in p256PrivateKeyFromD()
359 const vector<uint8_t> privateKey) { in p256PrivateKeyGetXandY() argument
360 optional<vector<uint8_t>> publicUncompressed = support::ecKeyPairGetPublicKey(privateKey); in p256PrivateKeyGetXandY()
/hardware/interfaces/identity/aidl/vts/
DReaderAuthTests.cpp118 optional<vector<uint8_t>> privateKey = support::ecKeyPairGetPrivateKey(keyPKCS8.value()); in generateReaderKey() local
119 return make_pair(publicKey.value(), privateKey.value()); in generateReaderKey()