Lines Matching refs:profile

42 vector<uint8_t> secureAccessControlProfileEncodeCbor(const SecureAccessControlProfile& profile) {  in secureAccessControlProfileEncodeCbor()  argument
44 map.add("id", profile.id); in secureAccessControlProfileEncodeCbor()
46 if (profile.readerCertificate.encodedCertificate.size() > 0) { in secureAccessControlProfileEncodeCbor()
47 map.add("readerCertificate", cppbor::Bstr(profile.readerCertificate.encodedCertificate)); in secureAccessControlProfileEncodeCbor()
50 if (profile.userAuthenticationRequired) { in secureAccessControlProfileEncodeCbor()
51 map.add("userAuthenticationRequired", profile.userAuthenticationRequired); in secureAccessControlProfileEncodeCbor()
52 map.add("timeoutMillis", profile.timeoutMillis); in secureAccessControlProfileEncodeCbor()
53 map.add("secureUserId", profile.secureUserId); in secureAccessControlProfileEncodeCbor()
60 const SecureAccessControlProfile& profile, const vector<uint8_t>& storageKey) { in secureAccessControlProfileCalcMac() argument
61 vector<uint8_t> cborData = secureAccessControlProfileEncodeCbor(profile); in secureAccessControlProfileCalcMac()
75 bool secureAccessControlProfileCheckMac(const SecureAccessControlProfile& profile, in secureAccessControlProfileCheckMac() argument
77 vector<uint8_t> cborData = secureAccessControlProfileEncodeCbor(profile); in secureAccessControlProfileCheckMac()
79 if (profile.mac.size() < support::kAesGcmIvSize) { in secureAccessControlProfileCheckMac()
83 vector<uint8_t>(profile.mac.begin(), profile.mac.begin() + support::kAesGcmIvSize); in secureAccessControlProfileCheckMac()
88 if (mac.value() != profile.mac) { in secureAccessControlProfileCheckMac()