Lines Matching refs:operationConfig
34 void determinePurpose(KeyPurpose purpose, OperationConfig* operationConfig) { in determinePurpose() argument
37 operationConfig->set_purpose("verify"); in determinePurpose()
40 operationConfig->set_purpose("encrypt"); in determinePurpose()
43 operationConfig->set_purpose("sign"); in determinePurpose()
46 operationConfig->set_purpose("decrypt"); in determinePurpose()
49 operationConfig->set_purpose("wrap"); in determinePurpose()
57 OperationConfig* operationConfig) { in checkKeyCharacteristics() argument
61 operationConfig->set_algorithm(toString(accessTagValue(TAG_ALGORITHM, opParam))); in checkKeyCharacteristics()
64 operationConfig->set_key_size(accessTagValue(TAG_KEY_SIZE, opParam)); in checkKeyCharacteristics()
67 operationConfig->set_ec_curve(toString(accessTagValue(TAG_EC_CURVE, opParam))); in checkKeyCharacteristics()
70 operationConfig->set_user_auth_key_timeout(accessTagValue(TAG_AUTH_TIMEOUT, opParam)); in checkKeyCharacteristics()
73 operationConfig->set_origin(toString(accessTagValue(TAG_ORIGIN, opParam))); in checkKeyCharacteristics()
76 operationConfig->set_key_blob_usage_reqs( in checkKeyCharacteristics()
80 operationConfig->set_user_auth_type( in checkKeyCharacteristics()
90 OperationConfig* operationConfig) { in checkOpCharacteristics() argument
94 operationConfig->set_block_mode(toString(accessTagValue(TAG_BLOCK_MODE, opParam))); in checkOpCharacteristics()
97 operationConfig->set_padding(toString(accessTagValue(TAG_PADDING, opParam))); in checkOpCharacteristics()
100 operationConfig->set_digest(toString(accessTagValue(TAG_DIGEST, opParam))); in checkOpCharacteristics()
110 OperationConfig operationConfig; in uploadOpAsProto() local
111 determinePurpose(op.purpose, &operationConfig); in uploadOpAsProto()
112 checkKeyCharacteristics(op.characteristics.softwareEnforced, &operationConfig); in uploadOpAsProto()
113 checkKeyCharacteristics(op.characteristics.hardwareEnforced, &operationConfig); in uploadOpAsProto()
114 checkOpCharacteristics(op.params, &operationConfig); in uploadOpAsProto()
115 operationConfig.set_was_op_successful(wasOpSuccessful); in uploadOpAsProto()
126 protoMap[operationConfig.SerializeAsString()]++; in uploadOpAsProto()