Lines Matching refs:Authorization

119 bool isHardwareEnforced(const ks2::Authorization& a) {  in isHardwareEnforced()
124 void PrintTags(const std::vector<ks2::Authorization>& characteristics, bool printHardwareEnforced) { in PrintTags()
132 void PrintKeyCharacteristics(const std::vector<ks2::Authorization>& characteristics) { in PrintKeyCharacteristics()
145 bool verifyEncryptionKeyAttributes(const std::vector<ks2::Authorization> authorizations) { in verifyEncryptionKeyAttributes()
149 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyEncryptionKeyAttributes()
158 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyEncryptionKeyAttributes()
167 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyEncryptionKeyAttributes()
176 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyEncryptionKeyAttributes()
186 bool verifyAuthenticationKeyAttributes(const std::vector<ks2::Authorization> authorizations) { in verifyAuthenticationKeyAttributes()
190 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyAuthenticationKeyAttributes()
199 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyAuthenticationKeyAttributes()
208 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyAuthenticationKeyAttributes()
217 std::any_of(authorizations.begin(), authorizations.end(), [&](const ks2::Authorization& a) { in verifyAuthenticationKeyAttributes()
250 .Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::CBC) in loadOrCreateAndVerifyEncryptionKey()
251 .Authorization(keymint::TAG_NO_AUTH_REQUIRED); in loadOrCreateAndVerifyEncryptionKey()
303 .Authorization(keymint::TAG_MIN_MAC_LENGTH, kHMACOutputSize) in loadOrCreateAndVerifyAuthenticationKey()
304 .Authorization(keymint::TAG_NO_AUTH_REQUIRED); in loadOrCreateAndVerifyAuthenticationKey()
357 .Authorization(keymint::TAG_PURPOSE, keymint::KeyPurpose::ENCRYPT) in encryptWithAuthentication()
359 .Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::CBC); in encryptWithAuthentication()
402 .Authorization(keymint::TAG_PURPOSE, keymint::KeyPurpose::SIGN) in encryptWithAuthentication()
404 .Authorization(keymint::TAG_MAC_LENGTH, kHMACOutputSize); in encryptWithAuthentication()
476 .Authorization(keymint::TAG_PURPOSE, keymint::KeyPurpose::VERIFY) in decryptWithAuthentication()
478 .Authorization(keymint::TAG_MAC_LENGTH, kHMACOutputSize); in decryptWithAuthentication()
507 .Authorization(keymint::TAG_PURPOSE, keymint::KeyPurpose::DECRYPT) in decryptWithAuthentication()
508 .Authorization(keymint::TAG_NONCE, protobuf.init_vector().data(), in decryptWithAuthentication()
511 .Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::CBC); in decryptWithAuthentication()
601 .Authorization(keymint::TAG_NO_AUTH_REQUIRED); in GetRSASignParameters()
615 .Authorization(keymint::TAG_NO_AUTH_REQUIRED); in GetRSAEncryptParameters()
623 .Authorization(keymint::TAG_NO_AUTH_REQUIRED); in GetECDSAParameters()
634 parameters.AesEncryptionKey(key_size).Authorization(keymint::TAG_NO_AUTH_REQUIRED); in GetAESParameters()
636 parameters.Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::GCM) in GetAESParameters()
637 .Authorization(keymint::TAG_MIN_MAC_LENGTH, 128); in GetAESParameters()
639 parameters.Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::ECB); in GetAESParameters()
640 parameters.Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::CBC); in GetAESParameters()
641 parameters.Authorization(keymint::TAG_BLOCK_MODE, keymint::BlockMode::CTR); in GetAESParameters()
651 .Authorization(keymint::TAG_MIN_MAC_LENGTH, 224) in GetHMACParameters()
652 .Authorization(keymint::TAG_NO_AUTH_REQUIRED); in GetHMACParameters()
761 params.Authorization(keymint::TAG_USER_SECURE_ID, 0); in GenerateKey()
763 params.Authorization(keymint::TAG_NO_AUTH_REQUIRED); in GenerateKey()
868 .Authorization(keymint::TAG_PURPOSE, keymint::KeyPurpose::SIGN) in SignAndVerify()